Error converting value for Keys:GPSCoordinates (ValueConvInv)

Started by RhetTbull, December 04, 2020, 12:55:33 AM

Previous topic - Next topic

RhetTbull

Hi. I'm using exiftool via a python wrapper for a project of mine (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).

StarGeek

See this post.  You have the -n (--printConv) option 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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

RhetTbull

Thank-you StarGeek!  That did the trick...GPSCoordinates are working perfectly now!