Hi all,
as Newbie, I have been unsuccessfully trying to geotag my MP4 files with ExifTool. Therefore, I would highly appreciate any help. I am using ExifTool 11.80 under macOS 10.15.2.
So far, I managed to write GPS-coordinates into a single MP4 file:
exiftool -overwrite_original_in_place -xmp:gpslatitude=52.445540 -xmp:gpslongitude=13.626618 /Users/mathias/Desktop/TEST_XMP2/C0125.MP4
Unfortunately, my attempts to adapt the command
exiftool -geotag log.gpx "-xmp: gpslatitude=<createdate" dir
recommended in this forum failed.
Thank you very much in advance!
Structure of my gpx file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<gpx version="1.1" creator="GPS-Tracker Pro" xmlns="http://www.topografix.com/GPX/1/1">
<metadata>
<name>Test2</name>
</metadata>
<trk>
<name>Test2</name>
<trkseg>
<trkpt lat="52.545540" lon="13.726618">
<ele>41.308943</ele>
<time>2019-12-25T15:26:19Z</time>
</trkpt>
<trkpt lat="52.545451" lon="13.726601">
<ele>41.076960</ele>
<time>2019-12-25T15:26:27Z</time>
</trkpt>
<trkpt lat="52.545364" lon="13.726525">
<ele>40.909138</ele>
<time>2019-12-25T15:26:35Z</time>
</trkpt>
<trkpt lat="52.545270" lon="13.726513">
<ele>37.521191</ele>
<time>2019-12-25T15:26:42Z</time>
</trkpt>
<trkpt lat="52.545176" lon="13.726520">
<ele>37.027586</ele>
<time>2019-12-25T15:26:50Z</time>
</trkpt>
<trkpt lat="52.545105" lon="13.726427">
<ele>37.881799</ele>
<time>2019-12-25T15:26:58Z</time>
</trkpt>
<trkpt lat="52.544517" lon="13.726397">
<ele>32.322951</ele>
<time>2019-12-25T15:46:42Z</time>
</trkpt>
</trkseg>
</trk>
</gpx>
I haven't tested against your sample track but the command should be something like
exiftool -geotag log.gpx '-Geotime<CreateDate' <FileOrDir>
I'm not sure but it may be that the -api QuickTimeUTC option (https://exiftool.org/ExifTool.html#QuickTimeUTC) is also needed.