Encoding multiple GPS recordings to a mp4 video

Started by Nitram95, October 17, 2023, 09:29:47 AM

Previous topic - Next topic

Nitram95

Hey, I have 1 minute long mp4 videos and I would like to add GPS metadata with 1s period (60 GPS position recordings). Each GPS metadata recording should be marked with a Sample Time item (video time offset).
I am able to add GPS metadata with:
exiftool -geotag=my_log.gpsx -geotime="2023:10:17 7:41:12-05:00" my_video.mp4or
exiftool -geotag=my_log.nmea -geotime="2023:10:17 7:20:12-05:00" my_video.mp4but it adds just one GPS recording and ignores the others.
Is it possible to achieve that with exiftool? Thank you.

StarGeek

The problem is that there really isn't a standard for embedding a GPS track in a video*  Currently, exiftool reads 66 different ways that a GPS track can be in a video and there are about half a dozen more in which the format hasn't been decoded.

*Technically, there is a standard by Google but I've never found any software that can embed a track.

About all you can do is set the Quicktime:GPSCoordinates or the XMP:GPSLatitude/XMP:GPSLongitude.  Your command probably does the later unless you've updated to the most recent version of exiftool, which will set both.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Nitram95

And does exiftool support adding multiple Longitudes/Latitudes in one video? This is the part I am missing.

StarGeek

No.  The tags I listed only appear once in the file.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype