You are not logged in.

#1 2020-07-05 15:28:25

sinholueiro
Member
Registered: 2015-08-01
Posts: 9

VAAPI without X server

Hi! I have a VM in a ESXi server that is a headless Arch machine. The server has a i5 8400, so I made a direct passthrought of the iGPU to the VM. I also disabled the ESXi default graphics device, so the only graphics card is the passthought one. I want to to use iGPU to transcode with ffmpeg using quicksync, so the first thing to do is getting VVAPI to work. As it's a headless machine, the Arch instalation doesn't have X server installed, so when I run "vainfo", I get the following error.

# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
vainfo: VA-API version: 1.8 (libva 2.7.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
...

The ffmpeg error is the following, but I guess I have to solve vainfo error first:

[AVHWDeviceContext @ 0x55dbf37692c0] Error initializing an MFX session: -3.
Device creation failed: -1313558101.
Failed to set value 'qsv=hw' for option 'init_hw_device': Unknown error occurred
Error parsing global options: Unknown error occurred

Do you know how to solve this? (Or if it is possible)

Offline

#2 2020-07-05 16:17:37

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: VAAPI without X server

mpv can do VAAPI without X (use --gpu-context=drm), so it's possible. vainfo can do it too, you need to use --display drm --device <device>. But I have no experience with ffmpeg, so can't help you there.

Last edited by Gusar (2020-07-05 16:25:21)

Offline

#3 2020-07-06 13:16:54

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,889

Re: VAAPI without X server

https://gist.github.com/Brainiarc7/95c9 … 1bed379219 looks like it should be helpful for configuring ffmpeg + vaapi



As it's a headless machine, the Arch instalation doesn't have X server installed

X can be installed on headless machines if desired but does need some aditional configuration.
https://wiki.archlinux.org/index.php/Xo … figuration

Last edited by Lone_Wolf (2020-07-06 13:17:12)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB