Copy and paste GPS to a movie -- commas and periods

Started by wywh, July 10, 2022, 11:47:24 AM

Previous topic - Next topic

wywh

Is it possible to display and then copy decimal degree 'Keys:GPSCoordinates' from a movie and paste it as is to another movie?

In my workflow I now must insert commas in between the pasted coordinates:

exiftool -a -G1 -s -n '-*GPS*' .                   
======== ./2570-0621-1200-00.m4v
[Keys]          GPSCoordinates                  : 29.9792 31.1342 146.6

exiftool -Keys:GPSCoordinates='29.9792 31.1342 146.6' .
Warning: Error converting value for Keys:GPSCoordinates (PrintConvInv)
Nothing to do.

exiftool -Keys:GPSCoordinates='29.9792, 31.1342, 146.6' .
    1 directories scanned
    1 image files updated


Additionally I'd prefer commas in the pasted coordinates so I don't have to change them to periods. Is that possible?

exiftool -Keys:GPSCoordinates='29,9792, 31,1342, 146,6' .
Warning: Error converting value for Keys:GPSCoordinates (PrintConvInv)
Nothing to do.


- Matti

StarGeek

Use the -n (--printConv) option or # version
C:\>exiftool -all= -P -overwrite_original -Keys:GPSCoordinates#="29.9792 31.1342 146.6" Y:\!temp\Test1.mp4
    1 image files updated

C:\>exiftool -G1 -a -s -GPSCoordinates -GPSCoordinates# Y:\!temp\Test1.mp4
[Keys]          GPSCoordinates                  : 29 deg 58' 45.12" N, 31 deg 8' 3.12" E, 146.6 m Above Sea Level
[Keys]          GPSCoordinates                  : 29.9792 31.1342 146.6
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

wywh

Quote from: StarGeek on July 10, 2022, 12:15:09 PM
Use the -n (--printConv) option or # version

Thanks for the speedy reply!

exiftool -n -Keys:GPSCoordinates='29.9792 31.1342 146.6' .
    1 directories scanned
    1 image files updated

exiftool -Keys:GPSCoordinates#='29.9792 31.1342 146.6' . 
    1 directories scanned
    1 image files updated


Also commas work:

exiftool -n -Keys:GPSCoordinates='29,9792 31,1342 146,6' .
    1 directories scanned
    1 image files updated

exiftool -Keys:GPSCoordinates#='29,9792 31,1342 146,6' .                                   
    1 directories scanned
    1 image files updated


- Matti