Ffmpeg is very slow conversion
I am creating a web application in JavaEE that displays a variety of video formats. I am using ffmpeg solution to convert videos to formats natively supported by major browsers.
According to: http://www.jwplayer.com/html5/formats/ I am converting to WEBM container (VP8 / VORBIS or VP9 / OPUS). But the conversion is very slow, the bit rate is ~ 200 kbps. To convert, I run the following command
ffmpeg -i file.mov -c:v libvpx -preset ultrafast result.webm
How to speed up conversion to supported formats by major browsers?
source to share
Use a parameter -speed
(for example 8) rather than -preset
(for example ultrafast
). Later for x264/x265
coding.
A Higher number means faster encoding, so it ultrafast
will display up to 8 or so. Very slow/placebo
displayed in 0, and values ββbetween cards respectively. 1-2 still gives reasonably good results, and settings like 4-5 are relatively fast , but not crap quality.
source to share