3 VA-API support to GStreamer
5 Copyright (C) 2010-2011 Splitted-Desktop Systems
6 Copyright (C) 2011-2014 Intel Corporation
7 Copyright (C) 2011 Collabora Ltd.
13 gstreamer-vaapi helper libraries and plugin elements are available
14 under the terms of the GNU Lesser General Public License v2.1+
20 gstreamer-vaapi consists in a collection of VA-API based plugins for
21 GStreamer and helper libraries.
23 * `vaapidecode' is used to decode JPEG, MPEG-2, MPEG-4:2, H.264 AVC,
24 H.264 MVC, VP8, VC-1, WMV3, HEVC videos to VA surfaces, depending
25 on the underlying hardware capabilities. This plugin is also able
26 to implicitly download the decoded surface to raw YUV buffers.
28 * `vaapiencode_<CODEC>' is used to encode into MPEG-2, H.264 AVC,
29 H.264 MVC, JPEG, VP8, HEVC videos, depending on the actual value
30 of <CODEC> (mpeg2, h264, etc.). By default, raw format bitstreams
31 are generated, so the result may be piped to a muxer.
32 e.g. qtmux for MP4 containers.
34 * `vaapipostproc' is used to filter VA surfaces, for e.g. scaling,
35 deinterlacing (bob, motion-adaptive, motion-compensated), noise
36 reduction or sharpening. This plugin is also used to upload raw
37 YUV pixels into VA surfaces.
39 * `vaapisink' is used to render VA surfaces to an X11 or Wayland
40 display. This plugin also features a "headless" mode (DRM) more
41 suited to remote transcode scenarios, with faster throughput.
47 * VA-API support from 0.29 to 0.38
48 * JPEG, MPEG-2, MPEG-4, H.264 AVC, H.264 MVC, VP8, VC-1 and HEVC ad-hoc decoders
49 * MPEG-2, H.264 AVC,H.264 MVC, JPEG, VP8 and HEVC ad-hoc encoders
50 * OpenGL rendering through VA/GLX or GLX texture-from-pixmap + FBO
51 * Support for EGL backend
52 * Support for the Wayland display server
53 * Support for headless decode pipelines with VA/DRM
54 * Support for major HW video decoding solutions on Linux (AMD, Intel, NVIDIA)
55 * Support for HW video encoding on Intel HD Graphics hardware
56 * Support for VA Video Processing APIs (VA/VPP)
57 - Scaling and color conversion
58 - Image enhancement filters: Sharpening, Noise Reductio, Color Balance,
60 - Advanced deinterlacing: Motion-Adaptive, Motion-Compensated
68 * GStreamer 1.2.x (up to including GStreamer 1.6):
69 libglib2.0-dev (>= 2.32)
70 libgstreamer1.0-dev (>= 1.2.0)
71 libgstreamer-plugins-base1.0-dev (>= 1.2.0)
72 libgstreamer-plugins-bad1.0-dev (>= 1.2.0)
75 DRM: libva-dev (>= 1.1.0), libdrm-dev, libudev-dev
76 X11: libva-dev (>= 1.0.1)
77 GLX: libva-dev (>= 1.0.3)
78 Wayland: libva-dev (>= 1.1.0), libwayland-dev (>= 1.0.2)
82 * AMD platforms with UVD2 (XvBA supported)
83 * Intel Eaglelake (G45)
84 * Intel Ironlake, Sandybridge, Ivybridge, Haswell and Broadwell (HD Graphics)
85 * Intel BayTrail, Braswell
86 * Intel Poulsbo (US15W)
87 * Intel Medfield or Cedar Trail
88 * NVIDIA platforms with PureVideo (VDPAU supported)
94 VA elements are automatically plugged into GStreamer pipelines. So,
95 using playbin should work as is.
96 However, here are a few alternate pipelines that could be manually
99 * Play an H.264 video with an MP4 container in fullscreen mode
100 $ gst-launch-1.0 -v filesrc location=/path/to/video.mp4 ! \
101 qtdemux ! vaapidecode ! vaapisink fullscreen=true
103 * Play a raw MPEG-2 interlaced stream
104 $ gst-launch-1.0 -v filesrc location=/path/to/mpeg2.bits ! \
105 mpegvideoparse ! vaapidecode ! vaapipostproc ! vaapisink
107 * Convert from one pixel format to another, while also downscaling
108 $ gst-launch-1.0 -v filesrc location=/path/to/raw_video.yuv ! \
109 videoparse format=yuy2 width=1280 height=720 ! \
110 vaapipostproc format=nv12 height=480 ! vaapisink
112 * Encode a 1080p stream in raw I420 format into H.264
113 $ gst-launch-1.0 -v filesrc location=/path/to/raw_video.yuv ! \
114 videoparse format=i420 width=1920 height=1080 framerate=30/1 ! \
115 vaapiencode_h264 rate-control=cbr tune=high-compression ! \
116 qtmux ! filesink location=/path/to/encoded_video.mp4
122 gstreamer-vaapi is Open Source software, so updates to this
123 framework are really easy to get.
125 Stable source code releases can be found at:
126 <http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/>
128 Git repository for work-in-progress changes is available at:
129 <https://github.com/01org/gstreamer-vaapi>
135 Bugs can be reported in the GNOME Bugzilla system at:
136 <https://bugzilla.gnome.org/enter_bug.cgi?product=gstreamer-vaapi>
138 From the main page, new bugs can be reported through New -> Other ->
139 gstreamer-vaapi product.