GNOME Bugzilla – Bug 758195
vpxdec: Use more threads by default
Last modified: 2015-11-17 17:38:27 UTC
We now have a thread option vpxdec though we are nearly never using it. I notice this when comparing SW decoding capabilities of Chromium against GStreamer. This is a quick attemps, but I propose adding adding an automatic mode, so we use as many threads as there is CPUs on the platform.
Created attachment 315708 [details] [review] vpxsdec: Use threads on multi-core systems This adds an automatic mode to the threads property of vpxdec in order to use as many threads as there is CPU on the platform. This bring back GStreamer VPX decoding performance closer to what is achieve by other players, including Chromium.
Seems like a good idea. I'd just say "(0 = automatic)" in the property description, then we are free to tweak the details later if ever needed. We might also want to compare how the libav vp8/vp9 decoder fare performance-wise. They're currently on marginal rank, but perhaps their rank should be increased.
Agreeds about the documentation. You seem right about the performance. I did a quick experiment, nothing very scientific. I decoded the same 720p VP9 stream with libvpx and ffmpeg, and got: Libvpx: 0:00:44.166014779 FFMPEG: 0:00:25.987353323
Ok, forgot to look at the result, the FFMPEG output is not visually correct.
Created attachment 315722 [details] [review] vpxsdec: Use threads on multi-core systems This adds an automatic mode to the threads property of vpxdec in order to use as many threads as there is CPU on the platform. This bring back GStreamer VPX decoding performance closer to what is achieve by other players, including Chromium.
Created attachment 315723 [details] [review] vpxdec: Use threads on multi-core systems This adds an automatic mode to the threads property of vpxdec in order to use as many threads as there is CPU on the platform. This brings back GStreamer VPX decoding performance closer to what is achieved by other players, including Chromium.
Wrong push, commenting manually ;-P commit b848c1b6ffd1e508228820a013f94fb445e4777f Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> Date: Mon Nov 16 16:23:43 2015 -0500 vpxdec: Use threads on multi-core systems This adds an automatic mode to the threads property of vpxdec in order to use as many threads as there is CPU on the platform. This brings back GStreamer VPX decoding performance closer to what is achieved by other players, including Chromium. https://bugzilla.gnome.org/show_bug.cgi?id=758195