RTSP://192.168.20.100:554 /用户=管理员&安培;密码=安培;信道= 1&安培;流= 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'. Ищите более подробную информацию в лог-файле.
我发现了类似的问题,但没有答案
答案 0 :(得分:0)
rtsp url特别适用于?最后。
发生的是'&' shell由shell评估,你的命令会被第一个'&'中断。并且一些过程是分叉的([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?