VLC

我在完成 树莓派400音频配置 配置之后,可以在 树莓派Raspberry Pi 400 硬件环境运行 Wayland + Sway 图形桌面正常播放音频,但是发现视频播放是失败的。不管使用哪种视频软件,如mpv和vlc,都会crash。例如,vlc的终端输出crash信息:

wayland+sway环境VLC crash信息
VLC media player 3.0.17.3 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000005573f271b0] main interface error: no suitable interface module
[0000005573e3e5c0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0000005573e3e5c0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000005573ed2fc0] main playlist: playlist is empty
[0000005573f05d40] main audio output error: too low audio sample frequency (0)
[0000007f68c14ed0] main decoder error: failed to create audio output
[0000005573f05d40] main audio output error: Can't convert non linear input
[0000007f6400c280] main audio filter error: cannot add user audio filter "scaletempo" (skipped)
[0000005573f05d40] main audio output error: Can't convert non linear input
[0000005573f05d40] main audio output error: cannot setup filtering pipeline
[0000007f68c14ed0] main decoder error: failed to create audio output
failed to export dumb buffer: Permission denied
Failed to create scanout resource
[0000007f58004370] gl gl: Initialized libplacebo v4.192.1 (API v192)
libva info: VA-API version 1.14.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[0000007f58004370] glconv_vaapi_wl gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.14.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[0000007f58004370] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.14.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[0000007f58004370] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.14.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[0000007f58004370] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
failed to export dumb buffer: Permission denied
Failed to create scanout resource
failed to export dumb buffer: Permission denied
Failed to create scanout resource
[0000007f58004370] gl gl: Initialized libplacebo v4.192.1 (API v192)
failed to export dumb buffer: Permission denied
Failed to create scanout resource
[0000007f583c87b0] gl gl: Initialized libplacebo v4.192.1 (API v192)
failed to export dumb buffer: Permission denied
Failed to create scanout resource
zsh: segmentation fault  vlc

这个错误原因实际上是因为VLC默认没有配置 wayland显示服务器协议 作为视频输出设备,解决的方法简述见 运行sway窗口管理器