[MEncoder-users] Audio sync problems

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sat Nov 26 21:54:03 CET 2005


On Saturday, 26 November 2005 at 21:43, Karl Mitchell wrote:
> I'm a returning user to mencoder (last used in 2003 under Linux), so my 
> apologies if the answer to my question seems obvious.
> 
> I've been trying to backup a DVD to H.264/AAC on MacOS X 10.4 (Tiger).  
> I managed to compile mplayer/mencoder from CVS last night (2006/11/25) 
> with x264 and faac support, so no problems there.  However, I've been 
> having major problems with lip sync, with audio being a significant 
> fraction of a second ahead of video.  I suspect that the problem I'm 
> having is due to the input being mixed progressive and telecine NTSC, a 
> format I've never used before, as I used to live in a PAL country.  The 
> following is my attempt at a first pass:
> 
> mencoder dvd://1 -dvd-device /Volumes/Neptune/Movies/DVD/VIDEO_TS \
> -alang eng -oac faac -faacopts br=128 \
> -vf pullup,softskip -ovc x264 -x264encopts bitrate=1200:turbo=1:pass=1 \
> -ofps 24000/1001 -o title1.mp4
> 
> I have also tried using -mc (values of 0, 0.1 and 1), with no success.  
> -oac copy seems to produce similarly out of sync results.
> 
> mplayer dvd://1 -dvd-device /Volumes/Neptune/Movies/DVD/VIDEO_TS works fine.
> 
> I can't find any clues to solve this in the documentation (which only 
> has -nosound examples for mixed progressive and telecine) or man page, 
> and would greatly appreciate any help.
> 
> On the plus side, this basic first-pass H.264 encode seems to already be 
> producing extremely good video results at only 1200 kbps.  I look 
> forward to seeing the second-pass results.

Try encoding audio and video separately. I've had good results encoding
video with -nosound (I know this is not recommended, but try) and muxing
two audio tracks dumped with mencoder -of rawaudio into Matroska
container while still maintaing perfect lip-sync.

Regards,
R.

-- 
MPlayer RPMs maintainer: http://rpm.greysector.net/mplayer/
"I am Grey. I stand between the candle and the star. We are Grey.
 We stand between the darkness ... and the light."
        -- Delenn in Grey Council in Babylon 5:"Babylon Squared"




More information about the MEncoder-users mailing list