ExifTool Forum

ExifTool => Newbies => Topic started by: Fulco on March 29, 2019, 04:27:14 AM

Title: Editing QuickTime:GPSCoordinates
Post by: Fulco on March 29, 2019, 04:27:14 AM
Editing QuickTime tags is working great with Exiftool 10.33. Is it yet also possible to convert the value for QuickTime:GPSCoordinates?

I tried this, but without succes:

Code: [Select]
exiftool -QuickTime:GPSCoordinates="+52.372821+004.893702" -overwrite_original /Users/Fulco/Test/IMG_4578.MOV
Warning: Error converting value for QuickTime:GPSCoordinates (PrintConvInv)
Nothing to do.
Title: Re: Editing QuickTime:GPSCoordinates
Post by: Phil Harvey on March 29, 2019, 07:08:38 AM
It looks like I need to work on making ExifTool more flexible about the input formatting.  Currently it accepts only the same format as it extracts, but I haven't allowed for a missing altitude.  So either of these should work:

exiftool -QuickTime:GPSCoordinates="52.372821 N, 4.893702 E, 0 m Above Sea Level" -overwrite_original /Users/Fulco/Test/IMG_4578.MOV

exiftool -QuickTime:GPSCoordinates#="52.372821 4.893702 0" -overwrite_original /Users/Fulco/Test/IMG_4578.MOV

But I'll fix the next version to make altitude optional, and to not be so strict about the values it accepts.

- Phil
Title: Re: Editing QuickTime:GPSCoordinates
Post by: Fulco on March 30, 2019, 06:47:35 AM
Thanks, that worked! I hope the next release has the ability to write 6 decimals when editing the GPS coordinates.

Regards,
Fulco
Title: Re: Editing QuickTime:GPSCoordinates
Post by: Phil Harvey on March 30, 2019, 09:27:01 AM
What do you mean by write 6 decimals?  In my example I'm writing values with 6 digits after the decimal.

- Phil
Title: Re: Editing QuickTime:GPSCoordinates
Post by: Fulco on March 31, 2019, 06:29:40 AM
When the existing gps coordinates value contains 4 digits behind the decimal Exiftool will only write 4 new digits again when editing this value:

Code: [Select]
exiftool -gpscoordinates -n /Users/Fulco/Test/20180525165936.mp4
GPS Coordinates                 : 52.449 4.8864
exiftool -QuickTime:GPSCoordinates#="52.372821 4.893702 0" -overwrite_original /Users/Fulco/Test/20180525165936.mp4
    1 image files updated
exiftool -gpscoordinates -n /Users/Fulco/Test/20180525165936.mp4
GPS Coordinates                 : 52.3728 4.8937 0


When the value has already 6 digits then Exiftool will also only allow 4 new digits:

Code: [Select]
exiftool -gpscoordinates -n /Users/Fulco/Test/IMG_0228.MOV
GPS Coordinates                 : 52.378135 4.922581 6
exiftool -QuickTime:GPSCoordinates#="52.372821 4.893702 0" -overwrite_original /Users/Fulco/Test/IMG_0228.MOV
    1 image files updated
exiftool -gpscoordinates -n /Users/Fulco/Test/IMG_0228.MOV
GPS Coordinates                 : 52.3728 4.8937 0


Regards,
Fulco
Title: Re: Editing QuickTime:GPSCoordinates
Post by: Phil Harvey on March 31, 2019, 06:51:24 AM
Hi Fulco,

Ah, thanks.  I see the problem.  This will be fixed in the next version too.

- Phil
Title: Re: Editing QuickTime:GPSCoordinates
Post by: Fulco on April 05, 2019, 09:07:15 AM
Thank you for Exiftool 10.34! Now I can write 6 digits after the decimal.