I don’t do this very often, and when I do, I forgot the syntax and had to google it all over again. Time to put an end to this and put it in my own Medium story.
sudo apt update
sudo apt install -y mkvtoolnix
To list all the tracks in the MKV but it doesn’t tell you which track is which language.
mkvmerge -i video.mkv
To list all the tracks in details but it is harder to read. Best to save to file and vim from there.
Command below to extract
mkvextract tracks video.mkv 2:output.srt
In generic form will be
mkvextract tracks <video_file.mkv> <track_id>:<output_file.srt>