ffmpeg从指定的时间段转换视频缓慢 [英] ffmpeg convert video from specified time period slowly

查看:198
本文介绍了ffmpeg从指定的时间段转换视频缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如:
如果我转换这样的视频:

For example: If I convert video like this:

ffmpeg -i demo.avi -ss 00:00:05 -t 00:00:15 test.flv

它的快速

ffmpeg -i demo.avi -ss 00:45:05 -t 00:00:15 test.flv

我必须等待很久才能实际工作。

I have to wait a long time before it actually works.

任何方式解决方案

推荐答案

-ss 的行为取决于它被放置在命令中:作为输入或输出选项。如ffmpeg文档所述:

The behavior of -ss depends upon where it is placed in the command: as an input or output option. As the ffmpeg documentation states:

-ss position (input/output)
When used as an input option (before "-i"), seeks in this input file to position.
When used as an output option (before an outputfilename), decodes but discards
input until the timestamps reach position. This is slower, but more accurate.
position may be either in seconds or in "hh:mm:ss[.xxx]" form.

您还可以使用 -ss 作为输入选项和可以提供速度和(可能增加的)精度的输出选项。请参阅 [FFmpeg-user]在开始时间偏移量(-ss)时减少查找时间是很大的,并且有关 Enhancing -ss选项的更多示例和详细信息的评论。

You can also use -ss as an input option and an output option which may the provide both speed and (possibly increased) accuracy. See [FFmpeg-user] Reducing seek time when start time offset (-ss) is large and comments on Enhancing -ss option for more examples and details.

这篇关于ffmpeg从指定的时间段转换视频缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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