[MEncoder-users] A/V sync problem when encoding TS stream into MPEG4

R.L. Horn lists at eastcheap.org
Mon May 5 02:31:19 CEST 2008


On Sat, 3 May 2008, Jiri Hofman wrote:

> I am experiencing a mencoder problem which appeared during development.
> I am not sure if this is a duplicate report, however, I will describe it.

> After I upgraded to latest version or SVN, A/V sync is lost.

> mencoder "$1".m2t -edl "$1".edl -hr-edl-seek -aspect 16:9 -vf 
> scale=1024:-2 -ovc lavc -oac lavc -channels 2 -lavcopts 
> acodec=ac3:abitrate=128:vcodec=mpeg4:vbitrate=1500:mbd=2 -o "$1".avi

This is a longstanding problem.  Transcode's avisync should fix the 
timestamps, though you should probably add harddup to the end of the 
filter chain (this is almost always a good idea).

I'd also stick an autoaspect in the lavc options to ensure that the aspect 
ratio gets encoded in the video stream.  Avisync will strip the vprp 
chunk, which isn't universally respected anyway.



More information about the MEncoder-users mailing list