ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dzeek on April 27, 2020, 07:26:35 AM

Title: How to disable timezone check when geotagging?
Post by: dzeek on April 27, 2020, 07:26:35 AM
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
Title: Re: How to disable timezone check when geotagging?
Post by: Phil Harvey on April 27, 2020, 08:00:17 AM
I think the troubleshooting section of the ExifTool geotagging page (https://exiftool.org/geotag.html#Troubleshooting) may have the answers you need.

- Phil
Title: Re: How to disable timezone check when geotagging?
Post by: dzeek on April 27, 2020, 08:11:49 AM
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?
Title: Re: How to disable timezone check when geotagging?
Post by: dzeek on April 27, 2020, 08:43:31 AM
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?
Title: Re: How to disable timezone check when geotagging?
Post by: Phil Harvey on April 27, 2020, 09:09:54 AM
Try adding this to your command:

"-Geotime<${CreateDate}Z"

- Phil
Title: Re: How to disable timezone check when geotagging?
Post by: dzeek on April 27, 2020, 09:54:30 AM
That worked! Thank you.