Closed bitlord closed 1 year ago
Additional info:
Not sure how important/relevant it is (if any):
vainfo:
Trying display: wayland
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: Mesa Gallium driver 22.2.3 for AMD Radeon RX 550 / 550 Series (polaris12, LLVM 15.0.4, DRM 3.48, 6.0.9-gentoo-dist)
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
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
Cannot reproduce on RDNA2 and d3a61cfe98
$ mpv --no-config --hwdec=auto-safe ~/Videos/kronii.webm
(+) Video --vid=1 (*) (vp9 1920x1080 60.000fps)
(+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
Using hardware decoding (vaapi).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:00:03 / 03:05:40 (0%) A-V: 0.000 Dropped: 2
vainfo
Trying display: wayland
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: Mesa Gallium driver 22.2.3 for AMD Radeon Graphics (rembrandt, LLVM 14.0.6, DRM 3.48, 6.0.8-arch1-1)
vainfo: Supported profile and entrypoints
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
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
The relevant lines are
[ 0.076][v][vo/gpu] Loading hwdec drivers for format: 'vaapi'
[ 0.076][v][vo/gpu] Loading hwdec driver 'vaapi'
[ 0.076][v][vo/gpu/vaapi] VAAPI hwdec only works with OpenGL or Vulkan backends.
[ 0.076][v][vo/gpu] Loading failed.
Which is odd. Your mesa version is up-to-date and there isn't anything immediately off about the OpenGL logging.
Unsure if could be related, but maybe try enabling USE=drm on the Gentoo ebuild? Way it's handled in the ebuild changed a bit since 0.34 alongside meson migration -- may switch it to default enabled if it's going to cause problems (about everyone has libdrm on Gentoo anyway), not that I can really test vaapi (-hwdec=nvdec
works fine... but well :eyes:)
Edit: mentioning given currently USE=drm also controls flipping vaapi-drm on/off, but would still have vaapi-egl/placebo/wayland/x11 so maybe not an issue -- not familiar with vaapi stuff (never used) so unsure what your setup needs
Thanks @ionenwks USE="drm" fixed it. Sorry for the noise, I should have probably checked changed USE flags while upgrading.
Thanks @philipl @LaserEyess
Thanks @ionenwks USE="drm" fixed it. Sorry for the noise, I should have probably checked changed USE flags while upgrading.
Cool, I went ahead and made USE=drm
default in Gentoo given it doesn't hurt anything nor really pull extra deps (drm nor the old gbm USE were default mpv-0.34, so unsure why it's needed now though).
Important Information
Provide following Information:
Reproduction steps
run
mpv
with config optionhwdec=auto-safe
Downgrading to 0.34.1, hwdec works on the same input file and no errors are reported.
Expected behavior
VAAPI hwdec works without errors
Actual behavior
VAAPI hwdec fails with:
[vaapi] libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Log file
There is a duplicate config file in the log
/home/user/.config/mpv/mpv.conf
and/home/user/.config/mpv/conf
both contain same option, tried with just one as well