Feature #5082
VAAPI support without X11
0%
Description
Cross-compiling libva fails for headless servers as libva-X11 is required. Is there an option around this for headless devices?
History
Updated by Jaroslav Kysela over 6 years ago
- Status changed from New to Rejected
It's not a tvh's issue.
Updated by Harald Nehring about 6 years ago
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.
Updated by saen acro about 6 years ago
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
Updated by Harald Nehring about 6 years ago
I'm not a developer, maybe the Arch user repository maintainer of libva-headless can help (https://aur.archlinux.org/packages/libva-headless/).
Updated by saen acro about 6 years ago
or using patched part of
https://aur.archlinux.org/packages/ffmpeg-headless/
Updated by Harald Nehring about 6 years ago
It looks like all it does is ./configure --prefix=/usr --enable-drm --disable-x11 --disable-glx --disable-wayland (https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libva-headless).
Updated by Harald Nehring about 6 years ago
saen acro wrote:
or using patched part of
https://aur.archlinux.org/packages/ffmpeg-headless/
Where do you see patching going on here?
Updated by th0ma7 ^ about 5 years ago
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