Reputation: 15420
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?
Upvotes: 16
Views: 15525
Reputation: 11769
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.
Upvotes: 32