Skip to content

Instantly share code, notes, and snippets.

@cskonopka
Created April 30, 2024 00:50
Show Gist options
  • Save cskonopka/7d85160ce20843a48be93a3a86686143 to your computer and use it in GitHub Desktop.
Save cskonopka/7d85160ce20843a48be93a3a86686143 to your computer and use it in GitHub Desktop.
for f in ./*.mp4
do ffprobe -v quiet -of csv=p=0 -show_entries format=duration "$f"
done | awk '{sum += $1}; END{print sum}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment