ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: jmathai on June 20, 2016, 11:59:10 PM

Title: Write GPS tags to MOV file
Post by: jmathai on June 20, 2016, 11:59:10 PM
Hello,

Thanks so much for exiftool. I'm trying to write GPS data to MOV files. This simple example indicates that the file was updated. Reading the latitude back shows that it didn't do what I was intending. Is there something simple I'm missing?

Source file: https://www.dropbox.com/s/spoffrv3jbeznnz/IMG_1279.MOV?dl=0

➜  Downloads exiftool -gpslatitude=29.0 /Users/jaisen/Downloads/IMG_1279.MOV
    1 image files updated
➜  Downloads exiftool -gpslatitude /Users/jaisen/Downloads/IMG_1279.MOV
GPS Latitude                    : 39 deg 15' 7.92" N


It's related to this other thread though I don't need iPhoto to honor this tag.
https://exiftool.org/forum/index.php/topic,5884.msg28931.html

Thanks,

Jaisen
Title: Re: Write GPS tags to MOV file
Post by: StarGeek on June 21, 2016, 04:34:07 AM
You might want to check FAQ 3 (http://www.exiftool.org/faq.html#Q3) when tags don't seem to have the correct values.

In this case, I believe that when you are writing gpslatitude, it is written to XMP:GPSLatitude.  But for a Mov file, the QuickTime:GPSCoordinates tag has priority.  Unfortunately, I don't believe that Exiftool can write QuickTime:GPSCoordinates.

You can still write the various tags, but you'll have to make sure that you ask for XMP:TagName (XMP:GPSAltitude, XMP:GPSLatitude, XMP:GPSLongitude) when you want to read them, otherwise you'll get the Composite tag which is going to be derived from QuickTime:GPSCoordinates.
Title: Re: Write GPS tags to MOV file
Post by: jmathai on June 21, 2016, 01:05:29 PM
@StarGeek, you're correct. Thanks...that gets me further along.

➜  Downloads exiftool -XMP:gpslatitude /Users/jaisen/Downloads/IMG_1279.MOV
GPS Latitude                    : 29 deg 0' 0.00" N