Skip to content

Instantly share code, notes, and snippets.

@alimbada
Last active October 11, 2018 15:31
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 alimbada/d3d0a0296c1943056c214d5c6cbf75cf to your computer and use it in GitHub Desktop.
Save alimbada/d3d0a0296c1943056c214d5c6cbf75cf to your computer and use it in GitHub Desktop.
Gets subtitle track number from an MKV file
ffprobe -hide_banner -i $mkvFile 2>&1 | grep -i subtitle | awk '{print $2}' | awk -F':' '{ print substr($2,1,1) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment