Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vaapi cause to show strange artifacts on video #14057

Closed
qarmin opened this issue May 4, 2024 · 2 comments
Closed

Vaapi cause to show strange artifacts on video #14057

qarmin opened this issue May 4, 2024 · 2 comments

Comments

@qarmin
Copy link

qarmin commented May 4, 2024

Important Information

Provide following Information:

  • mpv from official ubuntu package -
mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
libplacebo version: v6.338.2
FFmpeg version: 6.1.1-3ubuntu5
FFmpeg library versions:
   libavutil       58.29.100
   libavcodec      60.31.102
   libavformat     60.16.100
   libswscale      7.5.100
   libavfilter     9.12.100
   libswresample   4.12.100
System:
  Host: rafal-komputer Kernel: 6.8.0-31-generic arch: x86_64 bits: 64
  Desktop: GNOME v: 46.0 Distro: Ubuntu 24.04 LTS (Noble Numbat)
CPU:
  Info: quad core model: Intel Core i7-4770 bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 798 min/max: 800/3900 cores: 1: 798 2: 798 3: 798 4: 800
    5: 798 6: 798 7: 800 8: 798
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X:
    loaded: amdgpu unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi
    gpu: amdgpu resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: radeonsi,swrast platforms: x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.5-1ubuntu1
    renderer: AMD Radeon RX 570 Series (radeonsi polaris10 LLVM 17.0.6 DRM 3.57
    6.8.0-31-generic)
  API: Vulkan v: 1.3.275 drivers: N/A surfaces: xcb,xlib

Some videos, with vaapi(which is probably enabled by default) have strange stripes inside, which are not available with renderer, that is enabled with --no-config option

simplescreenrecorder-2024-05-04_09.56.30.mp4

Problematic video(directly from phone)

VID_20240504_095442.mp4.zip

Vlc works fine with this info

VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[00005bcd13dbd5e0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
libva info: va_openDriver() returns 0
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
[00007f1550c0f3f0] avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding
[h264 @ 0x7f1550ce99c0] Failed setup for format vdpau: hwaccel initialisation returned error.
[00007f1550c0f3f0] avcodec decoder error: existing hardware acceleration cannot be reused
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
libva info: va_openDriver() returns 0
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
@CounterPillow
Copy link
Contributor

CounterPillow commented May 4, 2024

which is probably enabled by default

Only because Ubuntu overrides upstream mpv's decision and sets hwdec=vaapi in /etc/mpv/mpv.conf.

Report this to them, it's their fault.

Also, this looks like just the NV12 rotation bug again, which was already fixed, but you're using an out-of-date version of mpv (again, because of Ubuntu decisions).

@kasper93
Copy link
Contributor

kasper93 commented May 4, 2024

Duplicate of #8223
Fixed by 27fb4c4

@kasper93 kasper93 closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants