Log in

View Full Version : MPEG-4 ASP to MKV


UED77
26th March 2007, 01:53
I have a couple DVD backups I did back in the day, AVIs with Xvid and AC3. For several reasons, I would like to remux these files into Matroska, but I have been running into troubles.

I used mp4box on the extracted elementary ASP files to mux them into MP4, but when I mux this MP4 and the AC3 together with mkvmerge, the resulting files are in VFW-compatibility mode...

Is there any way to mux MPEG-4 ASP into MKV in native, V_MPEG4/ISO/ASP mode?

Thanks in advance :)

bond
26th March 2007, 20:27
i think there is an engage native asp option in mkvmerge

you could also use the haali muxer in directshow

UED77
26th March 2007, 21:00
Thanks for the recommendation; I tried --engage native_mpeg4 for mkvmerge command line to mux the MP4 into MKV, but I ran into problems described in the thread Extracting Native Mpeg-4 ASP (http://forum.doom9.org/showthread.php?t=123427), as the audio is horribly desynced from the video, and both VLC and Media Player Classic play the video jerky, as if frames are dropped.

The other thread states --engage native_mpeg4 is not supported, and is purely experimental. Is there an alternate method, one that won't cause the video to play back incorrectly?

I will try Haali's muxer, and report back...

EDIT: Haali's muxer works... I connected Haali's Splitter output pin from the MP4 to the input pin of Haali's muxer and got the video into MKV. I opened that in Mkvmerge GUI and muxed it with the AC3 audio, Mkvmerge complained in the form of persistent warnings, but produced a file that was not jerky and in-sync (with Media Player Classic. VLC doesn't handle it that well, it's still a bit jerky).

However, even with subsequent muxings, the file is still... strange... and gives the same errors in Mkvmerge. Namely
Warning: pr_generic.cpp/generic_packetizer_c::add_packet(): timecode < last_timecode (00:00:00.042 < 00:00:00.125) for 1 of 'F:\test\mkvgraphed.mkv'. This should not have happened. Please contact the author Moritz Bunkus <moritz@bunkus.org> with this error/warning message, a description of what you were trying to do, the command line used and which operating system you are using. Thank you.

Any suggestions? ^^;;

Thanks in advance.

SeeMoreDigital
26th March 2007, 22:59
From what I understand, AVI-Mux GUI can re-mux MPEG-4 video with AC3 audio within .AVI directly into the .MKV container...


Cheers

UED77
26th March 2007, 23:26
From what I understand, AVI-Mux GUI can re-mux MPEG-4 video with AC3 audio within .AVI directly into the .MKV container...


Cheers

Thanks for the suggestion; it indeed can, but in the resulting file, the video stream is in VFW-compatibility mode (V_MS/VFW/FOURCC), not native MPEG-4 (V_MPEG/ISO/ASP) mode, which is exactly what I am trying to avoid ;)

bond
27th March 2007, 21:16
you would need to ask haali or mosu whether that error message is a real bug and if yes, whether it is in mkvmerge or haalis muxer

btw you can also mux the audio into mkv with haali afaik