[MPlayer-users] Mencoder loses A/V sync when combining MJPEG files

Ron Johnson ron.l.johnson at cox.net
Tue Dec 6 01:46:35 CET 2011


Hi,

(I'm currently making my first attempt at building them from source.)

Our DSLR camera takes video in "unoptimized" QuickTime format. 
Strictly, it's 30fps MJPEG video and 64kbps mono PCM audio.

The command which retains A/V sync uses PCM audio, but "AC3" command 
loses sync.  Attached are text files with results.

Besides using a distro version of mencoder, am I doing something wrong?

$ VCODEC=vcodec=mpeg2video:aspect=4/3:vbitrate=6000:trell:nr=100

Works:

$ mencoder \
     *.mov \
     -o ${1}-pcm.avi \
     -ovc lavc -lavcopts $VCODEC \
     -oac pcm -channels 1 -srate 8000

Loses sync:

$ mencoder \
     *.mov \
     -o ${1}-ac3.avi \
     -ovc lavc -lavcopts $VCODEC \
     -oac lavc -lavcopts acodec=ac3:abitrate=160


Thanks,
Ron

-- 
Vegetarians eat vegetables, Humanitarians frighten me.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: retains_sync.txt
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20111205/3df8addf/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: loses_sync.txt
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20111205/3df8addf/attachment-0003.txt>


More information about the MPlayer-users mailing list