帧率vs r vs过滤器fps [英] Framerate vs r vs Filter fps

查看:159
本文介绍了帧率vs r vs过滤器fps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图更好地理解FFmpeg帧率.

I'm trying to better understand FFmpeg framerate.

示例:如果我想将30 fps视频转换为23.976 fps.

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

选项
-framerate 24000/1001

选项
-r 24000/1001

过滤器
-vf "fps=24000/1001"

x265参数
-x265-params "fps=24000/1001"

x265 params
-x265-params "fps=24000/1001"

-framerate是图像序列fps(输入视频fps?)

-framerate is image sequence fps (input video fps?)

-vf "fps="正在编码fps

-r输出fps

但是我不知道这是否正确,或者它是否会根据您将它们放置在选项中的顺序而改变.

However I don't know if that is correct, or if it changes depending on what order you place them in the options.

  1. -x265-params "fps="是否需要使用其自己的fps参数?它可以不使用默认选项吗?

  1. -x265-params "fps=" Is it required use it's own fps param? Can it not use default options?

应该合并多个选项,过滤器和参数,还是只使用一个?

Should multiple Options, Filters ,and Params be combined, or should you only use one?

输入/输出帧率

https://ffmpeg.org/ffmpeg.html#toc-Video-Options

-r[:stream_specifier] fps (input/output,per-stream)

If in doubt use -framerate instead of the input option -r.

-r是输入还是输出?如何在-i之前或之后放置内容?

Is -r input or output? How do you specify, by putting before or after the -i?

推荐答案

-framerate是每个文件的输入选项.它用于没有定义帧速率或PTS的输入格式,例如图像序列.

-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可以是输入或输出选项.作为输入选项,它将以该速率重新定时输入帧.作为输出选项,它将复制或丢弃帧以达到给定的速率(请注意,如果输出格式接受可变帧速率,则不会复制帧).输出r也是编码率".如果未指定,则它是从输入速率继承的,无论是手动设置还是更改,还是流的固有属性.

-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过滤器允许您通过删除或复制帧以达到给定速率来更改流的帧速率,同时进行过滤.它会覆盖输入的流速率.它的主要用途是在将流与其他流合并或进一步过滤之前对其进行操作.

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是x265编码器的私有属性.其主要目的是为速率控制的目的发信号通知每个帧的持续时间.像x264/5这样的编码器将更多的位分配给显示时间更长的帧.它实际上并不会改变帧速率,帧数或帧持续时间.

-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.

这篇关于帧率vs r vs过滤器fps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