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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With