[MPlayer-users] Mencoder:Time synchronisation problem catting avi

Martin Kufner mk at kufnerfutures.com
Wed Sep 24 11:49:35 CEST 2003


I want to join several avi with their own audio to on avi.
Some are extracted out of a avi, others are grabbed from the v4l-Device.
They shall be joined like an automatic cutting machine.

The pieces are ok (Audio/video sync).

The problem is after the first cut the audiotrack lags 0.5 to 2 seconds 
unpedictable behind the videotrack.

Do i use the wrong commands?
What can I do else?

Yours Martin

I use

/usr/bin/mencoder -tv 
-oac mp3lame -ovc lavc -lavcopts vcodec=mjpeg -vop 
scale=720:567,flip,rotate,crop=447:567:0:0 -o 'grab1.avi'

to grab from video

mencoder -noskip -oac mp3lame -af resample=44100 -ovc lavc -lavcopts 
vcodec=mjpeg -o piece1.avi -ss 5 -endpos 10 largemovie.avi


cat piece1.avi piece2.avi grab1.avi piece3.avi grab2.avi | mencoder -oac 
copy -ovc copy -o 'out.avi' -

to join them.

I tried other codec-settings but that didn't change much.

PPS test-sequences will be on


in about one hour

kufner futures
Römergasse 26 A-1160 Wien
Tel +43 1 4854200 Fax +43 1 4854200 30
mailto:office at kufnerfutures.com

More information about the MPlayer-users mailing list