Decoding videos in Firefox with VA-API

For awhile, graphics cards have contained dedicated components for decoding and encoding video formats such as MPEG2, H.264, and H.265. In chip developer jargon, these embedded units are called application-specific integrated circuits (ASICs) [1].

CPUs without ASICs have a hard time decoding videos. However, graphics cards with their specialized circuits can decode video even on low-powered systems like the Raspberry Pi without jerking and with lower power consumption, thus shifting some of the load off the main processor. Lower power consumption means longer battery life and less heat generated, which in turn makes the system quieter.

Interface

On Linux, programs access the graphics chip's acceleration functions via the Video Acceleration API (VA-API) [2]. The vainfo tool (included in the vainfo or libva-utils packages) shows you the algorithms supported by the graphics card. The VLD suffix indicates the decoding capability, while EncSlice denotes the encoding capability.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Video Acceleration with VA-API

    Improve video performance with hardware video-accelerated decoding using the video Acceleration APi.

  • Kodi 21.0 Open-Source Entertainment Hub Released

    After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.

  • Firefox 4 Beta Loves HTML5

    The beta release of Mozilla's new browser adds more HTML5 features including support for WebM.

  • FOSSPicks

    This month Nate is delighted to offer you a smorgasbord of offerings from the Gnome camp, as well as a smattering of cross-platform delectables.

  • Web Performance

    Will the Firefox 57 “Quantum” release help Mozilla regain its former glory? We compare the latest Firefox with the Chrome, Opera, and Vivaldi browsers.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News