Extracting H264 from a MKV Container...

If you have questions about compression/encoding/converting look here.
Dreakon
Joined: Wed Apr 14, 2004 4:10 pm
Org Profile

Extracting H264 from a MKV Container...

Post by Dreakon » Mon May 21, 2007 3:55 pm

I have a video file here. It runs fine in Media Player Classic, but I throw the file through MKVextract.exe (part of the mkvtoolnix package) to extract the video alone and it goes to hell.

Here's what the mkv file looks like playing normally in Media Player Classic:
Image

Here's what it looks like after I extract the video using MKVextract.exe and/or VirtualDubMod and play it in Media Player Classic:
Image
(note, its the same frame and everything, the entire video stream is messed up)

I honestly have no idea why its doing this. I've extracted other H264 video files from other MKV containers and this hasn't happened, tons of times. This is news to me and I don't even know where to start looking for help. the mkvtoolnix package is updated to the latest, as is Virtual Dub Mod.

Hope someone here has a few hints to get this working for me. :P


P.S: Something wierd though, the video plays fine if I play it in VirtualDubMod rather than Media Player Classic. Media Player Classic gets the mucked up mess you see up there though. Windows Media Player also doesn't play it right.

User avatar
FinalResolve
Joined: Sun Apr 15, 2007 1:34 pm
Org Profile

Post by FinalResolve » Mon May 21, 2007 4:08 pm

I had this problem a while back, so I just tried a different extractor (AVI-Mux_GUI) and it worked. But I still don't know what the problem was.
Image

Dreakon
Joined: Wed Apr 14, 2004 4:10 pm
Org Profile

Post by Dreakon » Mon May 21, 2007 4:28 pm

FinalResolve wrote:I had this problem a while back, so I just tried a different extractor (AVI-Mux_GUI) and it worked. But I still don't know what the problem was.
Bleh, just tried AVI-Mux_GUI with no luck. It's like the only time this video stream is satisfied is when it's in a MKV container.

User avatar
Purge
Joined: Mon Oct 10, 2005 9:18 am
Location: Under Aus
Org Profile

Post by Purge » Mon May 21, 2007 8:22 pm

does it work in vlc?

Dreakon
Joined: Wed Apr 14, 2004 4:10 pm
Org Profile

Post by Dreakon » Tue May 22, 2007 12:18 am

Purge wrote:does it work in vlc?
Actually... yeah. I really don't want to switch players and I want this to work in Media Player Classic, but it working in VLC has made me very confused...

User avatar
Purge
Joined: Mon Oct 10, 2005 9:18 am
Location: Under Aus
Org Profile

Post by Purge » Tue May 22, 2007 3:08 am

if it worked it vlc - then my guess is that the codec being used by your other players is stuffing it up.

is there a reason you need the vid stream on its own because simply leaving it in the mkv container is a simple fix :P.

Dreakon
Joined: Wed Apr 14, 2004 4:10 pm
Org Profile

Post by Dreakon » Tue May 22, 2007 5:17 am

Purge wrote:is there a reason you need the vid stream on its own because simply leaving it in the mkv container is a simple fix :P.
I could be wrong, but I think video editing is tough in a container like that. You guys would probably know better than me though. :P

Either way, a fix for me was to multi-pass reencode the video file in x264 and apparently the result works just fine. Thanks for all the help though. :)

User avatar
Blue Mandrake
Joined: Tue Apr 17, 2007 3:23 pm
Location: Somewhere Far Beyond
Org Profile

Re: Extracting H264 from a MKV Container...

Post by Blue Mandrake » Mon May 28, 2007 5:52 pm

Dreakon wrote: P.S: Something wierd though, the video plays fine if I play it in VirtualDubMod rather than Media Player Classic. Media Player Classic gets the mucked up mess you see up there though. Windows Media Player also doesn't play it right.
i've got the same problems, but i can watch my video without any problems in Winamp. but actually i was not albe to fix it. i last try was to install the k-lite codec pack, but this also doesn't work.

maybe i should save my vid as a .wmv :)
Image
Image

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Tue May 29, 2007 2:25 pm

Dreakon wrote:
Purge wrote:is there a reason you need the vid stream on its own because simply leaving it in the mkv container is a simple fix :P.
I could be wrong, but I think video editing is tough in a container like that. You guys would probably know better than me though. :P
If you want to edit with it, leave it in MKV, and when you go to load it into VDub, tell it to use the DirectShowSource AviSynth template, or write up your own AviSynth script using DirectShowSource and feed that script to VDub. Once it's in VDub, go through the normal spiel to save it as a Huffy/Lagarith/MJPEG/other-lossless-or-lossy-but-keyframes-only AVI.

User avatar
Tab.
Joined: Tue May 13, 2003 10:36 pm
Status: SLP
Location: gayville
Org Profile

Post by Tab. » Sat Jun 09, 2007 1:34 pm

VLC allows you to export to a different container as well if you don't want to recompress (which you'll have to with AVISynth).

Locked

Return to “Conversion / Encoding Help”