[MEncoder-users] from h264+AAC (mp4) to Xvid+AAC (avi)

Stefano Campitelli campo85 at gmail.com
Fri Dec 19 00:13:12 CET 2008


Il Thursday 18 December 2008 21:21:49 Charles philip Chan ha scritto:
> Stefano Campitelli <campo85 at gmail.com> writes:
> > but it doesn't work because the framerate of input.mp4 is
> > variable. The speed of audio stream during the play is faster than
> > video. Does anyone know what i can to do? Thanks a lot for every reply
> > and sorry for my bad english.
>
> You should add "-ofps <framerate>". For example, "-ofps 30000/1001" for
> 29.97 and "-ofps 24000/1001" for 23.976.
>
> Charles

I've tryed both but it doesn't work. I've also tryed :

mencoder -oac copy -ovc lavc -ofps 24000/1001 -MC 0 input.mp4 -o 
prova.avi -noskip

(I use lavc because it's faster then xvid). The MC and  noskip options work 
well but after the opening sequence the A/V sync is lost. I found this link 
http://avisynth.org/mediawiki/VFR#How_to_recognize_vfr_content_.28mkv.2Fmp4.29
and here it talks about a timecode file for the right encoding of vfr video.



More information about the MEncoder-users mailing list