更新到21.04,VLC停止工作,但在20.10中工作。Mplayer 确实

use*_*244 6 video networking vlc

用于在 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:

Run Code Online (Sandbox Code Playgroud)
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.
Run Code Online (Sandbox Code Playgroud)

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

Run Code Online (Sandbox Code Playgroud)

小智 4

要使其正常工作,请尝试快照安装。

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

以下是快速安装的说明

  • 诸如此类的事情就是为什么Linux永远不会成为主流桌面操作系统的原因。你不能仅仅破坏一个核心用户场景并让其破坏一年多。对于 99.9% 的人来说,告诉人们使用不同的包管理器来获取固定版本并不是一个实际的解决方法。 (2认同)

小智 1

尝试以更详细的方式从终端运行,看看发生了什么:

cvlc --no-one-instance -vv rtsp://...
Run Code Online (Sandbox Code Playgroud)

但你的网址对我来说看起来不合适。rtsp url 不应该是这样的形式吗rtsp://host:port/path.sdp?或者你可能搞乱了协议,而它应该是rtp://相反的。