Author Topic: Editing QuickTime:GPSCoordinates  (Read 418 times)

Fulco

  • Full Member
  • ***
  • Posts: 74
Editing QuickTime:GPSCoordinates
« 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.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15115
    • ExifTool Home Page
Re: Editing QuickTime:GPSCoordinates
« Reply #1 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
...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 ($).

Fulco

  • Full Member
  • ***
  • Posts: 74
Re: Editing QuickTime:GPSCoordinates
« Reply #2 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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15115
    • ExifTool Home Page
Re: Editing QuickTime:GPSCoordinates
« Reply #3 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
...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 ($).

Fulco

  • Full Member
  • ***
  • Posts: 74
Re: Editing QuickTime:GPSCoordinates
« Reply #4 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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15115
    • ExifTool Home Page
Re: Editing QuickTime:GPSCoordinates
« Reply #5 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
...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 ($).

Fulco

  • Full Member
  • ***
  • Posts: 74
Re: Editing QuickTime:GPSCoordinates
« Reply #6 on: April 05, 2019, 09:07:15 AM »
Thank you for Exiftool 10.34! Now I can write 6 digits after the decimal.