I need to ftp upload all the mp4 files in a directory with length > 4 minutes using the shell. I can't find any script to check how long a video is. Does anybody have any idea how to do that?
Thank you very much!
This will give you the length of a video.
You can try to use avconv command..
First you should to install:
if you type the command with the flag -i, you will get information about the video:
In the output there is a field called Duration
Now you can use the command to only get the value of the field Duration
In my case the result is:
58 Minutes and 28.05 seconds.
Hope this will helpful!