| new now know how ( @ 2009-10-16 11:49:00 |
| 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/~gbeauc
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/~gbeauc
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/p
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.