PDA

View Full Version : mkv to mpeg2


Alverman
31st January 2004, 17:41
I need to make a DVD from a video in mkv format, so I need to encode video in mpeg2, but if it's impossible to extract video stream from the container how can I encode in mpeg2?

Please help me....:confused:

Perplx
31st January 2004, 17:54
I just loaded an mkv directly into TmpgEnc it uses directshow to open it. If that doesnt work you could use Avisynth or just demux the video to an avi. This is really a non issue.

BlindWanderer
31st January 2004, 18:40
If anything, I consider MKV as a 'final' format - not an intermediate one. Don't use it for files you'd like to edit.

sh0dan (http://forum.doom9.org/member.php?s=&action=getinfo&userid=1701) commenting on MKVSource for AviSynth (http://forum.doom9.org/showthread.php?s=&threadid=69132#post431543)don't need to say much more...
alls been said in that topic.

Alverman
3rd February 2004, 00:07
If anything, I consider MKV as a 'final' format - not an intermediate one. Don't use it for files you'd like to edit.

That sound absurde to me for the following reason:

1- Nothing in life, expecially in computer life, is forever.
2- Something finished for me can be unfinished for another.
3- MKV has to be a container not a safe.

And then a question for Perplx:

TmpegEnc doesn't directly support loading mkv and the only way I manage to do that is using avisynth, but there are some sync problems, how can I demux it into an avi if I can't extract the video?

Thanks a lot for your help

starwarsandrisk
3rd February 2004, 00:53
well... i know virtual dub mod will demux all of the different streams for you.... problem you might run into... which i run into with anime's is the multiple languages.... and watch out.... sometimes if the subtitles are not in srt or ssa format... you can't open the mkv in bdub mod....

Lagoon
3rd February 2004, 05:31
tmpeg can do that since it use directshow, if you later wanna use another encoder, i suggest you encode it first with tmpeg at 9.8mbits bitrate so there is no loss in quality then use your favorite app.

BlindWanderer
3rd February 2004, 07:35
mkv supports VFR. How many other containers support vfr? how many editing front ends support vfr?

If you treat a vfr as if it had a constant frame rate your audio will desync.

ChristianHJW
3rd February 2004, 08:54
Originally posted by Alverman TmpegEnc doesn't directly support loading mkv

Goto 'file' 'options' 'environmental settings' 'VFAPI plugin' and increase the priority for the 'DirectShow Source Filter' and it will work perfect ....

Perplx
4th February 2004, 02:24
I thought of a non-directshow option that doesn't involve large temporary files.
Use the frame server in Virtualdubmod, im pretty sure it should seek better because it does all the "extra" parsing and its not based of DS. Also I think you also have to add avisynth to the chain.

ChristianHJW
5th February 2004, 20:36
Originally posted by Alverman That sound absurde to me for the following reason:
1- Nothing in life, expecially in computer life, is forever.
2- Something finished for me can be unfinished for another.
3- MKV has to be a container not a safe. ... dont worry. People tend to forget that matroska was released in May 2003. We cant do wonders, but its definitely stupid to believe we are not working on tools allowing to extract all the streams you can put in .... and to render them back into their original containers ....

Alverman
17th February 2004, 20:16
... dont worry. People tend to forget that matroska was released in May 2003. We cant do wonders, but its definitely stupid to believe we are not working on tools allowing to extract all the streams you can put in .... and to render them back into their original containers ....

I really appreciate your work and I'm looking forward to see new tools to work on it..

Alverman
19th February 2004, 21:24
I've a mkv with RV9 video and AAC audio

I tired to encode in mpeg2 with TmpgEnc through AviSynth (Direct Show source) but it gives me a file that plays faster than the original one (the lenght is the same but the m2v end with one minute of still frame)

I've checked the original fps with VirtualDubMod to put the in the avisynth script

ChristianHJW
20th February 2004, 09:02
Dont use Avisynth here, but open the file directly in TMPEGencoder, using 'Direct Show Media Source Filter' . To do so, goto 'options' 'environmental settings' 'vfapi plugin' , click on the filter and then 'higher priority' 2 or 3 times.

Avisynth will simulate an AVI to the app opening it, and AVIs have to be 'Constant Frame Rate' ( = CFR ) while RV9 is 'Variable Frame Rate' ( = VFR ) in most cases. If TMPEGencoder opens the file using DirectShow directly, it can cope with that .....

Alverman
20th February 2004, 18:51
Thanks for your help, it works without the avisynth, the only problem is that the subtitles hard-burned on video look very blurry, when the rest of image is perfect....