karoluch
karoluch

Reputation: 703

ffmpeg - very slow conversion

I create web app in JavaEE which displays many video formats. I use ffmpeg solution to convert videos to formats which is supported natively by main browsers.

According to : http://www.jwplayer.com/html5/formats/ I convert to WEBM container (VP8/VORBIS or VP9/OPUS). But conversion is very slow, bit rate equals to ~ 200kbits/s. To convert I execute following command

ffmpeg -i file.mov -c:v libvpx -preset ultrafast result.webm How to speed up conversion to natively supported formats by main browsers?

Upvotes: 11

Views: 53799

Answers (1)

Ronald S. Bultje
Ronald S. Bultje

Reputation: 11174

Use the -speed number (e.g. 8), not the -preset setting (e.g. ultrafast). The latter is for x264/x265 encoding.

A Higher number means faster encoding, so ultrafast would map to 8 or so. Very slow/placebo maps to 0, and values in between map accordingly. 1-2 still gives reasonably good results and settings like 4-5 tend to be relatively fast but not entirely crap quality.

Upvotes: 16

Related Questions