ExifTool Forum

ExifTool => Newbies => Topic started by: cguterman on February 19, 2025, 02:41:03 PM

Title: Extract GPS from video
Post by: cguterman on February 19, 2025, 02:41:03 PM
Hi there!

In first thanks to Mr.Harvey. Exiftool worked pretty well for me. My customer became impressed.

But now I have a problem. Can I extract GPS info from a video mp4? I tried unsuccessfully

Thank you for answer.

Cesar, from Rio de Janeiro, Brazil
Title: Re: Extract GPS from video
Post by: StarGeek on February 19, 2025, 03:42:26 PM
Try this command
exiftool -G1 -a -s "-GPS*" -ee file.mp4

If this lists a whole bunch of GPS Coordinates, then there's a GPS track embedded in the file. You can extract the data and create a track file, such as a GPX or KML file. See Inverse Geotagging (https://exiftool.org/geotag.html#Inverse).

Exiftool might also extract a single coordinate.

If exiftool doesn't extract a GPS track, then it might be possible that there is one. You would have to share a file to verify if it does.

But any editing of a file will destroy a GPS track. This includes files downloaded from social media or text, as they automatically re-encode any video.