Change created date of .mp4 video clips and set according to the filenames.

Started by alihusnainc1, February 24, 2021, 10:25:47 AM

Previous topic - Next topic

alihusnainc1

I have a bulk of videos that i need to import to iphotos, but before that i need to change the created_dates of files otherwise they will be sorted and considered as most recent.
Current file naming convention: clip-2008-01-13 05;46;43.mp4

Is there a way to change metadata of all .mp4 files placed in a directory?
Your help in this issue will be appreciated.

StarGeek

exiftool "-CreateDate<Filename" /path/to/files/

This command creates backup files.  Add -Overwrite_Original to suppress the creation of backup files.  Add -r to recurse into subdirectories.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

alihusnainc1

Thanks StarGeek,
It works just fine !

The only problem is that for me clip-1998-09-17 12;17;09.mp4 comes out with 17-september-1998 8:17:09PM (rather than 12:17:09PM).
Is there any timezone issue but i set the datetime according to filenames that are static? If yes, then how can i fix it.

Regards,
Ali

Phil Harvey

Hi Ali,

Try adding -api quicktimeutc to the command.  Read here for an explanation of this option.

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