The problem is that videoplayers in Ubuntu have a problem with integrated central european subtitles.The solution is to extract them. Does anyone knows if there is a command in the terminal or a program to extract the subtitle from a mkv file?
The problem is that videoplayers in Ubuntu have a problem with integrated central european subtitles.The solution is to extract them. Does anyone knows if there is a command in the terminal or a program to extract the subtitle from a mkv file?
Install
mkvtoolnix
withsudo apt-get install mkvtoolnix
.Run from terminal:
mkvextract tracks <your_mkv_video> <track_numer>:<subtitle_file.srt>
Use
mkvinfo
to get information about tracks.Using this utility you can extract any track, even audio or video.
you can use mkvtoolnix .
Another tip now because mkv files may contain many subtitles , so the tip is this script that you can search for the language you want , so for example if you want English it will download just English .
Script :
Save this script nameyouwant.sh and make it executable
Now in terminal change directory to script folder and write
./nameyouwant.sh /pathtosave
Answer of Cornelius finally worked for me, but some things were not obvious.
Install
mkvtoolnix
Detect track numbers
Sample output:
Extract tracks
Syntax:
Note, that you can't have any spaces between
<track_number>:
and<subtitle_file.srt>
.Example: