[MEncoder-users] Audio Video Sync after stream copy

Grozdan microchip at telenet.be
Fri Jul 10 21:52:20 CEST 2009


2009/7/10  <karl-heinz-1950 at web.de>:
> Hi,
>
> I get MPEG-TS files from my sat receiver. To have suitable time marks for -ss and -endpos I run
>
> mencoder -of mpeg -mpegopts format=dvd:tsaf -oac copy -ovc copy  -o out.mpg input.ts
>
> Now I use gmplayer to lookup start and endtime and run
>
> mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=2400:keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 -delay 0.5 -ss 00:00:07 -endpos 01:27:31 -o 2400out.mpg out.mpg
>
> This file works perfectly fine (as well as the out.mpg), no audio video async issue (due to the delay parameter used)  Sometimes it happens that I have cut too little and need to cut one more second at the start or end, so I do
>
> mencoder -of mpeg -mpegopts format=dvd:tsaf -oac copy -ovc copy -endpos 01:27:28 -o out-finale.mpg 2400out.mpg
>
> This file out-final.mpg is now out of sync and regardless how I use -delay I don't get into sync anymore. Is that explainable or is that a bug?
> Thanks!

Try setting both -ofps and -fps when copying audio/video in your second command

>
>
>
>
> ________________________________________________________________
> Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
> für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
>


More information about the MEncoder-users mailing list