ExifTool Forum

General => Metadata => Topic started by: Ozman34 on July 16, 2020, 12:27:33 PM

Title: Finding GPS data from individually exported frames of a video
Post by: Ozman34 on July 16, 2020, 12:27:33 PM
I am new to exiftool but this question maybe to complex searching the forum.

In short, i am looking to find a way to get the gps metadata from the individual exported frames of a video from an Iphone using Exiftool or any other known tool.

The idea is to map out those frames with the gps coordinates and see how accurate the GPS coordinates are with a standard gps device or google earth.

Is this possible without having to manually enter the gps metadata.


When i export the video frames using FFmpeg .png and .jpg do NOT keep the gps metadata for each frame.

Any help would be greatly appreciated
Title: Re: Finding GPS data from individually exported frames of a video
Post by: StarGeek on July 16, 2020, 03:51:13 PM
While exiftool can't export frames because it's not an image/video manipulation program, it can export the gps data as a GPS track file.  See Inverse Geotagging (https://exiftool.org/geotag.html#Inverse).

You can download the format files from Github (https://github.com/exiftool/exiftool/tree/master/fmt_files).  The command to use is under "Usage:" in the comments.
Title: Re: Finding GPS data from individually exported frames of a video
Post by: Ozman34 on July 16, 2020, 05:31:50 PM
Thanks. Tried to follow the steps but the .gpx and .kml files are not working in google maps or google earth. I will keep messing arounf with it. I feel like i am close. The videos i am using do have the gps data from exiftool but it doesnt seem to be adding the coordinates to the .gpx files.
Title: Re: Finding GPS data from individually exported frames of a video
Post by: Ozman34 on July 16, 2020, 05:46:45 PM
I am a little confused on this part

"Since no directory was specified for gpx.fmt, this file must exist in the current directory when the above command is executed. (If the gpx.fmt file can't be found then the -p argument is interpreted as a string instead of a file name, and the text "gpx.fmt" is sent to the output, which isn't what we want.)"

Title: Re: Finding GPS data from individually exported frames of a video
Post by: StarGeek on July 16, 2020, 06:02:14 PM
In the example just above that text, the command is given as -p gpx.fmt. Since there is no path part to the gpx file in that example, i.e. it doesn't say something like C:\Users\Ozman34\Documents\gpx.fmt, that means the exiftool is looking for the file in the current directory for CMD.  If exiftool can't find the file, then it's just going to print the static string over and over.

If in doubt, provide a full filepath to the gpx.fmt file.
Title: Re: Finding GPS data from individually exported frames of a video
Post by: Ozman34 on July 16, 2020, 07:13:06 PM
Thank you, I got the output to work but its not importing into any gps software like google earth or maps and is only giving me the gps data from the video and not the gps location for all points in the video. Thanks though
Title: Re: Finding GPS data from individually exported frames of a video
Post by: Phil Harvey on July 16, 2020, 09:07:58 PM
For importing into Google Earth, I use this command:

exiftool -ee -p kml_track.fmt FILE > out.kml

Then import the KML file into Google Earth.

- Phil