
[英]How can I stream videos using VLC via RTSP in command line, as the root user?
[英]Cannot connect to rtsp stream via vlc
我有网络摄像机。 当我去这个网址
rtsp://192.168.20.100:554 / user = admin&password =&channel = 1&stream = 0.sdp?
在浏览器中,它使我可以使用标准视频播放器,并且可以观看视频。 但是当我尝试在cvlc中打开它时我几乎没有错误
$cvlc rtsp://192.168.20.100:554/user=admin&password=&channel=1&stream=0.sdp?
[7] 16585
[8] 16586
[9] 16587
$ VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[0000000001bd9208] core interface error: no suitable interface module
[0000000001ac0148] core libvlc error: interface "globalhotkeys,none" initialization failed
[0000000001bbe638] dummy interface: using the dummy interface module...
[00007fa928000e38] live555 demux error: Failed to connect with rtsp://192.168.20.100:554/user=admin
要么
$ cvlc rtsp://admin:@192.168.20.100:554/channel=1&stream=0.sdp?[8] 16647
$ VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[00000000016f9208] core interface error: no suitable interface module
[00000000015e0148] core libvlc error: interface "globalhotkeys,none" initialization failed
[00000000016de638] dummy interface: using the dummy interface module...
[00007fdb20000e88] live555 demux error: Failed to connect with rtsp://admin:@192.168.20.100:554/channel=1
[00007fdb2c000c18] core input error: open of `rtsp://admin:@192.168.20.100:554/channel=1' failed
[00007fdb2c000c18] core input error: Этот источник не открывается
[00007fdb2c000c18] core input error: VLC не может открыть MRL 'rtsp://admin:@192.168.20.100:554/channel=1'. Ищите более подробную информацию в лог-файле.
我发现了类似的问题,但没有答案
rtsp url尤其不常见吗? 在末尾。
发生的情况是外壳程序对'&'字符进行了评估,您的命令被第一个'&'截断,并且某些进程被派生了([7] 16585 ...)
它应该可以转义'&'或引用如下网址:
cvlc "rtsp://192.168.20.100:554/user=admin&password=&channel=1&stream=0.sdp?"
要么
cvlc rtsp://192.168.20.100:554/user=admin\&password=\&channel=1\&stream=0.sdp?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.