通过ffmpeg更快地将视频转换为webm [英] Convert videos to webm via ffmpeg faster
本文介绍了通过ffmpeg更快地将视频转换为webm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过ffmpeg使用以下参数将视频转换为webm格式:
I am using the following params via ffmpeg to convert videos to webm format:
-c:v libvpx -qmin 0 -qmax 50 -crf 4 -b:v 2M -c:a libvorbis -q:a 10
但是,只需转换5 MB视频就需要很多时间(超过5分钟)。我可以写一些其他参数来使转换速度快吗?
However it takes lot of time (more than 5 minutes) just to convert 5 MB video. Can I write some other params to make the conversion fast?
推荐答案
ffmpeg -i输入-vcodec libvpx -cpu-used -5 -deadline realtime out.webm
-cpu-used
和 -deadline
选项控制libvpx编解码器的速度/质量。有关 libvpx-vp8编码器AVOptions
部分的详细信息,请参阅 ffmpeg -h full
。
The -cpu-used
and -deadline
options control speed/quality for libvpx codec. See ffmpeg -h full
for details in the libvpx-vp8 encoder AVOptions
section.
这篇关于通过ffmpeg更快地将视频转换为webm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文