Sorting video files

Started by lumiere, June 24, 2021, 06:06:21 AM

Previous topic - Next topic

lumiere

Hello everyone,

I have a mix of videos and photo files in a set of folders. I would like to move/copy and sort them by exif data (so each file goes into its own folder/subfolder). I know exif tool can do that with pictures but how about the video files like mp4 ?

StarGeek

You would do it the same way, but odds are you would have to use a different time related tag.  The most likely candidate being the CreateDate tag.  Additionally, since video timestamps are supposed to be in UTC according to the spec (read fourth paragraph on the Quicktime tags page), you might have to add the -api QuickTimeUTC option to adjust the time properly.

As an example, you can include the options for videos in the same command as you would for images.
exiftool -echo "Renaming files" -d "%Y-%m-%d_%H.%M.%S%%+c.%%e" -api QuickTimeUTC "-filename<CreateDate" "-filename<DateTimeOriginal" /path/to/files/

Here, it will rename files by the DateTimeOriginal if it exists and fall back to the CreateDate if not (see Note #1 under the -TAG[+-^]=[VALUE] option).  The -api QuickTimeUTC option can be included without worry as it will not affect files that aren't videos.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype