[MEncoder-users] Extracting row video for x264 encoding
Andrew Berg
bahamutzero8825 at gmail.com
Wed Mar 30 16:42:55 CEST 2011
On 2011.03.30 04:37 AM, Julien Palard wrote:
> 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 ?
That's possible. If your input is an MPEG-TS container, add -demuxer
lavf (lavf is much better with MPEG-TS than the default). Also try
remuxing the input before sending it to MEncoder (the original muxer may
be broken; there are plenty of good muxers out there for the various
containers).
> 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
Those are some very odd frame rates. If those are in fact the correct
constant frame rates, then use them with -fps and -ofps (you can pass
the frame rate as an argument to your script). If your input has a
variable frame rate, you're going to have a lot of trouble getting
MEncoder to process it.
More information about the MEncoder-users
mailing list