[MEncoder-users] Audio and video is fine in sync with mplayer but not with mencoder

Bernd Butscheidt bbutscheidt at yahoo.de
Thu Oct 28 21:55:00 CEST 2010


Hello,

I have several ts-streams which play fine in mplayer (=smplayer) without setting 
any audio-delay correction.


Encoding these files with mencoder is leading to a constant audio delay.

This is what I usually do with these h264-DVB-sources:

mencoder -mc 0 -noskip -ovc x264 -vf 
pp=fd,framestep=2,hqdn3d,delogo=1132:48:48:80:5,harddup -speed 24000/25000 -ofps 
24  -x264encopts subq=1:frameref=3:me=hex:b_adapt:threads=auto:8x8dct:crf=12  
-oac mp3lame -fafmttag 0x55 -af lavcresample=48000 -lameopts 
cbr:br=224:aq=0:mode=1  test.ts -of lavf -lavfopts format=matroska -o test.mkv


Just for the record: With only small changes, this works very, very reliable 
with DVD-Sources or mpeg2-ts-streams demuxed with ProjectX (example DVD:)

mencoder -mc 0 -noskip -ovc x264 -vf  
pp=fd,,hqdn3d,delogo=1132:48:48:80:5,harddup -speed  24000/25000 -ofps 24  
-x264encopts  subq=1:frameref=3:me=hex:b_adapt:threads=auto:8x8dct:crf=12  -oac  
mp3lame -fafmttag 0x55 -af lavcresample=48000 -lameopts  cbr:br=224:aq=0:mode=1 
dvd://1 -dvd-device /dev/sr0 -of lavf -lavfopts format=matroska -o  00001.mkv

Do I miss an option? Or is there at least a way to find out which audio-delay 
mplayer is automatically using while playback?

Kind regards
Bernd B.




More information about the MEncoder-users mailing list