Extracting H264 from a MKV Container...
-
- Joined: Wed Apr 14, 2004 4:10 pm
Extracting H264 from a MKV Container...
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:
Here's what it looks like after I extract the video using MKVextract.exe and/or VirtualDubMod and play it in Media Player Classic:
(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.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.
Here's what the mkv file looks like playing normally in Media Player Classic:
Here's what it looks like after I extract the video using MKVextract.exe and/or VirtualDubMod and play it in Media Player Classic:
(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.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.
- FinalResolve
- Joined: Sun Apr 15, 2007 1:34 pm
-
- Joined: Wed Apr 14, 2004 4:10 pm
- Purge
- Joined: Mon Oct 10, 2005 9:18 am
- Location: Under Aus
- Purge
- Joined: Mon Oct 10, 2005 9:18 am
- Location: Under Aus
-
- Joined: Wed Apr 14, 2004 4:10 pm
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.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 .
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.
- Blue Mandrake
- Joined: Tue Apr 17, 2007 3:23 pm
- Location: Somewhere Far Beyond
Re: Extracting H264 from a MKV Container...
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.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.
maybe i should save my vid as a .wmv
- Qyot27
- Surreptitious fluffy bunny
- Joined: Fri Aug 30, 2002 12:08 pm
- Status: Creepin' between the bullfrogs
- Location: St. Pete, FL
- Contact:
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.Dreakon wrote: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.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 .