Closed geraldraaf closed 3 years ago
Unable to reproduce this within my Gentoo setup. The similar effect might occur when using Intel's media-driver with unsupported hardware (read: Haswell).
export LIBVA_DRIVER_NAME=i965 # Haswell isn't supported in "iHD"
/path/to/vdr --help
i found the problem, but don't know how to solve it. In my HW setup i normaly use a Docking Station with 2 external monitors attached. If i disconnect the docking station and start vdr with vaapidevice in fullscreen mode i can watch TV and view recordings.
Unable to reproduce the reported bug in a windowed mode either using the current GIT master. I'm having a bit newer kernel (4.19.8) and ffmpeg (4.1) than you, but only one monitor and that might make a difference.
Did some other tests. When i deactivate 2 Monitors with randr everthing works but if there is more than one Monitor activ atta vaapidevice X11 freezes. I also have current GIT master installed and ffmpeg also in version 4.1
So it's definitely a more then 1 Monitor Problem.
yesterday i have tried it again after a System Update, and it works, no more system freeze.
System: Kernel: 5.6.14-gentoo x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: LXDE 0.10.1
Distro: Gentoo Base System release 2.7
Machine: Type: Laptop System: LENOVO product: 20CD000MGE v: ThinkPad S1 Yoga serial: <filter>
Mobo: LENOVO model: 20CD000MGE v: SDK0E50510 Pro serial: <filter> UEFI: LENOVO v: GQET58WW (1.38 ) date: 05/29/2018
CPU: Info: Dual Core model: Intel Core i5-4200U bits: 64 type: MT MCP arch: Haswell rev: 1 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18356
Speed: 2179 MHz min/max: 800/2600 MHz Core speeds (MHz): 1: 1596 2: 1596 3: 1582 4: 1587
Graphics: Device-1: Intel Haswell-ULT Integrated Graphics vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0
Device-2: Realtek Integrated Camera type: USB driver: uvcvideo bus ID: 2-6:8
Display: x11 server: X.Org 1.20.10 driver: modesetting resolution: 1: 1920x1200~60Hz 2: 1920x1200~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) v: 4.5 Mesa 20.3.4 direct render: Yes
Audio: Device-1: Intel Haswell-ULT HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:03.0
Device-2: Intel 8 Series HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1b.0
Device-3: Lenovo ThinkPad OneLink Pro Dock Audio type: USB driver: hid-generic,snd-usb-audio,usbhid
bus ID: 2-3.1.4:7
Sound Server: ALSA v: k5.6.14-gentoo
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
ffmpeg version 4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
10.2.0
220 <filter> SVDRP VideoDiskRecorder 2.4.6; Fri Mar 19 10:06:03 2021; UTF-8
900-
900-
900-
900 Command: vaapidevice -a default -d :0.0 -D -w alsa-driver-broken
221 <filter> closing connection
After updating my Gentoo system vaapidevice don't work as expected. I start my Notebook and vdr is started with vaapidevice in detached.mode. If i attach (svdrpsend plug vaapidevice atta) a window open with black surface is opened and i can hear audio.
But i can't switch to any other open programm nor can i open the OSD. If i detach vaapidevice audio is gone but the black screen is still there. I also stop vdr but the black screen remains open and i have to restart X.
It has something todo with the driver i use with X it's the modesetting driver if i change X to use the deprecated intel driver from xf86-video-intel everything works as expected.
VAAPIDEVICE SYSTEM INFORMATION REPORT
inxi
vainfo
ffmpeg
gcc
svdrpsend
INCLUDE THIS REPORT INTO YOUR GITHUB ISSUE