Convert videos to webm via ffmpeg faster

2019-02-04 22:37发布

问题:

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

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?

回答1:

ffmpeg -i input -vcodec libvpx -cpu-used -5 -deadline realtime out.webm

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