Using the filename for Exif Media Created value?

Started by greddin, December 23, 2021, 10:39:01 AM

Previous topic - Next topic

greddin

My first post was a typo in the filenames.  My files look like this one:  2011-07-15 173606.mp4. 

In the sample here, I believe 173606 would translate to 4:36:06 pm CST.  Rather than hard-coding 00:00:00, can you modify my command so that it converts these digits into the time as well? 

Phil Harvey

This makes the command much simpler:

exiftool "-CreateDate<FileName" -api QuickTimeUTC DIR

The only catch is that the system time zone must be the same as the times in the file name.

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

greddin

Thank you guys!  I went around the long way but I got there and that's what matters  :)

It's a good learning process for me.