Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert videos to webm via ffmpeg faster

Tags:

ffmpeg

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?

like image 343
Rocky Singh Avatar asked Dec 18 '13 18:12

Rocky Singh


1 Answers

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.

like image 64
George Y. Avatar answered Oct 08 '22 09:10

George Y.