new now know how ([info]strangestone) wrote,
@ 2009-10-16 11:49:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:videolan

Using VDPAU via VAAPI in VLC
This post describes the way to enable and utilize vaapi support in VLC to use with vdpau.

1. Get http://www.splitted-desktop.com/~gbeauchesne/libva/libva-latest.tar.gz
2. Build libva-latest with patches applied from debian/patches/ (for i in debian/patches/*; patch -p1 < $i;)
3. Get http://www.splitted-desktop.com/~gbeauchesne/vdpau-video/vdpau-video-latest.tar.gz
4. Build vdpau-video-latest against libva from 1-2.
5. Check if vainfo output looks something like this:

thresh@snowwhite ~ $ /home/thresh/sandbox/bin/vainfo
libva: libva version 0.31.0-sds3
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /home/thresh/sandbox/lib/va/nvidia_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.31
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA API - 0.5.2
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD

6. Patch ffmpeg with http://git.altlinux.org/people/thresh/packages/ffmpeg.git?p=ffmpeg.git;a=commit;h=edccd9dc979e04f0d3446074a413c524aca6984b .
7. Build ffmpeg against libva from 1-2. Install libavcodec/vaapi.h to the place where your ffmpeg is installed (e.g. to /usr/local/include/libavcodec/ if you installed ffmpeg in that place)
8. Get latest VLC from git master.
9. Configure VLC with --enable-libva and build it.
10. Test vlc with some h264 file: amongst other things, it should output something similar to:
[0xb22007ec] avcodec decoder: Using VA API version 0.29 for hardware decoding.

11. ...
12. PROFIT.



(1 comment) - (Post a new comment)

stuck on step #7.
(Anonymous)
2009-11-19 08:46 am UTC (link)
Hi,
follow your note. I stuck on step #7. on step #7.
I get h264_vaapi in Enabled hwaccels as:
Enabled hwaccels:
h263_vaapi mpeg2_vaapi vc1_vaapi
h264_vaapi mpeg4_vaapi wmv3_vaapi

but I dont see h264_vaapi in Enabled decoders. Any idea?

(Reply to this)


(1 comment) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…