Hi. I'm using exiftool via a python wrapper for a project of mine (https://github.com/RhetTbull/osxphotos (https://github.com/RhetTbull/osxphotos)) which exports photos from Apple's photos. I've been successful in writing metadata this way to exported images with exception of GPS data for QuickTime files.
My python wrapper executes exiftool via exiftool -stay_open True -@ - -common_args -n -P -G and this works fine for most tags but when I try to write Keys:GPSCoordinates, I get error
Warning: Error converting value for Keys:GPSCoordinates (ValueConvInv)
Nothing to do.
I can successfully write this information from the command line:
exiftool -Keys:GPSCoordinates="34.0, -118.0" test.mp4
1 image files updated
But if I do this via -stay_open, I get the error:
-Keys:GPSCoordinates=34.0,-118.0,0
test.mp4
-execute
Warning: Error converting value for Keys:GPSCoordinates (ValueConvInv)
Nothing to do.
{ready}
-Keys:GPSCoordinates=34.0, -118.0
test.mp4
-execute
Warning: Error converting value for Keys:GPSCoordinates (ValueConvInv)
Nothing to do.
I can however clear the tag this way:
-Keys:GPSCoordinates=
test.mp4
-execute
1 image files updated
{ready}
Any ideas what I'm doing wrong for this particular tag. I'd like to write the GPS coordinates (without altitude preferably) and this is possible on the command line.
I'm running exiftool version 12.11 on MacOS 11.0.1 (BigSur).
See this post (https://exiftool.org/forum/index.php?topic=11055.msg63492#msg63492). You have the -n (--printConv) option (https://exiftool.org/exiftool_pod.html#n---printConv) in your stay open command, which means the GPSCoordinates should be separated by spaces only, no commas. But on the command line you don't have that option, so the commas work.
Thank-you StarGeek! That did the trick...GPSCoordinates are working perfectly now!