You are not logged in.

#1 2025-01-19 11:50:26

jebez
Member
Registered: 2025-01-15
Posts: 49

[SOLVED]A .webm file works on mpv & Dragon Player but not on VLC

My config: https://bbs.archlinux.org/viewtopic.php?id=302717.

Whatever Wayland or X11, e.g. https://www.youtube.com/watch?v=oqZZ2hYD9dQ downloaded via yt-dlp (giving a .webm file) works on mpv & Dragon Player but not on VLC: sound but black screen.
But it works on Debian live stable KDE Wayland https://forum.videolan.org/viewtopic.ph … 24#p547891.

[a@archlinux ~]$ vlc '/run/media/a/b06fb07d-9648-4c03-b276-995948f2751a/videos/North Shore Stunts in 4K 60 FPS [oqZZ2hYD9dQ].webm'
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
[000056f8b13a9150] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000076a1a0005ef0] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
[000076a1a0005ef0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
Xlib:  extension "DRI2" missing on display ":1".
libva error: vaGetDriverNames() failed with operation failed
[000076a1a0005ef0] glconv_vaapi_drm gl error: vaInitialize: operation failed
[000076a19cc0e6b0] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  565.77  Wed Nov 27 22:50:58 UTC 2024 for hardware decoding
[000076a19cc0e6b0] main decoder error: buffer deadlock prevented

Last edited by jebez (2025-01-19 14:41:52)

Offline

#2 2025-01-19 13:19:50

manyroads
Member
From: in MAGA's dystopia
Registered: 2019-12-09
Posts: 18
Website

Re: [SOLVED]A .webm file works on mpv & Dragon Player but not on VLC

FWIW Have you cross-posted this on KDE and VLC Support Forums?  If not, you should.


Pax vobiscum,
Mark Rabideau - http://many-roads.com
spectrwm, i3, bspwm, dwm  ~ Reg. Linux User #449130
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken

Offline

#3 2025-01-19 13:52:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,841

Re: [SOLVED]A .webm file works on mpv & Dragon Player but not on VLC

No they should not as this has no relevance to either KDE or VLC since this is an issue on their system.

Since VAAPI can't initialize, the quick fix would be to just disable VAAPI/hardware decoding in VLC's  settings (both mpv and dragon player will not use hwdec by default, pretty much because issues like these can happen at very little gain assuming you're not going for a very minimal setup that has insufficient CPU capabilities). If you actually want to enable HW decoding, what of https://wiki.archlinux.org/title/Hardwa … celeration have you read and configured? FWIW It's trying to use VDPAU in the end there, but I'm fairly certain VDPAU is basically dead and especially so in a Wayland context

Last edited by V1del (2025-01-19 14:13:37)

Offline

#4 2025-01-19 14:16:46

jebez
Member
Registered: 2025-01-15
Posts: 49

Re: [SOLVED]A .webm file works on mpv & Dragon Player but not on VLC

VLC: Hardware-accelerated decoding: Automatic (default) & VDPAU video decoder doesn't work, the rest yes: VA-API video decoder, VA-API video decoder via DRM & Disable, what is the best to select?

So the issue seems effectively VDPAU.

What is your config V1del? Hardware-accelerated decoding: Automatic works for you?

Last edited by jebez (2025-01-19 14:17:42)

Offline

#5 2025-01-19 14:25:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,841

Re: [SOLVED]A .webm file works on mpv & Dragon Player but not on VLC

Best is relative, if VAAPI explictly works then it means a lot of the work can be offloaded to the GPU, that can sometimes lead to visual/color glitches if the hw decoder doesn't work correctly. Disable will in most cases be the most correct representation but use more CPU instead of GPU.  I use VAAPI (or rather the auto-selection will end up using VAAPI) on an amdgpu card.

But since the error log shows a vainfo error, I'm more inclined to think your VAAPI doesn't work but it will fallback to software decoding if it can't also look for VDPAU via a direct setting. So VDPAU technically can be found but then has issues with the format, and if you select anything else you land on software decoding anyway.

What output do you get from

vainfo
vdpauinfo

Last edited by V1del (2025-01-19 14:31:27)

Offline

#6 2025-01-19 14:30:18

jebez
Member
Registered: 2025-01-15
Posts: 49

Re: [SOLVED]A .webm file works on mpv & Dragon Player but not on VLC

Should I signal that to VideoLAN ?

Offline

#7 2025-01-19 14:32:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,841

Re: [SOLVED]A .webm file works on mpv & Dragon Player but not on VLC

No we first need to figure out whether VDPAU or VAAPI even work on your system. There's nothing VLC can do if you haven't ensured these basics, I strongly suggest you read the article I've linked for figuring out your options of setting up hw accel.

Offline

#8 2025-01-19 14:44:01

jebez
Member
Registered: 2025-01-15
Posts: 49

Re: [SOLVED]A .webm file works on mpv & Dragon Player but not on VLC

[a@archlinux ~]$ vainfo
Trying display: wayland
vaInitialize failed with error code -1 (unknown libva error),exit
[a@archlinux ~]$ vdpauinfo
display: :1   screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library  565.77  Wed Nov 27 22:50:58 UTC 2024

Video surface:

name   width height types
-------------------------------------------
420     8192  8192  NV12 YV12 
422     8192  8192  UYVY YUYV 
444     8192  8192  NV24 YV24 
420_16  8192  8192  P010 P016 
422_16  8192  8192  UYVY YUYV 
444_16  8192  8192  Y_U_V_444_16 

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                           0 65536  4096  4096
MPEG2_SIMPLE                    3 65536  4096  4096
MPEG2_MAIN                      3 65536  4096  4096
H264_BASELINE                  51 65536  4096  4096
H264_MAIN                      51 65536  4096  4096
H264_HIGH                      51 65536  4096  4096
VC1_SIMPLE                      1  8190  2048  2048
VC1_MAIN                        2  8190  2048  2048
VC1_ADVANCED                    4  8190  2048  2048
MPEG4_PART2_SP                  3  8192  2048  2048
MPEG4_PART2_ASP                 5  8192  2048  2048
DIVX4_QMOBILE                   0  8192  2048  2048
DIVX4_MOBILE                    0  8192  2048  2048
DIVX4_HOME_THEATER              0  8192  2048  2048
DIVX4_HD_1080P                  0  8192  2048  2048
DIVX5_QMOBILE                   0  8192  2048  2048
DIVX5_MOBILE                    0  8192  2048  2048
DIVX5_HOME_THEATER              0  8192  2048  2048
DIVX5_HD_1080P                  0  8192  2048  2048
H264_CONSTRAINED_BASELINE      51 65536  4096  4096
H264_EXTENDED                  51 65536  4096  4096
H264_PROGRESSIVE_HIGH          51 65536  4096  4096
H264_CONSTRAINED_HIGH          51 65536  4096  4096
H264_HIGH_444_PREDICTIVE       51 65536  4096  4096
VP9_PROFILE_0                   1 262144  8192  8192
VP9_PROFILE_1                  --- not supported ---
VP9_PROFILE_2                   1 262144  8192  8192
VP9_PROFILE_3                  --- not supported ---
HEVC_MAIN                      153 262144  8192  8192
HEVC_MAIN_10                   153 262144  8192  8192
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   153 262144  8192  8192
HEVC_MAIN_444                  153 262144  8192  8192
HEVC_MAIN_444_10               153 262144  8192  8192
HEVC_MAIN_444_12               153 262144  8192  8192
AV1_MAIN                       --- not supported ---
AV1_HIGH                       --- not supported ---
AV1_PROFESSIONAL               --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         32768 32768    y  Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
R10G10B10A2      32768 32768    y  Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         32768 32768
R8G8B8A8         32768 32768
R10G10B10A2      32768 32768
B10G10R10A2      32768 32768
A8               32768 32768

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     y
INVERSE_TELECINE                 y
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        y
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y         1     8192
VIDEO_SURFACE_HEIGHT             y         1     8192
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y  

Offline

Board footer

Powered by FluxBB