VDPAU backed VAAPI decodes H.264 video incorrectly
System information
Output of inxi -GSC -xx
System:
Host: cslab Kernel: 5.4.30-1-lts x86_64 bits: 64 compiler: gcc v: 9.3.0
Desktop: Xfce 4.14.2 tk: Gtk 3.24.13 wm: xfwm4 dm: LightDM
Distro: Arch Linux
CPU:
Topology: Dual Core model: Intel Core2 Duo P7550 bits: 64 type: MCP
arch: Penryn rev: A L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 9020
Speed: 796 MHz min/max: 798/2261 MHz Core speeds (MHz): 1: 796 2: 796
Graphics:
Device-1: NVIDIA C79 [GeForce 9400M] vendor: Apple driver: nouveau
v: kernel bus ID: 02:00.0 chip ID: 10de:0863
Display: x11 server: X.Org 1.20.8 driver: modesetting
alternate: fbdev,nouveau,nv,vesa resolution: 1280x800~61Hz
OpenGL: renderer: NVAC v: 3.3 Mesa 20.0.4 direct render: Yes
Describe the issue
- Install various Mesa packages according to https://wiki.archlinux.org/index.php/Hardware_video_acceleration
- Install mpv
-
mpv --hwdec=vaapi somefile.mp4
and the file would be decoded incorrectly
Replace with vaapi
with vdpau
or no
, the file would be decoded correctly.
Some test files can be found: http://bbb3d.renderfarming.net/download.html
Regression
No idea.
Log files as attachment
Screenshots/video files (if applicable)
This was one frame in Big Buck Bunny, Sunflower version.
Any extra information would be greatly appreciated
Regardless of vaapi
or vdpau
the system has a good chance to hang after accelerated video playback.
Firmware installed from https://aur.archlinux.org/packages/nouveau-fw/