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 ?
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 (https://exiftool.org/TagNames/QuickTime.html)), you might have to add the -api QuickTimeUTC option (https://exiftool.org/ExifTool.html#QuickTimeUTC) 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 (https://exiftool.org/exiftool_pod.html#TAG---VALUE)). The -api QuickTimeUTC option can be included without worry as it will not affect files that aren't videos.