Created
October 27, 2016 05:36
-
-
Save dashbad/7337ade601f049a5087024476b61bd32 to your computer and use it in GitHub Desktop.
Find all mkv's in current directory and sum their durations in seconds
This file contains 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 '*.mkv' -exec ffprobe -v quiet -of csv=p=0 -show_entries forma│···································· | |
t=duration {} \; | paste -sd+ -| bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment