Moving short videos to another folder

Started by DanThePhotoMan, October 07, 2020, 06:59:17 AM

Previous topic - Next topic

DanThePhotoMan

I'm trying to move short videos to another folder, less than 10 seconds. I was able to move files based on year and resolution, but the mediaduration is in hour:minute:seconds.  If I could somehow convert this to seconds, then just move everything less than 10 seconds to another folder, that'd be great!

I'm watching the videos on a PLEX server and in shuffle mode, I'm trying to get rid of all the really short videos, because I find them annoying.

Any help will be appreciated, this is some great software, I've been able to do a lot with it so far!

greybeard

How about something like this:

exiftool -directory="bkp" -if '$MediaDuration < 10' -n -ext mov .

Phil Harvey

(The -n option in greybeard's command converts MediaDuration to seconds.  Also, use double quotes instead of single quotes if you are in Windows.)

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