gpt4 book ai didi

ffmpeg - 了解ffmpeg re参数

转载 作者:行者123 更新时间:2023-12-03 18:18:44 26 4
gpt4 key购买 nike

我正在阅读 -re ffmpeg 中的选项.
他们提到的是

From the docs

-re (input)

Read input at the native frame rate. Mainly used to simulate a grab device, or live input stream (e.g. when reading from a file). Should not be used with actual grab devices or live input streams (where it can cause packet loss). By default ffmpeg attempts to read the input(s) as fast as possible. This option will slow down the reading of the input(s) to the native frame rate of the input(s). It is useful for real-time output (e.g. live streaming).



我的怀疑基本上是我强调的上述描述的一部分。建议在实时输入流期间不要使用该选项,但最后建议在实时输出中使用它。

考虑输入和输出都在 rtmp 中的情况格式,我应该使用它还是不使用它?

最佳答案

不要使用它。当 ffmpeg 能够以比实时更快的速度处理源时,它对于实时输出很有用。在这种情况下,ffmpeg 可能会以更快的速度发送输出,而接收器可能无法或不想缓冲和排队其输入。

关于ffmpeg - 了解ffmpeg re参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48479141/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com