Framerate vs r vs Filter fps

后端 未结 1 670
温柔的废话
温柔的废话 2021-02-04 07:12

I\'m trying to better understand FFmpeg framerate.

Example: If I wanted to convert a 30 fps video to 23.976 fps.


1条回答
  •  隐瞒了意图╮
    2021-02-04 07:39

    -framerate is an input per-file option. It is meant for input formats which don't have a framerate or PTS defined, image sequences being an example.

    -r can be either an input or output option. As an input option, it retimes input frames at that rate. As an output option, it will duplicate or drop frames to achieve the given rate (note that it won't duplicate frames if output format accepts variable frame rate). Output r is the 'encoding rate' as well. If it is not specified, it is inherited from the input rate, whether that's manually set or altered or an inherent property of the stream.

    fps filter allows one to alter a stream's framerate while filtering by dropping or duplicating frames to achieve the given rate. It overrides the input stream rate. Its main use is to manipulate a stream before combining it with other streams, or before filtering it further.

    -x265-params fps is a private property of the x265 encoder. Its main purpose is to signal a duration for each frame for the purposes of rate-control. Encoders like x264/5 devote more bits to frames that are shown for longer. It does not actually alter framerate or number of frames or frame duration.

    0 讨论(0)
提交回复
热议问题