ExifTool Forum

ExifTool => Newbies => Topic started by: sebm on February 01, 2023, 05:13:18 AM

Title: GPS tag edits Not Working
Post by: sebm on February 01, 2023, 05:13:18 AM
Hi. I have a bunch of files where the tags are all messed up: I believe thanks to faulty GPS on the camera and likely my bad efforts to fix the tags.

Am trying to use this command to use the file modify date to overwrite the GPSTimeStamp and GPSDateStamp. It seems to work - no syntax errors and it processes the files but all the XMP files remain unchanged even though it sees all of them. Any idea what the problem might be?

exiftool -ext xmp "-GPSTimeStamp<FileModifyDate" -globaltimeshift -7 "D:\Seb Documents\My Videos\Need Sorting\MTS Files not rejected\Change Dates-SIN
Title: Re: GPS tag edits Not Working
Post by: Phil Harvey on February 01, 2023, 10:02:43 AM
The problem is that GPSTimeStamp only exists in EXIF.  For XMP you need to write GPSDateTime.

- Phil
Title: Re: GPS tag edits Not Working
Post by: StarGeek on February 01, 2023, 10:51:18 AM
Also, if it matters, copying directly from the FileModifyDate will end up with a time zone in XMP:GPSDateTime.  If the addition of the  GlobalTimeShift option (https://exiftool.org//exiftool_pod.html#globalTimeShift-SHIFT) is to adjust the time to UTC, then you're going to want to remove the time zone from the copy.  Adding something like this to the command
-d "%Y:%m:%d %H:%M:%SZ"
Title: Re: GPS tag edits Not Working
Post by: sebm on February 02, 2023, 04:21:50 AM
Thanks so much. SOLVED.