News:

If this site goes down it is because of the crappy DreamHost web hosting: They will disable your "unlimited traffic" web server if a single bot hammers the site with a moderate load.  If necessary, an alternate ExifTool forum page is available at https://sourceforge.net/p/exiftool/discussion/

Main Menu

About GPS data in MOV format

Started by kowata, November 16, 2022, 08:08:31 PM

Previous topic - Next topic

kowata

i am a beginner
Please tell me how to get the GPS data of MOV format video shot with DJI products.

Phil Harvey

First you have to figure out how to run ExifTool, but the basic command should be something like this:

exiftool -ee -G3 "-gps*" FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

kowata

Dear Phil Harvey

thank you for your reply

I was able to get the GPS data by executing the command you taught me,
but how can I output all the GPS data written in the video to TXT or GPX?

Phil Harvey

To send the about output to TXT, do this:

exiftool -ee -G3 "-gps*" FILE > out.txt

To format as GPX, put this file (gpx.fmt) in the current directory and run this command:

exiftool -ee -p gpx.fmt FILE > out.txt

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

kowata

Dear Phil Harvey

thank you for your reply


I was able to output to each format with the command you told me,
One GPS data will not be written.
How can I output all the GPS data in the MOV?

<?xml version="1.0" encoding="utf-8"?>
<gpx version="1.0"
 creator="ExifTool 12.49"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://www.topografix.com/GPX/1/0"
 xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<trk>
<number>1</number>
<trkseg>
<trkpt lat="00.008804" lon="000.636409">
  <ele>42.7</ele>
</trkpt>
</trkseg>
</trk>
</gpx>

Phil Harvey

Are you sure your MOV contains timed GPS?  Try using -ee3 instead of -ee, but that's all we can do for now.  If ExifTool isn't extracting everything you think it should, upload a sample MOV somewhere and I'll take a look to see what I can do.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

kowata

Dear Phil Harvey

thank you for your reply


How can I check if my MOV contains timed GPS?


Phil Harvey

You can upload a file somewhere so I can take a look.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).