Changing all dates for a .MOV file

Started by sunshake, September 13, 2023, 12:54:50 AM

Previous topic - Next topic

sunshake

I've been looking at this question across various forums but can't seem to get it to work or quite understand the solution.

Essentially, I'm trying to change all of the dates on a .MOV file to match across the board.

For example, if I wanted to set all dates and time (Date Modified, Date Created, etc) to:

15th August 2023 at 04:52am

for a .MOV file, what would I write?

Using that familiar date to explain it in context of ExifTool would help a lot to clarify the format.

Thank you.

wywh

#1
Try this as a start although it is clumsy to write the same date multiple times:

exiftool -overwrite_original -wm w -api LargeFileSupport=1 -api QuickTimeUTC=1 '-AllDates=2023:08:15 04:52:00' '-Track*Date=2023:08:15 04:52:00' '-Media*Date=2023:08:15 04:52:00' '-Keys:CreationDate=2023:08:15 04:52:00' '-FileCreateDate=2023:08:15 04:52:00' '-FileModifyDate=2023:08:15 04:52:00' movie.mov
I usually set or copy the date to the filename (2023-0815-0452-00.mov or something like that -- exiftool is quite forgiving in the naming) so I can insert it at one spot and copy from that to other fields for all movies in a folder:

exiftool -m -overwrite_original -wm w -api LargeFileSupport=1 -api QuickTimeUTC=1 '-AllDates<FileName' '-Track*Date<FileName' '-Media*Date<FileName' '-Keys:CreationDate<FileName' '-FileCreateDate<FileName' '-FileModifyDate<FileName' .
If you are on Windows, I think you must replace those single quotes ' to double quotes "

- Matti

sunshake

You really are an 'ExifTool Freak', Matti. First solution across 4 or 5 similar threads that worked.

First time I've seen this solution too, somehow.

Took your advice for setting the filename too, worked great.

Massive thanks for taking the time to help! Huge respect.

wywh

Quote from: sunshake on September 13, 2023, 08:13:28 AMsetting the filename too

Did you use exiftool to rename the movies? Below is a command to do that for all movies in a folder (filename looks like 2023-0815-0452-00.mov and will append _NUM if CreateDate is the same for multiple files). You can tweak it to your own liking. Use double quotes " in Windows.

exiftool -fileOrder5 FileName -api QuickTimeUTC=1 '-FileName<QuickTime:CreateDate' -d '%Y-%m%d-%H%M-%S%%+2nc.%%e' .
For images use something like:

exiftool -fileOrder5 FileName '-FileName<ExifIFD:DateTimeOriginal' -d '%Y-%m%d-%H%M-%S%%+2nc.%%e' .
- Matti