Skip to content

Instantly share code, notes, and snippets.

@dduvnjak
Created August 5, 2013 18:44
Show Gist options
  • Save dduvnjak/6158333 to your computer and use it in GitHub Desktop.
Save dduvnjak/6158333 to your computer and use it in GitHub Desktop.
One liner for batch extract of subtitles from MKV. (in this case, subtitles are track #3)
find /path -name "*.mkv" -exec bash -c 'mkvextract tracks "{}" 3:"$(dirname "{}")/$(basename "{}" .mkv).srt"' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment