如何更改关键帧间隔? [英] How to change keyframe interval?

查看:139
本文介绍了如何更改关键帧间隔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用FFmpeg将关键帧间隔设置为5秒?

How to set the keyframe interval to 5 seconds using FFmpeg?

推荐答案

您需要重新编码.将x264的keyint参数设置为5 * fps,并禁用Scenecut.例如,如果您的fps为24:

You'll need to reencode. Set x264's keyint parameter to 5*fps and disable scenecut. If your fps is 24 for example :

ffmpeg -i <input> -vcodec libx264 -x264-params keyint=120:scenecut=0 -acodec copy out.mp4

这显然不是最佳的质量,但可以满足您的需求.

This is obviously not optimal for quality but it'll match your demand.

根据叹为观止的建议,进行了编辑,将 no-scenecut 更改为 scenecut = 0 .

Edited to change no-scenecut to scenecut=0, as per sigh-boy suggestion.

这篇关于如何更改关键帧间隔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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