How to disable timezone check when geotagging?

Started by dzeek, April 27, 2020, 07:26:35 AM

Previous topic - Next topic

dzeek

I'm developing a tool to extract photos from videos from a certain 360 camera that contains a metadata track that includes GPS data. I extract the frames as JPG files and then tag each one with "-DateTimeOriginal" and "-CreateDate" based on the date the video was captured and the time of day that corresponds to the position of the frame in the video track. I extract the GPS data into a CSV file that includes the Date, Time, Lat, Lon and Heading. The dates and times are all from the timezone in which the video was captured. I then want to use the following command to interpolate the GPS data and geotag the photos:

exiftool -geotag myfile.csv *.jpg

This generates "Warning: Time is too far beyond track in File:Geotime (ValueConvInv)" errors. I want the tool to be able to be used anywhere with any video from the 360 camera. Is there a way to disable the timezone check?

Thank you

Phil Harvey

...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 ($).

dzeek

#2
I saw that before posting but #3 means my tool would need the complication of calculating and using the -geosync parameter depending on the timezone where the tool is run. Is there a way to avoid that by either disabling the timezone check or by formatting the times in the GPS CSV file so that they are interpretted by ExifTool as local times?

dzeek

#3
I noticed the message was actually "Warning: Time is too far beyond track in File:Geotime (ValueConvInv)". Not "Warning: Time is too far before track in File:Geotime (ValueConvInv)". I corrected the original post.

Is there a way to avoid that by either disabling the timezone check or by formatting the times in the GPS CSV file so that they are interpretted by ExifTool as local times?

Phil Harvey

Try adding this to your command:

"-Geotime<${CreateDate}Z"

- 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 ($).

dzeek