Answers for "Get total duration of video files in a directory"

1

Get total duration of video files in a directory

find . -maxdepth 1 -iname '*.mp4' -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \;
149.233333
130.146667
275.690000

find . -maxdepth 1 -iname '*.mp4' -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \; | paste -sd+ -| bc
555.070000
Posted by: Guest on July-14-2021

Code answers related to "Get total duration of video files in a directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language