ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: terryagiles on April 08, 2018, 06:57:15 PM

Title: cannot export GPS info from .mov file
Post by: terryagiles on April 08, 2018, 06:57:15 PM
Hello there,

I'm new to ExifTool but am really excited I found it & the recent addition of being able to extract GPS coordinates/datetimes from video files.  I have a .mov file which I can export the GPS track from as CSV using the DataKam registrator viewer but cannot seem to get it to work with ExifTool.  I've tried the following command (on win 7 with ExifTool v10.9) and do not get any output:

exiftool.exe -ee -gpslatitude -gpslongitude -gpsdatetime -csv c:\temp\work > temp.csv

I've also tried adding the GPS group to the tag names -
exiftool.exe -ee  -GPS:GPSLatitude -GPS:GPSLongitude video1.mov but still no output.
and finally have tried using a predefined format file from https://exiftool.org/geotag.html#Inverse but still no GPS output.  I get warning about tags not existing but if I can do it from the Datakam UI, it must be there right?  Problem is, I have 100s of videos to process so manually exporting via Datakam is not a option.

If I run exiftool.exe -ee filename.mov I get output like this-

SampleDuration                  : 1.00 s
Text                            : dppp@dimn@dink@[~çëäzchnghhgegggcxcjilgeppmgcàcgpngleomiocÄchneglchnpeomchlghhocccxakp.
MovieDataSize                   : 566255109


If the GPS info is embedded in that text string, anyone know 1)how it's encoded and 2) which positions/lengths the lat, long, and datetime values are?

Thank you,
Terry
Title: Re: cannot export GPS info from .mov file
Post by: Phil Harvey on April 08, 2018, 09:40:19 PM
Hi Terry,

If you send me a (small) sample video along with the corresponding CVS file, I'll take a look and see what I can do to extract this with ExifTool.  my mail is philharvey66 at gmail.com

- Phil
Title: Re: cannot export GPS info from .mov file
Post by: Phil Harvey on April 10, 2018, 08:44:28 AM
Hi Terry,

I have just released ExifTool 10.92 with the ability to read GPS from these files.

Interestingly, the edited video you provided stores the metadata in a completely different format from the original video.  I have added the ability to extract embedded metadata from both with the -ee option, however I have not yet been able to decode the GPSDateTime from the edited videos.  If you want to help with this, metadata from a bunch more videos would be helpful.  All I need is the output of the following command using ExifTool 10.92 on a directory containing a number of edited videos with a range of creation dates:

exiftool -ee -v3 DIR | grep -E "(tReV| CreateDate)"

(Hopefully you have a "grep" utility that suppports -E.)

- Phil

P.S. To help with anyone Googling for this:  The camera is an E-PRANCE B47FS HD 1296P Car DVR.

P.P.S. The "Text" that you extracted with the previous version of ExifTool was g-sensor and GPS information (in the form of an NMEA RMC sentence), encrypted using a simple ASCII difference cipher.
Title: Re: cannot export GPS info from .mov file
Post by: terryagiles on April 10, 2018, 11:17:45 AM
Hi Phil,

The edited video was created by exporting a 1 minute subset using DataKam viewer.  I'm not sure how it writes files out but it's entirely possible that it uses a different format than the original .mov files.  I have 50 videos on hand but they are all from the same day.  I'll see if I can track down some files from other days and pull out the metadata and pass it along.  I'll download and try v10.92 later today, thanks again for the help with this!
Title: Re: cannot export GPS info from .mov file
Post by: Phil Harvey on April 10, 2018, 11:49:37 AM
Hi Terry,

I just downloaded Datakam Player version 2.4 (71) for Mac and tried exporting a clip from the orginal sample you sent.  The GPS was in the same format as the original.  Apparently this isn't the software that you used.  You called it "DataKam viewer"?  What version/platform?

- Phil
Title: Re: cannot export GPS info from .mov file
Post by: terryagiles on April 10, 2018, 03:45:30 PM
Phil, you're correct it's "Datakam Player' (on Windows v6.0.06).  Sorry for the confusion, it's on a different machine than the one I'm currently one and was going from memory.  I created the clipped video by moving the time slider to 1 minute, pressing Ctrl+End (can also 'set selection end' from context menu) and pressing Ctrl+S to save the clip out.  I left the Video, Audio, and Meta Info checkboxes all checked and saved.
Title: Re: cannot export GPS info from .mov file
Post by: Phil Harvey on April 10, 2018, 09:59:41 PM
Odd.  That's just about how I saved the clip too.  Funny that the Windows version writes a different file format.  But then, the version numbers are very different.

- Phil