Sakura-chan
4th August 2011, 05:00
Hi!
I have almost 60 AVIs (DivX and MP3) which I mux into MKVs adding 2 subtitle tracks. All of them go fine, except one, on which mkvmerge gives me this warning a bit before reaching half the process:
Warning: 'C:\...\filename.avi' track 1: This MPEG audio track contains 3528 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
And as it says, the MKV lost audio/video sync. It starts good, but at some point near the middle, audio desyncs and plays before the video.
Maybe the AVI is corrupt? I store hashes for the files and they are good. Maybe it was always bad since the DVD rip? No idea. I yet have to watch the whole AVI to see if there's something wrong.
3528 bytes are 27.56 kbits, given the MP3 is 56 kbps, there should be half a second of non-valid data. That's consistent with the desync while playing.
So the whole question is, what happened with the MP3 track? In the AVI the audio/video play perfectly. Why mkvmerge gives problems? And more important, is there any way to tell mkvmerge to turn the non-valid data into silence instead of taking it out? Not crop the MP3 track, put half a second of silence so it keeps the original length and it doesn't get desynced.
Here's the file info of the AVI if it's of any help:
General
Complete name : C:\...\filename.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 305 MiB
Duration : 50mn 27s
Overall bit rate : 844 Kbps
Video #0
ID : 0
Format : MPEG-4 Visual
Format settings, BVOP : 1
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : DX50
Codec ID/Hint : DivX 5
Duration : 50mn 27s
Bit rate : 781 Kbps
Width : 720 pixels
Height : 528 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.082
Stream size : 282 MiB (93%)
Writing library : DivX 5.1.1 (Maupiti) (UTC 2003-11-19)
Audio #1
ID : 1
Format : MPEG Audio
Format version : Version 2
Format profile : Layer 3
Mode : Joint stereo
Mode extension : Intensity Stereo + MS Stereo
Codec ID : 55
Codec ID/Hint : MP3
Duration : 50mn 27s
Bit rate mode : Constant
Bit rate : 56.0 Kbps
Channel(s) : 2 channels
Sampling rate : 24.0 KHz
Compression mode : Lossy
Stream size : 20.2 MiB (7%)
Alignment : Split accross interleaves
Interleave, duration : 100 ms (2.50 video frames)
Thanks :)
I have almost 60 AVIs (DivX and MP3) which I mux into MKVs adding 2 subtitle tracks. All of them go fine, except one, on which mkvmerge gives me this warning a bit before reaching half the process:
Warning: 'C:\...\filename.avi' track 1: This MPEG audio track contains 3528 bytes of non-MP3 data which were skipped. The audio/video synchronization may have been lost.
And as it says, the MKV lost audio/video sync. It starts good, but at some point near the middle, audio desyncs and plays before the video.
Maybe the AVI is corrupt? I store hashes for the files and they are good. Maybe it was always bad since the DVD rip? No idea. I yet have to watch the whole AVI to see if there's something wrong.
3528 bytes are 27.56 kbits, given the MP3 is 56 kbps, there should be half a second of non-valid data. That's consistent with the desync while playing.
So the whole question is, what happened with the MP3 track? In the AVI the audio/video play perfectly. Why mkvmerge gives problems? And more important, is there any way to tell mkvmerge to turn the non-valid data into silence instead of taking it out? Not crop the MP3 track, put half a second of silence so it keeps the original length and it doesn't get desynced.
Here's the file info of the AVI if it's of any help:
General
Complete name : C:\...\filename.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 305 MiB
Duration : 50mn 27s
Overall bit rate : 844 Kbps
Video #0
ID : 0
Format : MPEG-4 Visual
Format settings, BVOP : 1
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : DX50
Codec ID/Hint : DivX 5
Duration : 50mn 27s
Bit rate : 781 Kbps
Width : 720 pixels
Height : 528 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.082
Stream size : 282 MiB (93%)
Writing library : DivX 5.1.1 (Maupiti) (UTC 2003-11-19)
Audio #1
ID : 1
Format : MPEG Audio
Format version : Version 2
Format profile : Layer 3
Mode : Joint stereo
Mode extension : Intensity Stereo + MS Stereo
Codec ID : 55
Codec ID/Hint : MP3
Duration : 50mn 27s
Bit rate mode : Constant
Bit rate : 56.0 Kbps
Channel(s) : 2 channels
Sampling rate : 24.0 KHz
Compression mode : Lossy
Stream size : 20.2 MiB (7%)
Alignment : Split accross interleaves
Interleave, duration : 100 ms (2.50 video frames)
Thanks :)