So, I tried.
1st, made sure all is installed:
=# dpkg -l | grep -iE 'libv(a1|dpau)'
ii libva1:amd64 1.7.3-2 amd64 Video Acceleration (VA) API for Linux -- runtime
ii libvdpau-va-gl1:amd64 0.4.2-1 amd64 VDPAU driver with OpenGL/VAAPI backend
ii libvdpau1:amd64 1.1.1-6 amd64 Video Decode and Presentation API for Unix (libraries)
Then I started VLC and tried setting hardware decoding to:
- vaapi x11
- vaapi drm
- vdpau
In all of these cases both cpu cores were 100% pegged, and there was virtually no playback - still frame, and that's all.
File I was testing on, as tested with ffprobe:
=$ ffprobe -hide_banner x.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'x.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2014-06-24T19:04:04.000000Z
Duration: 02:03:15.85, start: 0.000000, bitrate: 2143 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/unknown), 1920x1040, 2045 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2014-06-24T19:04:04.000000Z
handler_name : video.264#trackID=1:fps=23.976 - Imported with GPAC 0.5.0-rev4065
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
Metadata:
creation_time : 2014-06-24T19:04:14.000000Z
handler_name : GPAC ISO Audio Handler
All the problems could stem from this:
=$ vainfo
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit
But I'm not sure how to handle this. I tried looking online for help, created (didn't have before) xorg.conf in /etc/X11, and added there "AccelMethod" glamor, but then X wouldn't even start. Any hints? Suggestions?