Skip to content

Instantly share code, notes, and snippets.

@scottopell
Last active September 19, 2023 19:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottopell/10083c44642baa339d9fe1ffeab2177d to your computer and use it in GitHub Desktop.
Save scottopell/10083c44642baa339d9fe1ffeab2177d to your computer and use it in GitHub Desktop.
How to remove an audio track from an mkv
  1. Install mkvtoolsnix.
  2. brew install --with-qt5 mkvtoolnix
  3. Use mkvinfo to get the audio track IDs that you want.
  4. mkvinfo *.mkv
  5. Note that the audio track IDs are not the track numbers. Check the man page of mkvmerge or mkvinfo for more details.
  6. Use mkvmerge to create a copy of the mkv with ONLY the desired tracks using --audio-tracks.
  7. mkvmerge -o out.mkv -a 2 orig.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment