Created
May 6, 2017 15:41
-
-
Save vjk2005/21efe154106d505fb9200e8b8b5f21cc to your computer and use it in GitHub Desktop.
Find the total time of all mp4 videos in a folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -maxdepth 1 -iname '*.mp4' -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \; | paste -sd+ -| bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment