From bc935d2e0a7c8bc7e522dcbb0003f2c992ec1a40 Mon Sep 17 00:00:00 2001 From: hbrain Date: Mon, 25 May 2026 01:08:57 +0000 Subject: [PATCH] Improve location metadata --- README.md | 2 +- movmaker.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7fd6f51..ed4cc22 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ python3 movmaker.py input --preview - adds persistent bottom-left title/date/place and bottom-right `@bubulescu` stamps - preserves special characters in rendered overlays and metadata - uses safe ASCII only for generated filenames, so special letters become readable equivalents like `Č` -> `C`, `å` -> `a`, `ø` -> `o` -- embeds MP4 metadata: title, date, location, artist, comment, and creation_time +- embeds MP4 metadata: title, date, location/place, QuickTime location name, artist, comment, and creation_time - writes an MP4 file named like `YYYYMMDD_title.mp4` in the current directory by default; use `--out-dir DIR` to choose another output directory - takes `YYYYMMDD` from the first picture/video metadata, falling back to file modification date - uses local `ffmpeg/ffmpeg` and `ffmpeg/ffprobe` when present, otherwise system tools diff --git a/movmaker.py b/movmaker.py index 9aea354..35e3c0f 100755 --- a/movmaker.py +++ b/movmaker.py @@ -544,6 +544,8 @@ def build_video( "title": data.title, "date": data.date, "location": data.place, + "place": data.place, + "com.apple.quicktime.location.name": data.place, "artist": "@bubulescu", "comment": "Created with movmaker", "creation_time": creation_date.isoformat(), @@ -560,7 +562,7 @@ def build_video( else: cmd += ["-an"] - cmd += ["-c:v", "libx264", "-preset", preset, "-crf", str(crf), "-r", str(fps), "-pix_fmt", "yuv420p", str(output)] + cmd += ["-c:v", "libx264", "-preset", preset, "-crf", str(crf), "-r", str(fps), "-pix_fmt", "yuv420p", "-movflags", "+faststart+use_metadata_tags", str(output)] run(cmd)