ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Chris75 on September 22, 2011, 11:04:31 AM

Title: time synchronization by increment and start/end
Post by: Chris75 on September 22, 2011, 11:04:31 AM
Hi Phil & others,

I am looking for a way to change the DateTimeOriginal of images with an increment/interval of e.g. 1 sec using a certain start and end time for the images. Is that possible? How can I use it? I know that with the Exifer of Friedemann Schmidt it is possible but it's not for batch jobs.

Thanks & best regards,
Christian
Title: Re: time synchronization by increment and start/end
Post by: Phil Harvey on September 22, 2011, 11:50:02 AM
Hi Christian,

Here is thread (https://exiftool.org/forum/index.php/topic,3221) in which a user posted a batch file that seems to be exactly what you need.

- Phil
Title: Re: time synchronization by increment and start/end
Post by: Chris75 on September 24, 2011, 08:20:22 AM
Hi Phil,

Thanks for your fast reply. Indeed, this seams to be exactly what I was looking for.  :) I will check it with my photos.

I am still looking for an option to copy from another time to DateTimeOriginal in batch. Do you have any idea how I can do this?

Best regards,
Christian
Title: Re: time synchronization by increment and start/end
Post by: Phil Harvey on September 24, 2011, 08:53:24 AM
Hi Christian,

Copying tags is a basic function of exiftool.  It is done like this:

exiftool "-DSTTAG<SRCTAG" ...

- Phil
Title: Re: time synchronization by increment and start/end
Post by: Chris75 on September 24, 2011, 10:43:42 AM
Hi Phil,

Thanks for your input again. And sorry, I'm not that used to it - but I will further try.

Best regards,
Christian
Title: Re: time synchronization by increment and start/end
Post by: Chris75 on September 29, 2011, 09:40:40 AM
Hi Phil,

I have tried over and over again to copy from one time tag to another one in the jpgs but it didn't work. I also didn't find the error after reading the whole documentation on that functionality.
In detail I wanted to copy in batch the tags from gpstimestamp to datetimeoriginal for all jpgs in a specific folder. Therefore I used e.g. the following cmd-line... exiftool "-$datetimeoriginal<$gpstimestamp" d:\images

Do I have to copy all jpgs upfont or add the tag in general? I'm quite confused what went wrong. Do you have any idea how I can make it?

Thanks & best regards,
Christian
Title: Re: time synchronization by increment and start/end
Post by: Phil Harvey on September 29, 2011, 09:55:17 AM
Hi Christian,

Quote from: Chris75 on September 29, 2011, 09:40:40 AM
exiftool "-$datetimeoriginal<$gpstimestamp" d:\images

There are a couple of problems with this.  Instead, try:

exiftool "-datetimeoriginal<gpsdatetime" d:\images

This will work if both GPSDateStamp and GPSTimeStamp exist in your images (they are required by the Composite (https://exiftool.org/TagNames/Composite.html) GPSDateTime tag).

- Phil
Title: Re: time synchronization by increment and start/end
Post by: Chris75 on September 29, 2011, 10:08:32 AM
Hi Phil,

Thanks for you very fast reply!

Only the tag gpstimestamp is available in the images but I'd like to add datetimeoriginal with the same time as in gpstimestamp. Do I have to take something additionally into account?

Best regards,
Christian
Title: Re: time synchronization by increment and start/end
Post by: Phil Harvey on September 29, 2011, 10:12:54 AM
Hi Christian,

You need to get the date from somewhere.  To set it manually, you could do something like this:

exiftool "-datetimeoriginal<2011:09:29 $gpstimestamp" d:\images

(Note that if you are on Mac or Linux you must use single quotes instead of double quotes around arguments containing a $ symbol.)

- Phil
Title: Re: time synchronization by increment and start/end
Post by: Chris75 on September 30, 2011, 08:53:15 AM
Hi Phil,

Thanks again for your reply. I've tried the cmd-line and added the date manually and it works but the gpstimestamp was not copied to the datetimeoriginal tag. It now includes the manually set date and a time that wasn't available in any time tag, really strange!

Best regards,
Christian
Title: Re: time synchronization by increment and start/end
Post by: Phil Harvey on September 30, 2011, 08:58:44 AM
I think you should probably read FAQ number 3 (https://exiftool.org/faq.html#Q3), but if I had more information I could maybe figure out what is going on.

- Phil
Title: Re: time synchronization by increment and start/end
Post by: Chris75 on September 30, 2011, 09:33:04 AM
Thanks, I will check the FAQ3 and further try to fix it.

Best,
Christian