| Has anyone had experience optimizing for webm? I really want to support this codec, but it's insanely slow in my experience. I'm finding that it's generally around 4x slower than mp4, but I've also had cases where it's taken up to a minute to encode a file where h264 take under 10 seconds. My use case is to have the best performance/quality ratio for a 30 second video under 3mb. These are my ffmpeg flags: h264: "-vcodec libx264 -crf 28" webm: "-c:v libvpx -qmin 0 -qmax 50 -crf 5 -b:v 1M -c:a libvorbis -aq 4" The video I tested with these setting last night took 5 seconds on h264 and 35 seconds for webm, both outputting to a 2.6mb file. System Specs:
- Intel Core i7 4770 Quad-Core 3.4GHz
- 16gb 1866mhz memory
- ssd drive
- 64bit ubuntu 12.04 lts What further frustrates this is that I can use OpenCL to improve encoding times even more, but only with h264 in ffmpeg (as far as I know). |
Encoding WebM videos seems really slow. What are you doing about that?
Today, encoding VP8 in “best quality” mode is the slowest configuration. Using “good quality” mode with the speed parameter set between 0 and 5 will provide a range of speeds.