Change by exiftool datetimeoriginal in a group of pictures

Started by RH, August 03, 2014, 05:11:43 AM

Previous topic - Next topic

RH

I would like to change $datetimeoriginal in a group of pictures using  exiftool. I need a variable to datetimeoriginal was increased by 1 second.
I tried this way (windows batch):

setlocal enabledelayedexpansion
set /A Counter=0
for %%f in (*.jpg) do (
        echo %%f !Counter!
   set /A Counter+=1       
   rem jhead -mkexif -ts2014:07:22-15:00:!Counter! %%f
   exiftool -datetimeoriginal="2013:10:03 09:55:"!Counter! %%f
)


Previously I used jhead and it works till 59 (pistures) ok. Using exiftool - this way - is a problem. Can anybody help?

Phil Harvey

Sorry for the delay in responding.  I've been on vacation.

You could do this:

exiftool "-datetimeoriginal+<0:0:$filesequence"  -ext jpg DIR

where DIR is the name of the directory containing the images.

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