ffmpeg加快视频播放-Windows [英] ffmpeg speed up video - Windows

查看:77
本文介绍了ffmpeg加快视频播放-Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在手册中说:

ffmpeg -i input.mkv -filter:v 'setpts=0.5*PTS' output.mkv

但是当我跑步时:

ffmpeg -i input.mp4 -filter:v 'setpts=0.5*PTS' speedup.mp4

我得到一个错误:

[AVFilterGraph @ 0000000002500600] No such filter: 'setpts=0.5*PTS'
Error opening filters!

不确定这是否意味着根本无法打开过滤器,或者根本就无法使用该过滤器.

Not sure if it means that filter can't be opened at all or simply this filter is not available.

如何正确运行?也许我的发行版不支持该发行版,那么在哪里可以正常使用该发行版呢? Win32/x64二进制文件

How do I run it correctly? Or maybe my release does not support it, then where can I get the release that would work right? Win32/x64 binary

推荐答案

同时使用 setpts atempo 来加快视频和音频的速度:

Use both setpts and atempo to speed up both video and audio:

ffmpeg -i input-video.mp4 -vf "setpts=0.68*PTS" -filter:a "atempo=1.467" output-video.mp4

来自: https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video

当然,您必须对数字进行正确的数学运算. setpts 必须较小,以使视频播放更快,但 atempo 需要较大,以加快音频播放速度.

You'll have to do the right math for the numbers, of course. The setpts needs to be smaller to make the video go faster, but atempo needs to be larger to speed up the audio.

所需的音频值= 1/视频值

这篇关于ffmpeg加快视频播放-Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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