无法使用 Linux 播放 rtsp - Streams

Mik*_*wer 3 rtsp

我无法从 XUbuntu(21.04、20.04)或 Debian 11 播放任何 rtsp 流。我也使用 Live-USB-Sticks 来拥有一个全新的系统。

\n

作为软件,我尝试过 mplayer、vlc (3.012)、ffmpeg ...但没有成功。

\n

在我的 Android 设备(平板电脑或手机)上,我可以使用 VLC 播放任何流媒体。\n在我的 Windows7 笔记本电脑上,我可以使用 VLC 播放任何 Steam。

\n

ffplay 中的此错误消息可能有助于查找问题:

\n
~$ ffplay rtsp://192.168.178.2:8554/video\nffplay version 4.3.2-0+deb11u1ubuntu1 Copyright (c) 2003-2021 the FFmpeg developers\n  built with gcc 10 (Ubuntu 10.2.1-20ubuntu1)\n  configuration: --prefix=/usr --extra-version=0+deb11u1ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu ...\n\n  libavutil      56. 51.100 / 56. 51.100\n  libavcodec     58. 91.100 / 58. 91.100\n  libavformat    58. 45.100 / 58. 45.100\n  libavdevice    58. 10.100 / 58. 10.100\n  libavfilter     7. 85.100 /  7. 85.100\n  libavresample   4.  0.  0 /  4.  0.  0\n  libswscale      5.  7.100 /  5.  7.100\n  libswresample   3.  7.100 /  3.  7.100\n  libpostproc    55.  7.100 / 55.  7.100\n\n[rtsp @ 0x7f7008000bc0] method SETUP failed: 459 Client error=0/0   \nrtsp://192.168.178.2:8554/video: Server returned 4XX Client Error, but not one of 40{0,1,3,4}\n    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   \n~$\n
Run Code Online (Sandbox Code Playgroud)\n

来自 MPlayer:

