For Ubuntu machine with NVIDIA graphics card, here’s how to implement hardware acceleration for video playback in Firefox web browser.
Firefox so far only supports VA-API for GPU decoding to offload CPU and save power. Both Intel and AMD GPUs support VA-API. However, NVIDIA so far supports the api only through the open-source Nouveau driver.
If you have only NVIDIA GPU running with proprietary driver, then hardware video acceleration does not work out-of-the-box for Firefox.
For choice, there are libvdpau-va-gl1 driver (h.264 only) or libva-vdpau-driver, but both seems no longer updated. The best choice so far is the free open-source nvidia vaapi driver. Continue Reading…
This tutorial is going to show you how to enable hardware acceleration on Intel graphics cards using VDPAU driver.
VDPAU is an open-source library and API allows to video programs to offload portions of the video decoding process and video post-processing to the GPU video-hardware. If VDPAU available, CPU usage can be significantly lower.
Applications that uses VDPAU:
Avidemux as of version 2.6
Boxee
GStreamer
MPlayer
MythTV
XBMC Media Center
XBMC Live
Xine
MLT
Adobe Flash 10.2 Stage Video and later versions (32-bit only presently)
VLC media player 2.1
VDPAU is not available on Intel graphics cards. Fortunately, there’s an open-source project called libvdpau-va-gl, which is a VDPAU driver that uses OpenGL under the hood to accelerate drawing and scaling, and VA-API (if available) to accelerate video decoding. You can use it on some Intel chips.
Install libvdpau-va-gl via PPA on Ubuntu
Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below commands one by one (Supports Ubuntu 13.10, 13.04, 12.10, 12.04).