Project

General

Profile

Feature #5082

VAAPI support without X11

Added by Martin Walter over 6 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Normal
Category:
Transcoding
Target version:
-
Start date:
2018-04-21
Due date:
% Done:

0%

Estimated time:

Description

Cross-compiling libva fails for headless servers as libva-X11 is required. Is there an option around this for headless devices?

History

#1

Updated by Jaroslav Kysela over 6 years ago

  • Status changed from New to Rejected

It's not a tvh's issue.

#2

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.

#3

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

#4

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/).

#6

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).

#7

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?

#8

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

Also available in: Atom PDF