Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
Created April 5, 2020 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfeilbach/5094351d08c9ac1824aafdee64f2f3c0 to your computer and use it in GitHub Desktop.
Save jfeilbach/5094351d08c9ac1824aafdee64f2f3c0 to your computer and use it in GitHub Desktop.
get bitrate and convert to kilobits per second
val=$(ffprobe -v error -show_entries format=bit_rate -of default=noprint_wrappers=1:nokey=1 input.mkv)
echo "$(($val / 1000))" kb/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment