Editing QuickTime:GPSCoordinates

Started by Fulco, March 29, 2019, 04:27:14 AM

Previous topic - Next topic

Fulco

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:

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.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Fulco

Thanks, that worked! I hope the next release has the ability to write 6 decimals when editing the GPS coordinates.

Regards,
Fulco

Phil Harvey

What do you mean by write 6 decimals?  In my example I'm writing values with 6 digits after the decimal.

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

Fulco

When the existing gps coordinates value contains 4 digits behind the decimal Exiftool will only write 4 new digits again when editing this value:

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:

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

Phil Harvey

Hi Fulco,

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

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

Fulco

Thank you for Exiftool 10.34! Now I can write 6 digits after the decimal.