\n
:~$ mplayer rtsp://192.168.178.2:8554/video\nMPlayer 1.4 (Debian), built with gcc-10 (C) 2000-2019 MPlayer Team\ndo_connect: could not connect to socket\nconnect: No such file or directory\nFailed to open LIRC support. You will not be able to use your remote control.\n\nPlaying rtsp://192.168.178.2:8554/video.\nResolving 192.168.178.2 for AF_INET6...\n\nCouldn\'t resolve name for AF_INET6: 192.168.178.2\nConnecting to server 192.168.178.2[192.168.178.2]: 8554...\n\nrtsp: warning: setting NEW session: 48863bf289524adc;timeout=60;timeout=60\nTimeout! No data from host 0.0.0.0\nrtsp_session: unsupported RTSP server. Server type is \'VLC/3.0.11\'.\nlibavformat version 58.45.100 (external)\nlibavformat file format detected.\n[rtsp @ 0x7f5acb1ba180]method SETUP failed: 459 Client error\nLAVF_header: av_open_input_stream() failed\n\n\nExiting... (End of file)\n
Run Code Online (Sandbox Code Playgroud)\n
This is the VLC Debug-Log:\n\ndbus debug: Getting All properties\ndbus debug: Getting All properties\ndbus debug: Getting All properties\ndbus debug: Getting All properties\nmain debug: processing request item: rtsp://192.168.178.2:8554/video, node: Wiedergabeliste, skip: 0\nmain debug: rebuilding array of current - root Wiedergabeliste\nmain debug: rebuild done - 2 items, index 1\nmain debug: starting playback of new item\nmain debug: resyncing on rtsp://192.168.178.2:8554/video\nmain debug: rtsp://192.168.178.2:8554/video is at 1\nmain debug: creating new input thread\nmain debug: Creating an input for \'rtsp://192.168.178.2:8554/video\'\nmain debug: requesting art for new input thread\nmain debug: using timeshift granularity of 50 MiB\nmain debug: using default timeshift path\nmain debug: `rtsp://192.168.178.2:8554/video\' gives access `rtsp\' demux `any\' path `192.168.178.2:8554/video\'\nmain debug: creating demux: access=\'rtsp\' demux=\'any\' location=\'192.168.178.2:8554/video\' file=\'(null)\'\nmain debug: looking for access_demux module matching "rtsp": 18 candidates\nmain debug: no access_demux modules matched\nmain debug: creating access: rtsp://192.168.178.2:8554/video\nmain debug: looking for access module matching "rtsp": 29 candidates\nmain debug: looking for meta fetcher module matching "any": 1 candidates\nsatip debug: try to open \'rtsp://192.168.178.2:8554/video\'\nsatip debug: connect to host \'192.168.178.2\'\nlua debug: Trying Lua scripts in /home/mikropower/.local/share/vlc/lua/meta/fetcher\nmain debug: net: connecting to 192.168.178.2 port 8554\nlua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher\nlua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher\nmain debug: no meta fetcher modules matched\nmain debug: looking for art finder module matching "any": 2 candidates\nlua debug: Trying Lua scripts in /home/mikropower/.local/share/vlc/lua/meta/art\nlua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art\nlua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac\nlua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac\nlua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac\nlua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac\nlua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac\nlua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac\nlua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac\nlua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac\nlua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art\nmain debug: no art finder modules matched\nmain debug: connection succeeded (socket = 35)\nmain debug: net: opening 0.0.0.0 datagram port 9156\nmain debug: net: opening 0.0.0.0 datagram port 9157\nqt debug: IM: Setting an input\nsatip error: Failed to setup RTSP session\nmain debug: net: connecting to 192.168.178.2 port 8554\nmain debug: connection succeeded (socket = 34)\naccess_realrtsp warning: Cseq mismatch, got 1, assumed 0\naccess_realrtsp debug: rtsp connected\naccess_realrtsp warning: only real/helix rtsp servers supported for now\nmain debug: no access modules matched\nmain debug: dead input\nqt debug: IM: Deleting the input\nmain debug: changing item without a request (current 1/2)\nmain debug: nothing to play\ndbus debug: Getting All properties\ndbus debug: Getting All properties\ndbus debug: Getting All properties\n
Run Code Online (Sandbox Code Playgroud)\n

cvlc的调试:

\n
...\nlua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art\nmain art finder debug: no art finder modules matched\nsatip stream error: Failed to setup RTSP session\nmain stream debug: net: connecting to 192.168.178.2 port 8554\nmain stream debug: connection succeeded (socket = 11)\naccess_realrtsp stream warning: Cseq mismatch, got 1, assumed 0\naccess_realrtsp stream debug: rtsp connected\naccess_realrtsp stream warning: only real/helix rtsp servers supported for now\nmain stream debug: no access modules matched\nmain input error: Ihre Eingabe konnte nicht ge\xc3\xb6ffnet werden\nmain input error: VLC kann die Medienadresse \'rtsp://192.168.178.2:8554\' nicht \xc3\xb6ffnen. F\xc3\xbcr Details bitte im Fehlerprotokoll nachsehen.\nmain playlist debug: dead input\nmain playlist debug: changing item without a request (current 0/1)\nmain playlist debug: nothing to play\ndbus interface debug: Getting All properties\ndbus interface debug: Getting All properties\n...\n
Run Code Online (Sandbox Code Playgroud)\n

Mik*_*wer 7

来自这个Debian 错误报告

我们必须禁用这些插件,因为 liblivemedia 包含非自由代码。请参阅#981439。也许这就是新闻条目和发行说明中的​​注释。

来自VLC 论坛

根据 Debian 政策决定,Debian VLC 版本不支持 RTSP”

使用 VLC SNAP 包可以播放 rtsp 流。

看起来每个为 Debian 构建的程序(mplayer、ffplay、vlc ...)也删除了 rtsp-Streaming 功能。