Tools to manipulate .mkv (matroska) audio/video files
From WickyWiki
Tools: mkvmerge, mkvinfo, mkvextract, mkvpropedit, mmg
sudo apt-get install mkvtoolnix
Example:
#describe the mkv contents and tracks mkvinfo *.mkv #or for short list with ID's mkvmerge -i *.mkv #extract tracks 1,2,3 mkvextract tracks *.mkv 1:video.mpeg 2:audio.mp3 3:subtitles.srt #extract attachments id=1 mkvextract attachments *.mkv 1:attachments.ext