PDA

View Full Version : MKV : choose audio or subtitltes with avisynth or playlist


xjingyu
7th June 2008, 10:04
Hello, I am making a sort of menu in which you can launch different mkv files and I'd like to create option menu in which you can choose the language of the video and the subtitle.
That's why I'd like to create a sort of playlist which will launch a mkv file with appropriated tracks.

Here a exemple of what I want to do :
-I have a mkv file with 2 audio track and 2 different subtitles
-I want to create a playlist or avisynth file which will do something like that :
Launch video.mkv with 2nd audio track and with 1st subtitle
Or
Launch video.mkv with 1st audio track and no subtitle

I have actually manage to do such a thing but I have to demuxe the mkv file and launch the video trough a avisynth like this :
LoadPlugin("DGAVCDec\DGAVCDecode.dll")
video = AVCSource("Video_Track1.dga")
audio = DirectShowSource("Audio_Track2.aac")
AudioDubEx(video, audio)

But I'd like to do it without having to demuxe my mkv file, is this possible?

(I hope you understand my english)