[MEncoder-users] Extracting row video for x264 encoding

Julien Palard mencoder at mandark.fr
Wed Mar 30 11:37:16 CEST 2011


Hi,

On Wed, Mar 30, 2011 at 11:15 AM, Grozdan <neutrino8 at gmail.com> wrote:
> add to x264encopts the option force_cfr and also add the correct fps
> with -fps and -ofps, if needed

I just tried as you said : mencoder $INPUT -oac mp3lame -vf
dsize=650:366:0,scale=0:0,expand=650:366,dsize=1.5,format=i420 -ofps
25 -ovc x264 -x264encopts
profile=baseline:no-cabac:me=tesa:vbv-bufsize=512:vbv-maxrate=512:subme=10:partitions=all:level=3:no-fast-pskip:force_cfr
-o $OUTPUT

But the video plays 2x too fast (plays in 7 seconds, original lenghts 13s)
Some tests i made give me a video of 16s, the sound is good but the
video a little bit too slow ...

What do you mean by "the correct fps" ? As i have a range of very
different video as input, i don't have a constant  FPS at input... in
this case, does mencoder read the fps of the container which can be
wrong leading to this kind of problem ?

Typically ffmpeg -i $INPUT outputs some strange bits :
    Seems stream 0 codec frame rate differs from container frame rate:
59.83 (29917/500) -> 59.75 (239/4)
    Stream #0.0(und): Video: h264, yuv420p, 640x360 [PAR 1:1 DAR
16:9], 646 kb/s, 29.92 fps, 59.75 tbr, 1k tbn, 59.83 tbc

Codec frame rate and Container frame rate at 59.83 and 59.75 and video
stream frame rate at 29.92fps, can this lead to my problem ?


More information about the MEncoder-users mailing list