Encode DVD into a mkv file with different subtitles and languages
First you have to find the chapter you want to encode and the ids for the subtitles and audio.
You can use the tool lsdvd
for this:
The longest track is the track one with English, Francais and Portugues languages and various subtitles.
First we’ll define a variable with the movie title and create a directory:
Now we encode the audio tracks, here English and French:
The audio id (aid
) 128 and 129 are given by the Stream id 0x80 and 0x81 (hexadecimal notations and )
The same for the subtitles:
And now the video without sound and subtitles (we put -sid 1000 to be sure to not have subtitles. Some DVD put subtitles as default.):
Now we can merge all the files in the mkv file:
The full script below:
To encode audio and video simultaneously:
If you want to ask me a question or leave me a message add @bougui505 in your comment.