You are not logged in.
System: Ryzen 5600U with radeon graphics
Nvidia 1650 mobile
When i set vlc to use vaapi, it can render xvid encoded videos,
[000055803963a300] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00005580396e9940] main playlist: playlist is empty
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007f6460007ac0] gl gl: Initialized libplacebo v5.229.2 (API v229)
[00007f646c0724a0] vaapi generic error: profile(3) is not supported
[00007f64602cba00] gl gl: Initialized libplacebo v5.229.2 (API v229)
[00007f6460240470] gl gl: Initialized libplacebo v5.229.2 (API v229)
[00007f6434039be0] gl gl: Initialized libplacebo v5.229.2 (API v229)
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007f6488065270] vaapi generic error: profile(3) is not supported
[00007f646031bfa0] gl gl: Initialized libplacebo v5.229.2 (API v229)
[00007f64603934e0] gl gl: Initialized libplacebo v5.229.2 (API v229)
[mpeg4 @ 0x7f6470c238c0] get_buffer() failed
[mpeg4 @ 0x7f6470c238c0] thread_get_buffer() failed
[mpeg4 @ 0x7f6470c238c0] get_buffer() failed (-12 (nil))
I verified with radeontop and nvidia-smi, it uses the radeon gpu
similarly when i set vlc to use vdpau and open hevc it works fine but then crashes when i open xvid
Last edited by PranshuTG (2023-04-08 10:14:08)
Offline
vainfo
vdpauinfo
Did you try mpv?
But I guess
[00007f646c0724a0] vaapi generic error: profile(3) is not supported
is for hevc?
And I guess hevc is only accelerated by the nvidia GPU?
Offline
i dunno the table says it should work https://wiki.archlinux.org/title/Hardwa … son_tables
Offline
How about we ask the actual decoders?
Did you test mpv?
Offline
mpv works for both at same time
Offline
vainfo vdpauinfo
Edit: also post the console output for mpv.
Last edited by seth (2023-04-10 12:53:27)
Offline
▶ vainfo
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.18 (libva 2.17.1)
vainfo: Driver version: Mesa Gallium driver 23.0.1 for AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.49, 6.2.9-zen1-1-zen)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
▶ vdpauinfo
display: :0 screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0
Video surface:
name width height types
-------------------------------------------
420 16384 16384 NV12 YV12
422 16384 16384 UYVY YUYV
444 16384 16384 Y8U8V8A8 V8U8Y8A8
420_16 16384 16384
422_16 16384 16384
444_16 16384 16384
Decoder capabilities:
name level macbs width height
----------------------------------------------------
MPEG1 --- not supported ---
MPEG2_SIMPLE 3 65536 4096 4096
MPEG2_MAIN 3 65536 4096 4096
H264_BASELINE 52 65536 4096 4096
H264_MAIN 52 65536 4096 4096
H264_HIGH 52 65536 4096 4096
VC1_SIMPLE 1 65536 4096 4096
VC1_MAIN 2 65536 4096 4096
VC1_ADVANCED 4 65536 4096 4096
MPEG4_PART2_SP 3 65536 4096 4096
MPEG4_PART2_ASP 5 65536 4096 4096
DIVX4_QMOBILE --- not supported ---
DIVX4_MOBILE --- not supported ---
DIVX4_HOME_THEATER --- not supported ---
DIVX4_HD_1080P --- not supported ---
DIVX5_QMOBILE --- not supported ---
DIVX5_MOBILE --- not supported ---
DIVX5_HOME_THEATER --- not supported ---
DIVX5_HD_1080P --- not supported ---
H264_CONSTRAINED_BASELINE 0 65536 4096 4096
H264_EXTENDED --- not supported ---
H264_PROGRESSIVE_HIGH --- not supported ---
H264_CONSTRAINED_HIGH --- not supported ---
H264_HIGH_444_PREDICTIVE --- not supported ---
VP9_PROFILE_0 --- not supported ---
VP9_PROFILE_1 --- not supported ---
VP9_PROFILE_2 --- not supported ---
VP9_PROFILE_3 --- not supported ---
HEVC_MAIN 186 139264 8192 4352
HEVC_MAIN_10 186 139264 8192 4352
HEVC_MAIN_STILL --- not supported ---
HEVC_MAIN_12 --- not supported ---
HEVC_MAIN_444 --- not supported ---
HEVC_MAIN_444_10 --- not supported ---
HEVC_MAIN_444_12 --- not supported ---
AV1_MAIN --- not supported ---
AV1_HIGH --- not supported ---
AV1_PROFESSIONAL --- not supported ---
Output surface:
name width height nat types
----------------------------------------------------
B8G8R8A8 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 I8A8
R8G8B8A8 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 I8A8
R10G10B10A2 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 I8A8
B10G10R10A2 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 I8A8
Bitmap surface:
name width height
------------------------------
B8G8R8A8 16384 16384
R8G8B8A8 16384 16384
R10G10B10A2 16384 16384
B10G10R10A2 16384 16384
A8 16384 16384
Video mixer:
feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y
DEINTERLACE_TEMPORAL_SPATIAL -
INVERSE_TELECINE -
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 48 4096
VIDEO_SURFACE_HEIGHT y 48 4096
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
/etc/environment
#allow_rgb10_configs=false
#LIBVA_DRIVER_NAME=radeonsi
VDPAU_DRIVER=radeonsi
Last edited by PranshuTG (2023-04-10 12:56:20)
Offline
#LIBVA_DRIVER_NAME=radeonsi
VDPAU_DRIVER=radeonsi
Why did you comment LIBVA_DRIVER_NAME?
is the environment picked up by vlc?
What's the vlc response on vdpau/xvid?
Offline
vlc opens and i hear audio but the video never plays and my whole screen turns black for 1-2 seconds and then kwin messes up (pkill kwin_x11 fixes this but applets are still broken)
^ this is what i mean when i say doesnt work for both scenarios
vdpau/xvid
~/Downloads
▶ vlc VID_20230407_200259-pre.mkv
VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000557b149f0300] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f4ec4007ac0] gl gl: Initialized libplacebo v5.229.2 (API v229)
[00007f4ec42cbc00] gl gl: Initialized libplacebo v5.229.2 (API v229)
[00007f4ee0c1c020] avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding
amdgpu: The CS has been rejected (-125), but the context isn't robust.
amdgpu: The process will be terminated.
amdgpu: amdgpu_cs_query_fence_status failed.
QObject::killTimer: Timers cannot be stopped from another thread
QObject::~QObject: Timers cannot be stopped from another thread
[1] 452731 segmentation fault (core dumped) vlc VID_20230407_200259-pre.mkv
Important note: ffmpeg was used to generate the xvid from the hevc
Last edited by PranshuTG (2023-04-10 13:16:44)
Offline
https://wiki.archlinux.org/title/Hardwa … ring_VDPAU
https://wiki.archlinux.org/title/Hardwa … rification
Why did you comment LIBVA_DRIVER_NAME?
also post the console output for mpv.
Offline
hevc
~/Downloads
▶ mpv --hwdec=auto --hwdec-codecs=all VID_20230407_200259.mp4
(+) Video --vid=1 (*) (hevc 3840x2160 29.799fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
Using hardware decoding (vaapi).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 3840x2160 vaapi[nv12]
Invalid audio PTS: 0.021333 -> 0.219771
AV: 00:00:10 / 00:00:19 (55%) A-V: 0.000 ct: 0.198 Dropped: 1
Exiting... (Quit)
xvid
~/Downloads ⍉
▶ mpv --hwdec=auto --hwdec-codecs=all VID_20230407_200259-pre.mkv
(+) Video --vid=1 (*) (mpeg4 2160x3840 30.000fps)
(+) Audio --aid=1 --alang=eng (*) (vorbis 2ch 48000Hz)
[ffmpeg/video] mpeg4: No support for codec mpeg4 profile 0.
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 2160x3840 yuv420p
Invalid audio PTS: 0.036333 -> 0.235000
AV: 00:00:19 / 00:00:19 (100%) A-V: 0.000 ct: 0.199
Exiting... (End of file)
Why did you comment LIBVA_DRIVER_NAME?
i cant remeber why but i think i did it to make xvid work before realizing it crashes hevc
Offline
mpv renders hevc on vaapi, but xvid in software.
Is the output in #1 for the xvid or hevc playback?
Make sure to export the environment, in a multi-GPU system that can be really important.
Offline
i think its xvid and then hevc
Offline
ALACRITTY_LOG=/tmp/Alacritty-3624.log
ALACRITTY_SOCKET=/run/user/1000/Alacritty-:0-3624.sock
ALACRITTY_WINDOW_ID=4194306
CASROOT=/usr
COLORTERM=truecolor
CSF_DrawPluginDefaults=/usr/share/opencascade/resources/DrawResources
CSF_EXCEPTION_PROMPT=1
CSF_IGESDefaults=/usr/share/opencascade/resources/XSTEPResource
CSF_LANGUAGE=us
CSF_MDTVTexturesDirectory=/usr/share/opencascade/resources/Textures
CSF_MIGRATION_TYPES=/usr/share/opencascade/resources/StdResource/MigrationSheet.txt
CSF_OCCTResourcePath=/usr/share/opencascade/resources
CSF_PluginDefaults=/usr/share/opencascade/resources/StdResource
CSF_SHMessage=/usr/share/opencascade/resources/SHMessage
CSF_STEPDefaults=/usr/share/opencascade/resources/XSTEPResource
CSF_ShadersDirectory=/usr/share/opencascade/resources/Shaders
CSF_StandardDefaults=/usr/share/opencascade/resources/StdResource
CSF_StandardLiteDefaults=/usr/share/opencascade/resources/StdResource
CSF_TObjDefaults=/usr/share/opencascade/resources/StdResource
CSF_TObjMessage=/usr/share/opencascade/resources/TObj
CSF_XCAFDefaults=/usr/share/opencascade/resources/StdResource
CSF_XSMessage=/usr/share/opencascade/resources/XSMessage
CSF_XmlOcafResource=/usr/share/opencascade/resources/XmlOcafResource
CUDA_PATH=/opt/cuda
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
DESKTOP_SESSION=plasma
DISPLAY=:0
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/home/pranshutg/.cache/dotnet_bundle_extract
DOTNET_ROOT=/usr/share/dotnet
DRAWDEFAULT=/usr/share/opencascade/resources/DrawResources/DrawDefault
DRAWHOME=/usr/share/opencascade/resources/DrawResources
GRADLE_HOME=/usr/share/java/gradle
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/pranshutg/.gtkrc-2.0:/home/pranshutg/.config/gtkrc-2.0
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:/home/pranshutg/.gtkrc:/home/pranshutg/.config/gtkrc
HG=/usr/bin/hg
HOME=/home/pranshutg
INVOCATION_ID=d8b94f5919ed4935835bd33428a2653c
JOURNAL_STREAM=8:27066
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=en_GB.UTF-8
LANGUAGE=
LC_TIME=C.UTF-8
LOGNAME=pranshutg
MAIL=/var/spool/mail/pranshutg
MANAGERPID=1136
MMGT_CLEAR=1
MOTD_SHOWN=pam
MOZ_ENABLE_WAYLAND=1
MOZ_USE_XINPUT2=1
OLDPWD=/home/pranshutg
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/home/pranshutg/bin:/home/pranshutg/bin/**:/usr/local/bin:/home/pranshutg/.dropbox-dist:/home/pranshutg/.local/bin:/home/pranshutg/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/home/pranshutg/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=/home/pranshutg
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_SCREEN_SCALE_FACTORS=eDP-1=1.25;
SESSION_MANAGER=local/pranshu-arch:@/tmp/.ICE-unix/1216,unix/pranshu-arch:/tmp/.ICE-unix/1216
SHELL=/bin/zsh
SYSTEMD_EXEC_PID=1258
TERM=xterm-256color
USER=pranshutg
VDPAU_DRIVER=radeonsi
WINDOWID=4194306
XAUTHORITY=/home/pranshutg/.Xauthority
XCURSOR_SIZE=24
XCURSOR_THEME=Bibata-Original-Classic
XDG_CONFIG_DIRS=/home/pranshutg/.config/kdedefaults:/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=1
SHLVL=1
ZSH=/home/pranshutg/.oh-my-zsh
PAGER=less
LESS=-R
LSCOLORS=exfxcxdxbxegedabagacad
LS_COLORS=di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:
GREP_COLORS=mt=1;33
_=/usr/bin/printenv
Offline
Yeah, LIBVA_DRIVER_NAME isn't there… so…?
Offline