Skip to content

Write Starting GPS Location tags to MP4 automatically #5

Description

@thisisbommy

As discussed elsewhere, it would be cool if this tool could be set to...

  • Write the full GPS data to a GPX (existing behaviour)
  • Write the first GPS location point in the file to the MP4, as readable data for Immich, Mac Photos and other such apps
  • Or both together

I've been playing with a dedicated script to do this once I have the GPX, and also with SRTs from DJI Drone MP4s.

The script writes two metadata fields into the processed MP4 using ExifTool:
1. Keys:GPSCoordinates
• Value contains latitude + longitude, and absolute altitude if present in the SRT.

3. 2.	Keys:LocationAccuracyHorizontal
•	Set to a constant of 10

Then in ExifTool I'm using
• -overwrite_original (writes into the MP4 in-place)
• -api LargeFileSupport=1

So far it seems to work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions