Rocky Singh
Rocky Singh

Reputation: 15420

Convert videos to webm via ffmpeg faster

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

Answers (1)

George Y.
George Y.

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

Related Questions