Start GPU encoding/decoding with VA-API (Video Acceleration API) 1


About

The main motivation for VA-API (Video Acceleration API) is to enable hardware accelerated video decode/encode at various entry-points (VLD, IDCT, Motion Compensation etc.) for the prevailing coding standards today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3). Extending XvMC was considered, but due to its original design for MPEG-2 ?MotionComp only, it made more sense to design an interface from scratch that can fully expose the video decode capabilities in today’s GPUs.

The current video decode/encode interface is window system independent, so that potentially it can be used with graphics sub-systems other than X. In a nutshell it is basically a scheme to pass various types of data buffers from the application to the GPU for decoding or encoding. Feedback on the API is greatly welcomed, as this is intended to be a community collaborative effort.

Download

The latest releases of libva software can be found at: http://www.freedesktop.org/software/vaapi/

Git

libva an implementation of VA-API for Linux, is now available via git from the following location (http://cgit.freedesktop.org/libva/):

The gstreamer-vaapi elements are available at: https://gitorious.org/vaapi/gstreamer-vaapi

[/crayon]

Specification

Latest VA-API decode/encode specification can be found at http://cgit.freedesktop.org/libva/tree/va/va.h,

Post-processing interface can be found at http://cgit.freedesktop.org/libva/tree/va/va_x11.h

Drivers (back-ends) that implement VA-API

  • Broadcom Crystal HD (work-in-progress):
    [/crayon]
  • Intel Embedded Graphics Drivers (IEGD):
    [/crayon]
  • Intel Embedded Media and Graphics Drivers (EMGD):
    [/crayon]
  • Intel GMA500 driver (OEM only):
    [/crayon]
  • Intel integrated G45 graphics chips:
    [/crayon]
  • IMG VXD375/385 and VXE250/285 video engines:
    [/crayon]
  • VDPAU back-end for NVIDIA and VIA chipsets:
    [/crayon]
  • VIA / S3 Graphics Accelerated Linux Driver:
    [/crayon]
  • XvBA / ATI Graphics Backend (for proprietary driver only)
    [/crayon]
    Other back-ends are currently under development.

Decoding Hardware with no backend available

  • NONE FOR NOW

Software using VA-API

  • Clutter toolkit (through clutter-gst, thus GStreamer):
    [/crayon]
  • FFmpeg (upstream SVN tree >= 2010/01/18 / version 0.6.x and onwards):
    [/crayon]
  • Fluendo video codec pack for Intel Atom (GStreamer):
    [/crayon]
  • Gnash flash player:
    [/crayon]
  • GStreamer:
    [/crayon]
  • Lightspark flash player:
    [/crayon]
  • MPlayer/VAAPI:
    [/crayon]
  • MythTV (work-in-progress):
    [/crayon]
  • ?RealPlayer for MID:
    [/crayon]
  • Totem movie player (simply requires GStreamer VA-API plug-ins):
    [/crayon]
  • VideoLAN – VLC media player:
    [/crayon]
  • XBMC:
    [/crayon]
  • Xine:
    [/crayon]

libVA sample code

  • Hardware video decoding acceleration demos:
    [/crayon]
  • Decode sample program:
    [/crayon]
  • Encode sample program:
    [/crayon]
  • Post-processing sample program:
    [/crayon]

Architecture

[[!img Linux_vaAPI.gif]

Contact

Jonathan Bian (jonathan.bian@intel.com); Austin Yuan (shengquan.yuan@intel.com)

From: http://www.freedesktop.org/wiki/Software/vaapi/


Leave a comment

Your email address will not be published. Required fields are marked *

One thought on “Start GPU encoding/decoding with VA-API (Video Acceleration API)

  • Sherlene

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment
    is added I get four e-mails with the same
    comment. Is there any way you can remove people from that service?
    Bless you!