PDA

View Full Version : Muxing h264 encoded video in mkv


bokkoman
14th November 2006, 23:45
Hi
I encoded an anime with gknot, only the video, it made an mkv file from it. So i extracted the video from the mkv, demuxed the audio from the dvd, had my own made subtitles and tried to mux the with mkvtoolnix 1.8.0 (mkvmerge).

But when pressing start i get this error:
Error: 'C:\NARUTO\Naruto Movie 2.avi' track 0: You are trying to put AVC/h.264 video from an AVI or a similar VfW
(Video for Windows) compatible source into a Matroska file in the so-called 'VfW compatibility mode'. Please note that
this is not the official way to store AVC/h.264 video in Matroska. Therefore proper playback of such files cannot be
guaranteed, and we strongly urge you to use the native Matroska-mode.

I dont know what to do? I tried to mux the original mkv video file in the new mkv but then i get the same error. Do i need to reencode the video?

thanks.

bond
14th November 2006, 23:48
gknot and virtualdubmod do not create mkv files in native mode for avc, the recommended mode

for getting a native mkv file, demux the video to raw .264, mux the .264 to .mp4 with yamb and mux the .mp4 to .mkv with mkvmerge

sounds hard, but isnt and you will get a correct file

bokkoman
14th November 2006, 23:56
Ok, so how do demux the video to raw .264? With mkvextract?

like:
mkvextract tracks "video.mkv" 1:movie.264?

and where do i get the other program?

thanks for quick respond :)

**edit**
Ok thanks m8, i got it all to work now :)
Its running smoothly and i think i did a good job for the first time :p

thanks again for your help.

chilledoutuk
15th November 2006, 02:10
Its running smoothly and i think i did a good job for the first time.
You mean x264 and autogk did a good job:D

giandrea
15th November 2006, 02:41
Can't mkvmerge mux raw 264 video to Matroska without passing through MP4box?
If not, why?

imcold
15th November 2006, 10:31
No, it can't, since it doesn't have a h264 parser.

Sharktooth
16th November 2006, 04:00
imcold is right. it would be really usefull if the matroska guys can implement h264 parsing in mkvmerge.

bond
16th November 2006, 19:45
its good getting people used to mp4 ;)

Haali
16th November 2006, 23:35
Actually there is an h264 parser in my DS muxer. So doing something like

dsmux dest.mkv source.mkv

should convert it to native mode mkv.