ExifTool Forum

ExifTool => Newbies => Topic started by: longbeard on July 13, 2017, 05:16:05 PM

Title: Please help with Time Shift!
Post by: longbeard on July 13, 2017, 05:16:05 PM
Hi, I'm a total newb (in exif & command line) and can't figure out how to shift a batch of raw images ahead by 19 seconds in mac terminal. I tried entering this:

exiftool "-DateTimeOriginal+=0:0:0  0:0:19" DIR

But it didn't work. (I know DIR is directory folder.) What is the correct formula?

Thanks in advance!!!
Title: Re: Please help with Time Shift!
Post by: Hayo Baan on July 13, 2017, 05:21:02 PM
Have you already tried not providing a day shift? So only provide the 00:00:19 time part. I'm not at my computer right now so I can't check, but I think that should work. Also on a Mac, in general, you'd want to use single quotes instead of double quotes to prevent the shell interpreting the string (not an issue with this command though).
Title: Re: Please help with Time Shift!
Post by: longbeard on July 13, 2017, 06:25:50 PM
I just tried entering:

exiftool "-DateTimeOriginal+=0:0:19" DIR

and

exiftool '-DateTimeOriginal+=0:0:19' DIR

No luck yet. The Terminal scans & updates, but the images only changes to the current time. And other ideas? Thanks!
Title: Re: Please help with Time Shift!
Post by: longbeard on July 13, 2017, 06:49:16 PM
I figured it out! To add 19 seconds I used this:

exiftool -AllDates+=0:0:19 /Users/Me/Desktop/Pics

Thanks!!
Title: Re: Please help with Time Shift!
Post by: StarGeek on July 13, 2017, 06:49:20 PM
Where are you reading the info to see if the time has shifted?  If the time has been changed to the current time, then it is probably reading FileModifyDate, not DateTimeOriginal.

What is the result of exiftool -g1 -a -s -DateTimeOriginal FILE (pick one file to check and replace FILE with the full path to that file).

If there wasn't an error response, then DateTimeOriginal was updated.  This is probably a FAQ 3 (http://www.exiftool.org/faq.html#Q3) answer.
Title: Re: Please help with Time Shift!
Post by: StarGeek on July 13, 2017, 06:50:05 PM
Ah, never mind my questions then.  Glad you figured it out.