Gauze
16th April 2006, 03:38
I've been trying to encode an anime I have. However, I keep getting a weird error whenever I use mkvmerge to mux the video, audio, and subtitles together.
http://img81.imageshack.us/img81/685/snapshot200604140502353fk.png
My basic process has been:
DVD Decrypter>DVD2AVI>Besweet>AVS Script>x264 encoder/megui>mkvmerge
Since I don't really know any proper diagnostic tools, I basically did various muxing to see what would happen.
1. Muxing just video with audio.
No glitch
2. Muxing video with audio with subtitles extracted from KAA's release
Glitch
3. Extracting everything from KAA's release and muxing it back together
No glitch
4. Muxing KAA's video with audio I ripped and subtitles I ripped
No glitch
From this I concluded that something is wrong with my video, since it seems to not like subtitles. So I restarted the process from the beginning except I used:
DVD Decrypter>DVD2AVI>Besweet>AVS Script>VDub>mkvmerge
Again the video came out fine. However when I tried to mux the video with audio and subtitles is mkvmerge, I got this message:
mkvmerge v1.6.5 ('Watcher Of The Skies') built on Dec 7 2005 18:53:31
'D:\HAGAREN_THE_MOVIE_SP1\VIDEO_TS\fma.avi': Using the AVI demultiplexer. Opening file. This may take some time depending on the file's size.
'D:\HAGAREN_THE_MOVIE_SP1\VIDEO_TS\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - Japanese - DELAY 0ms.ogg': Using the OGG/OGM demultiplexer.
'F:\Program Files\MKVtoolnix\Track3.ass': Using the SSA/ASS subtitle reader.
At the moment mkvmerge does not support converting from VfW-mode AVC/h.264 tracks to native Matroska-mode AVC/h.264 tracks. You can, however, first import the video track into a MP4 file with e.g. 'MP4Box' (use Google). Then you can use mkvmerge and put the video into a Matroska file.
If you're trying to get AVC/h.264 from an AVI into Matroska then the commands you need to use are:
avi2raw avc.avi raw.264
mp4box -fps 23.976 -add raw.264 avc.mp4
If you really know what you are doing then you can force mkvmerge to put this AVC/h.264 track into a Matroska file even in VfW mode if you add '--engage allow_avc_in_vfw_mode' to the command line. You can do that in mmg with the 'Add command line options' menu entry in the 'Muxing' menu.
Not really what that meant, but I asumed I needed to convert my video to mp4 so mkvmerge would accept it or something.
But first I tried to force mkvmerge to mux it.
1. Mux video with audio with subtitles
Glitch
2. Mux video with audio
No glitch
I'm going to try to use avi2raw and mp4box whenever I get mp4box 0.4.0 or whenever I get VC6 to actually compile it...
More importantly, does anyone know what is going wrong? Or maybe more things I should try to get a better idea what's going wrong?
PS:
For looking closely at the video, it looks the glitch are 1 pixel by 4 pixel in size and every other row down the left of the screen. They also seem to be the same pixels as the those on the right side of screen.
http://img81.imageshack.us/img81/685/snapshot200604140502353fk.png
My basic process has been:
DVD Decrypter>DVD2AVI>Besweet>AVS Script>x264 encoder/megui>mkvmerge
Since I don't really know any proper diagnostic tools, I basically did various muxing to see what would happen.
1. Muxing just video with audio.
No glitch
2. Muxing video with audio with subtitles extracted from KAA's release
Glitch
3. Extracting everything from KAA's release and muxing it back together
No glitch
4. Muxing KAA's video with audio I ripped and subtitles I ripped
No glitch
From this I concluded that something is wrong with my video, since it seems to not like subtitles. So I restarted the process from the beginning except I used:
DVD Decrypter>DVD2AVI>Besweet>AVS Script>VDub>mkvmerge
Again the video came out fine. However when I tried to mux the video with audio and subtitles is mkvmerge, I got this message:
mkvmerge v1.6.5 ('Watcher Of The Skies') built on Dec 7 2005 18:53:31
'D:\HAGAREN_THE_MOVIE_SP1\VIDEO_TS\fma.avi': Using the AVI demultiplexer. Opening file. This may take some time depending on the file's size.
'D:\HAGAREN_THE_MOVIE_SP1\VIDEO_TS\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - Japanese - DELAY 0ms.ogg': Using the OGG/OGM demultiplexer.
'F:\Program Files\MKVtoolnix\Track3.ass': Using the SSA/ASS subtitle reader.
At the moment mkvmerge does not support converting from VfW-mode AVC/h.264 tracks to native Matroska-mode AVC/h.264 tracks. You can, however, first import the video track into a MP4 file with e.g. 'MP4Box' (use Google). Then you can use mkvmerge and put the video into a Matroska file.
If you're trying to get AVC/h.264 from an AVI into Matroska then the commands you need to use are:
avi2raw avc.avi raw.264
mp4box -fps 23.976 -add raw.264 avc.mp4
If you really know what you are doing then you can force mkvmerge to put this AVC/h.264 track into a Matroska file even in VfW mode if you add '--engage allow_avc_in_vfw_mode' to the command line. You can do that in mmg with the 'Add command line options' menu entry in the 'Muxing' menu.
Not really what that meant, but I asumed I needed to convert my video to mp4 so mkvmerge would accept it or something.
But first I tried to force mkvmerge to mux it.
1. Mux video with audio with subtitles
Glitch
2. Mux video with audio
No glitch
I'm going to try to use avi2raw and mp4box whenever I get mp4box 0.4.0 or whenever I get VC6 to actually compile it...
More importantly, does anyone know what is going wrong? Or maybe more things I should try to get a better idea what's going wrong?
PS:
For looking closely at the video, it looks the glitch are 1 pixel by 4 pixel in size and every other row down the left of the screen. They also seem to be the same pixels as the those on the right side of screen.