Log in

View Full Version : mkvmerge: MP3 needs ~-300ms delay to be in sync


GizmoDerMokwai
30th September 2008, 22:49
Hi forums,

I have some strange mkvmerge problem: I used to mux x264(pal, no frames dropped during encoding)+mp3(delay=0,source delay= 0) with mkvmerge from mkvtoolnix (2.0.2-1build1). The files where perfect in sync on mplayer (latest svn) but slightly async in vlc.
I updated mkvmerge to "v2.3.0 ('Freak U') built on Sep 7 2008 22:14:10", no I have to apply a delay to my MP3 audio on every file I mux of approx. -300ms to have the file in sync in mplayer AND vlc.

Anyone having simular problems?

PS: I'm on linux here, x264 got encoded with mencoder, mp3 got encoded with lame.
PPS: A friend of mine has the same problem with my encoded raw streams with mkvmerge 2.2.2.0 on windows. audio is asynchron by approx. -300ms.

PPPS: mkvinfo output of "original" 2.0.2 (delay= 0) mux (http://pastebin.ca/1215162) and of 2.3.0 (delay = -300ms) mux (http://pastebin.ca/1215161).

PPPPS: Video encoded using:mencoder -v "raw.mpg" -vf crop=***,hqdn3d=2:1:2,scale=***,harddup -sws 9 -ovc x264 -x264encopts subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:turbo=1:pass=1:psnr:threads=auto:bitrate=2000 -ofps 25 -oac copy -of rawvideo -o "video.264"
mencoder -v "raw.mpg" -vf crop=***,hqdn3d=2:1:2,scale=***,harddup -sws 9 -ovc x264 -x264encopts subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:pass=2:psnr:threads=auto:bitrate=2000 -ofps 25 -oac copy -of rawvideo -o "video.264", audio encoded using:lame -V2 --vbr-new

PPPPPS: Streams are prefect in sync in an AVI Container with delay = 0ms for audio.