Extracting H264 from a MKV Container...

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Extracting H264 from a MKV Container...

Postby 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.
Dreakon
 
Joined: 14 Apr 2004

Postby 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
User avatar
FinalResolve
 
Joined: 15 Apr 2007

Postby 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.
Dreakon
 
Joined: 14 Apr 2004

Postby Purge » Mon May 21, 2007 8:22 pm

does it work in vlc?
User avatar
Purge
 
Joined: 10 Oct 2005
Location: Under Aus

Postby 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...
Dreakon
 
Joined: 14 Apr 2004

Postby 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.
User avatar
Purge
 
Joined: 10 Oct 2005
Location: Under Aus

Postby 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. :)
Dreakon
 
Joined: 14 Apr 2004

Re: Extracting H264 from a MKV Container...

Postby 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
Blue Mandrake
 
Joined: 17 Apr 2007
Location: Somewhere Far Beyond

Postby 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
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Postby 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).
User avatar
Tab.
 
Joined: 13 May 2003
Location: gayville
Status: SLP

Postby post-it » Sat Jun 09, 2007 6:45 pm

TAB .. my hero ^_^

too bad I arrived late ~_~

.. is there a Tutorial on how to "to export to a different container" with VLC ?
User avatar
post-it
 
Joined: 17 Jul 2002
Status: Audio: bass remains; if else, 3D

Postby Tab. » Sat Jun 09, 2007 6:59 pm

Yeah, I'm back -- in black -- apparently, after two years. Anyway, the export wizard is pretty simple to figure out. Lemme fire up VLC here and see...
Okay, File>Wizard, select Transcode/Save to File, Existing Playlist Item, make sure "Transcode Video" and "Transcode Audio" aren't checked (unless, of course, you want to convert the video or audio), select whatever container you want, the file to save to, and you should be set.
User avatar
Tab.
 
Joined: 13 May 2003
Location: gayville
Status: SLP

Postby Purge » Sat Jun 09, 2007 7:00 pm

Tab. wrote: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).


um cant you just rename extension?
User avatar
Purge
 
Joined: 10 Oct 2005
Location: Under Aus

Postby Tab. » Sat Jun 09, 2007 7:15 pm

Purge wrote:
Tab. wrote: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).


um cant you just rename extension?


LOL
No. Computers don't work that way.
User avatar
Tab.
 
Joined: 13 May 2003
Location: gayville
Status: SLP

Postby post-it » Sat Jun 09, 2007 7:45 pm

TAB 8-)

THx; sometimes I make things too complicated ^_^
User avatar
post-it
 
Joined: 17 Jul 2002
Status: Audio: bass remains; if else, 3D

Next

Return to Footage Help

Who is online

Users browsing this forum: No registered users and 0 guests