Skip to content

Instantly share code, notes, and snippets.

@dashbad
Created October 27, 2016 05:36
Show Gist options
  • Save dashbad/7337ade601f049a5087024476b61bd32 to your computer and use it in GitHub Desktop.
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
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