我正在使用 archlinux 尝试连接到本地网络(本地 IP 摄像机)上的 RTSP 流,并且 VLC 的性能非常不稳定。大多数情况下连接运行良好,但有时连接会出现问题冻结我必须关闭并重新打开才能恢复。从终端运行显示以下内容:
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[0000000000bbf1f8] dummy interface: using the dummy interface module...
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[00007fa54800c618] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
...
...
[00007fa54800c618] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
这显然有点不对劲,因为这是一台没有 nvidia 组件的英特尔笔记本电脑。我无法弄清楚它在哪里/为什么寻找 nvidia 文件(或者它是否与问题相关)
运行grep -iE 'vdpau|dri driver' ~/.local/share/xorg/Xorg.0.log
产量:
[ 99171.065] (II) intel(0): [DRI2] DRI driver: i965
[ 99171.065] (II) intel(0): [DRI2] VDPAU driver: va_gl
运行vainfo
产量:
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.3)
vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge Mobile - 1.7.3
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
我已经阅读了相关的 arch wiki 文章(我相信),但无法获得稳定的连接。我已经安装了extra/libva
、extra/libva-intel-driver
、extra/libva-vdpau-driver
,这似乎应该可以做到......我错过了什么?
答案1
我没有足够的声誉来发表评论。
确保您的视频驱动程序是最新的后,尝试检查是否有任何软件包提供 VLC 抱怨的文件:pacman -Qi libva libva-intel-driver libva-vdpau-driver | grep libvdpau_nvidia.so
。正如 Dmitry 评论的那样,请确保VA-API
选择 为硬件加速解码设置,或者尝试将其设置为Auto
。
此外,您可以与其他播放器一起播放同一流,例如mplayer
或 吗mpv
?