ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Minary on June 08, 2017, 10:43:19 AM

Title: Batch set creation date of images
Post by: Minary on June 08, 2017, 10:43:19 AM
I have a set of images I have extracted from a video. Now I want to set the creation date/date time original of the images so that one second passes from one image to the next, from the first through to the last image.

For example,

say that I images with names following the following pattern;

frame_0110, frame_0111...frame_0298.

How can I set an arbitrary date so that frame_0110's creation date is X and frame_0111's is x+1 etcetera?

Doing this will allow me to adjust date of the images according to the following method,
"-DateTimeOriginal+=5:10:2 10:48:0" DIR.

Best Regards
Joel Forsmoo
Title: Re: Batch set creation date of images
Post by: Phil Harvey on June 08, 2017, 10:47:56 AM
Hi Joel,

There are a number of posts explaining this.  Here is one. (https://exiftool.org/forum/index.php/topic,7603.msg38569.html#msg38569)

Basically, you use FileSequence to adjust the time, like this if you want increments of 1 second:

exiftool "-createdate+<0:0:${filesequence}" DIR

The numbering of course depends on the order the files are processed.  You may use the -fileOrder option to control this if necessary.

- Phil
Title: Re: Batch set creation date of images
Post by: Minary on June 08, 2017, 10:52:52 AM
Hi Phil,

Thank you very much - I really appreciate your prompt reply!

As English is not my first language I see now that I did not use the correct search term(s).

Thank you very much again!

Best Regards
Joel