Log in

View Full Version : mkvMerge shows m2v streams as mp3 ones


spectrvm
11th August 2008, 02:10
mkvMerge recognizing/confusing some m2v files produced with dgIndex (from source DVDs) as mp3 audio streams.

If it try to mux I get non-mp3 data messages all over the place which ends in a no-go situation.

The m2v streams are properly played from within dgIndex, MPC, etc.

If for example I check them with mp4box -info whatever.m2v it reports clearly that they are one-track video-only streams.

But I can't mux them into mkv files.

Any advice ?

eg: movie.m2v (log from dgIndex)

Stream Type: MPEG2 Program
Profile: main@main
Frame Size: 720x480
Display Size: 720x480
Aspect Ratio: 16:9 [3]
Frame Rate: 29.970030 fps
Video Type: Film 99 %
Frame Type: Progressive
Coding Type: I
Colorimetry: SMPTE 170M
Frame Structure: Frame
Field Order:
Coded Number: 223003
Playback Number: 2
Frame Repeats: 0
Field Repeats: 0
VOB ID: 2
Cell ID: 1
Bitrate:
Bitrate (Avg):
Bitrate (Max):
Audio Stream: 80: AC3 3/2 448
Audio Stream: 82: AC3 2/0 192
Audio Stream: 83: AC3 2/0 192
Audio Stream: 89: DTS Audio
Timestamp: 2:34:58
Elapsed: 0:06:31
Remain: FINISH
FPS:
Info:

eg: mkvmerge --output movie.mkv --vtracks 0 movie.m2v

PS R:\workspace\ mkvmerge --output movie.mkv --vtracks 0 --noaudio movie.m2v
mkvmerge v2.2.0 ('Turn It On Again') built on Mar 4 2008 12:58:13
'movie.m2v': Using the MP2/MP3 demultiplexer.
Warning: mp3_reader: skipping 15798 bytes at the beginning of 'movie.m2v' (no valid MP3 header found).
'movie.m2v' track 0: Using the MPEG audio output module.
The file 'movie.mkv' has been opened for writing.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 7169 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost

Warning: The MPEG audio track 0 from 'movie.m2v' contained 1378 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost

Warning: The MPEG audio track 0 from 'movie.m2v' contained 2037 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost

Warning: The MPEG audio track 0 from 'movie.m2v' contained 4627 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost

Warning: The MPEG audio track 0 from 'movie.m2v' contained 881 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 748 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 492 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 206 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 703 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 1 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 140 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 502 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 656 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 137 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 25 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 681 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 853 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 1 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 740 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
Warning: The MPEG audio track 0 from 'movie.m2v' contained 1183 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.

...

setarip_old
11th August 2008, 06:55
Hi!

I'm not a user of mkvMerge but, I don't see where you are inputting an audiostream as well (I presume this is required), in order to have something to multiplex?

spectrvm
11th August 2008, 08:38
Hi!

I'm not a user of mkvMerge but, I don't see where you are inputting an audiostream as well (I presume this is required), in order to have something to multiplex?

nope, that's the point, if I try to make an mkv file with just one video stream without an audio one I get warnings saying the stream I'm trying to mux is a layer 3 and not an mpeg-2 one ... this is for simplicity, I have no problems muxing the associated ac3/mp3/dts streams for all the video files I have trouble with

mkvmerge does not require coupled video/audio files, you can place both, video, audio, or many of them as you like

the problem is mkvmerge trying to "read" a video stream as an audio one ... I suspect some problem with the stream header but I can not confirm since I don't have problems with other utilities like mp4box reading those same streams

Koadic
11th August 2008, 13:25
I would use DS Mux (gdsmux.exe included with haali's) to mux them. This is how I get vc1 streams into a mkv. If somehow your audio and video go out of sync after this, as is the case with vc1 when muxed with DS Mux, you will need to remux once again with mkvmerge using a timecode file for your video stream. Since it will already be in a mkv container, you wont have the same problem with mkvmerge as you did at first.

Alternately, you can first mux it to mp4 (or maybe rename to mpg as i believe it may think that it is a video only stream to start with, not really sure) and then import that into mkvmerge. I guess the important aspect of these choices is that you would already have the m2v stream inside a different container.