Feature #5082
closed
VAAPI support without X11
Added by Martin Walter almost 7 years ago.
Updated over 5 years ago.
Description
Cross-compiling libva fails for headless servers as libva-X11 is required. Is there an option around this for headless devices?
- Status changed from New to Rejected
It is - tvheadend requires libva-x11 to enable VAAPI, which in turn pulls in most of X. At least on Arch we got libva-headless, which works for ffmpeg, vainfo etc.
Harald Nehring wrote:
It is - tvheadend requires libva-x11 to enable VAAPI, which in turn pulls in most of X. At least on Arch we got libva-headless, which works for ffmpeg, vainfo etc.
can you build working libva-headless in Ubuntu?
Mostly this is problem of "intel learn to programming" no more QSV
It actually requires both libva-x11
AND libva-drm
. I may be wrong bu I believe it should rather be OR like the following patched configure
:
--- configure-ORIG 2019-10-06 14:33:17.000000000 -0400
+++ configure 2019-10-13 09:20:09.081287605 -0400
@@ -646,10 +646,12 @@ fi
if enabled_or_auto vaapi; then
if enabled libav; then
if check_pkg libva ">=0.38.0"; then
- check_pkg libva-x11 ">=0.38.0" || die "libva-x11 not found"
- check_pkg libva-drm ">=0.38.0" || die "libva-drm not found"
- enable vaapi
- enable hwaccels
+ if check_pkg libva-x11 ">=0.38.0" || check_pkg libva-drm ">=0.38.0"; then
+ enable vaapi
+ enable hwaccels
+ else
+ die "libva-x11 and libva-drm not found"
+ fi
elif enabled vaapi; then
die "vaapi (Video Acceleration (VA) API for Linux) not found"
fi
Also available in: Atom
PDF