ExifTool Forum

ExifTool => Newbies => Topic started by: wrod on August 06, 2022, 02:57:12 PM

Title: Inverse Geotagging on massive number of files?
Post by: wrod on August 06, 2022, 02:57:12 PM
Hallo,
I have LOTS of images in diverse subdirectories.
Is there a way to use

exiftool -r -if "$gpsdatetime" -ee3 -progress -p b:\GPXDATA\gpx.fmt . > b:\GPXDATA\out1.gpx


first (i.e. w/o "-fileOrder $gpsdatetime") so that exiftool does not need to sorting first,

and afterwards sort the file separately, possibly by exporting to some format readable by EXCEL, sorting there, and then re-export to a GPX-file?

Thanks in advance
W
Title: Re: Inverse Geotagging on massive number of files?
Post by: StarGeek on August 06, 2022, 10:32:16 PM
Exiftool can't re-combine GPX files, so you would have to look elsewhere for a program to do that.

Are you creating a geotrack from individual images or from videos?  If from a bunch of images, I'd say your stuck with using -FileOrder option (https://exiftool.org/exiftool_pod.html#fileOrder-NUM---TAG).  It might be hard to create a CSV out of a lot of images as -csv option (https://exiftool.org/exiftool_pod.html#csv-CSVFILE) needs to buffer all the data, which can lead to memory problems.  See the last paragraph in that link.

If you're extracting tracks from videos, then you can add the -w (-TextOut) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut) to create a separate track for each video. With the -geotag option, you can specify multiple tracks, including by using a wildcard.  Put them all in the same directory and call it like this
-geotag /path/to/*.gpx