更新至 21.04 版后,VLC 停止工作,但在 20.10 版中可以工作。Mplayer 则

更新至 21.04 版后,VLC 停止工作,但在 20.10 版中可以工作。Mplayer 则

在 20.10 中使用 VLC 打开安全摄像头(EZVIZ),命令如下:


    rtsp://192.168.1.200:554
    It fails and the log file says:
    satip error: Failed to setup RTSP session
    satip error: Failed to teardown RTSP session
    ```

nmap shows the device is present:

Starting Nmap 7.80 ( https://nmap.org ) at 2021-05-15 10:03 BST
Nmap scan report for TL-WA850RE.broadband (192.168.1.200)
Host is up (0.032s latency).
Not shown: 996 closed ports
PORT     STATE SERVICE
554/tcp  open  rtsp
8000/tcp open  http-alt
8200/tcp open  trivnet1
9010/tcp open  sdr
```

mplayer works but gives error messages:

```
mplayer rtsp://admin:******@192.168.1.200:554
MPlayer 1.4 (Debian), built with gcc-10 (C) 2000-2019 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://admin:******@192.168.1.200:554.
Resolving 192.168.1.200 for AF_INET6...

Couldn't resolve name for AF_INET6: 192.168.1.200
Connecting to server 192.168.1.200[192.168.1.200]: 554...

librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
libavformat version 58.45.100 (external)
libavformat file format detected.

Apparently something has changed between 20.10 and 21.10 that is affecting VLC.  I've tried various changes to the input/Codec settings that have been suggested on different websites but no effect.
Any ideas?
Thanks

When I run cvlc --no-one-instance -vv rtsp://192.168.1.200:554 on my desktop it just hangs:
VLC media player 3.0.12 Vetinari (revision 3.0.12-1-0-gd147bb5e7e)

When I run it my laptop, also running ubuntu 21.04, it gives this error message:

    [00007f00e0000c20] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
    [00007f00e0000c20] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
    [00007f00e0000c20] main art finder debug: no art finder modules matched
    [0000563550b15a50] dbus interface debug: Getting All properties
    [0000563550b15a50] dbus interface debug: Getting All properties
    [00007f00e80015e0] main stream debug: connection succeeded (socket = 12)
    [00007f00e80015e0] main stream debug: net: opening 0.0.0.0 datagram port 9338
    [00007f00e80015e0] main stream debug: net: opening 0.0.0.0 datagram port 9339
    [00007f00e80015e0] satip stream error: Failed to setup RTSP session
    [00007f00e80015e0] satip stream error: Failed to teardown RTSP session
    [00007f00e80015e0] main stream debug: net: connecting to 192.168.1.200 port 554
    [00007f00e80015e0] main stream debug: connection succeeded (socket = 11)
    [00007f00e80015e0] access_realrtsp stream warning: Cseq mismatch, got 1, assumed 0
    [00007f00e80015e0] access_realrtsp stream debug: rtsp connected
    [00007f00e80015e0] access_realrtsp stream warning: only real/helix rtsp servers supported for now
    [00007f00e80015e0] main stream debug: no access modules matched
    [00007f00f4000c80] main input error: Your input can't be opened
    [00007f00f4000c80] main input error: VLC is unable to open the MRL 'rtsp://192.168.1.200:554'. Check the log for details.
    [0000563550ad1940] main playlist debug: dead input
    [0000563550ad1940] main playlist debug: changing item without a request (current 0/1)
    [0000563550ad1940] main playlist debug: nothing to play

答案1

为了使其正常工作,请尝试快速安装。

RTSP 流对我来说在本地也无法工作。根据这篇文章,无法播放任何 rtsp 流 - 在 XUbuntu 和 Debian 中,Debian VLC 版本不支持 RTSP。

以下是快照的说明安装

答案2

尝试从终端以更高的详细程度运行以查看发生了什么:

cvlc --no-one-instance -vv rtsp://...

但你的网址在我看来不太合适。rtsp 网址不应该是这样的格式吗rtsp://host:port/path.sdp?或者你可能搞错了协议,应该是这样的rtp://

答案3

正如前面提到的,debian\ubuntu vlc 版本不再包含 vlc。

这是一个巨大的开销,但 Nix 包对我来说很有用:

nix-shell -p vlc --command "vlc rtsp://192.168.1.137/ch0_0.h264"

您必须先安装 nix 包管理器: https://nixos.org/download.html#download-nix

答案4

可能有点晚了,但 vlc 的修复,请安装更高版本。我在使用 Linux Mint 21.1(基于 ubuntu 22.04)时也遇到了同样的问题。无法从 LM20(ubuntu 20.04)正常工作的闭路电视摄像机流式传输视频。

下载 ppa:

sudo add-apt-repository ppa:savoury1/ffmpeg4
sudo add-apt-repository ppa:savoury1/vlc3
sudo apt-get update
sudo apt-get install vlc

对我有用,似乎 vlc 3.0.16 坏了,ppa 安装 3.0.18。

相关内容