News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Remove all short videos

Started by emerrryjones, July 13, 2021, 11:20:00 PM

Previous topic - Next topic

emerrryjones

Hi everyone,

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.

Thanks in advance!!!   ;D ;D ;D

StarGeek

* 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).

Phil Harvey

The other thread never showed how to move the videos.  It is done by writing Directory, like this:

exiftool -if "$duration# < 10" -directory="SOME_FOLDER_NAME" DIR

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).