Processing Multiple Files for Inverse Geotagging

Started by dwvsurf, August 16, 2024, 01:48:41 PM

Previous topic - Next topic

dwvsurf

Hello

Just started using ExifTool to extract GNSS tracks and generate .kml files from movies recorded with a GoPro 11.  Works great, but I often have multiple files to process, and can't figure out a way to do them all at once.

I have about a dozen files from each recording session, for example:
GX010150.MP4
GX010151.MP4
...
GX######.MP4

I then use the following to successfully get the GNSS lat/lon for each file, one at a time:

exiftool -p kml_track.fmt -ee3 GX010150.MP4 > GX010150.kml
exiftool -p kml_track.fmt -ee3 GX010151.MP4 > GX010151.kml
...
exiftool -p kml_track.fmt -ee3 GX######.MP4 > GX######.kml

(.fmt file is attached for reference)

How can I automate this so that I can just tell it to do the same routine for all .MP4 files in the same directory?

Thank you!

StarGeek

To create individual files for each video, try
exiftool -p gpx.fmt -ee3 -w %d%f.gpx /path/to/files/

or for a single file for all videos
exiftool -p gpx.fmt -ee3 -W+! %dOutput.gpx /path/to/files/
"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