我刚刚推送了一台Micronet SP5319 HD IP摄像机,文档中没有关于流的路径的信息。我只找到像rtsp://ip/mpeg4这样的东西,但最后它不能工作。我已经尝试了许多不同的路径与许多不同的客户端,如VLC和QuickTime。没有成功。
我窃听了这条流,它看起来像:
OPTIONS rtsp://192.168.1.90:554/h264 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.0.4 (LIVE555 Streaming Media v2012.09.13)
RTSP/1.0 200 OK
CSeq: 2
Date: Tue, Dec 04 2012 01:12:36 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
DESCRIBE rtsp://192.168.1.90:554/h264 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.0.4 (LIVE555 Streaming Media v2012.09.13)
Accept: application/sdp
RTSP/1.0 404 Stream Not Found
CSeq: 3
Date: Tue, Dec 04 2012 01:12:36 GMT看看最后的响应: Stream Not Found。最后,如何获得可用流的列表?我应该使用哪种软件?我也尝试过ONVIF,但没有成功。
诚挚的问候,
发布于 2012-12-04 14:45:17
这个摄像头有可能是通过SDK工作的。但您可以尝试执行以下操作:
http://yummy.micronet.tw/marcom/enews/071312/071312.htm -这里我可以看到摄像头支持ONVIF,所以,它必须支持RTSP,这里http://yummy.micronet.tw/marcom/enews/point/SP5319-catalog.pdf -我也可以看到支持的协议- RTSP是包括在内的。
所以,如果网络界面不能帮助你,你可以通过ONVIF测试工具测试你的相机,你可以在这里找到RTSP地址。
请检查一下web界面中的RTSP端口--它真的是554吗?
发布于 2020-05-08 03:47:51
有同样的问题,在阅读了大量的博客后,我发现了一些有趣的资源:
1) Here某些品牌有一个庞大的rstp已知URL列表。不幸的是,我的不在那里(品牌是kolke,如果你想知道的话…)
2)This table展示了不同型号摄像头的不同URL。我尝试了其中的几个,但都没有成功。用VLC做这件事很耗时,因为我必须一个接一个地写,所以我写了一个小python脚本,用opencv测试每个脚本,并在jupyter笔记本上运行:
import cv2
# need to know those before hand. I got IP with Nmap
usr = 'myuser'
pwd = 'mypassword'
ip = '192.168.1.1'
# I took the url patterns and also included some variations, just to be sure...
urls = [f'rtsp://{usr}:{pwd}@{ip}:554/cam/realmonitor?channel=1&subtype=0',
f'rtsp://{ip}:554/live=2.2&username={usr}&password={pwd}',
f'rtsp://{usr}:{pwd}@{ip}:554/1',
f'rtsp://{usr}:{pwd}@{ip}:554/stream1',
f'rtsp://{usr}:{pwd}@{ip}:554/Stream1',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=0.sdp?',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=0.sdp',
f'rtsp://{ip}:554/videostream.asf?user={usr}&pwd={pwd}',
f'rtsp://{ip}:554/ucast/11',
f'rtsp://{ip}:554/11',
f'rtsp://{ip}:554/12',
f'rtsp://{ip}:554/live0.264',
f'rtsp://{ip}:554/mpeg4cif',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=0.sdp?',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=0.sdp',
f'rtsp://{ip}:554/live1.264',
f'rtsp://{ip}:554/cam1/h264',
f'rtsp://{ip}:554/mpeg4cif',
f'rtsp://{ip}:554/ucast/11',
f'rtsp://{ip}:554/ROH/channel/11',
f'rtsp://{ip}:554/user={usr}_password={pwd}_channel=1_stream=0.sdp',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=0.sdp?',
f'rtsp://{ip}:554/user={usr}_password={pwd}_channel=1_stream=0.sdp',
f'rtsp://{ip}:554/user={usr}_password={pwd}_channel=1_stream=0.sdp?',
f'rtsp://{ip}:554/cam1/mpeg4?user={usr}&pwd={pwd}',
f'rtsp://{ip}:554/h264_stream',
f'rtsp://{ip}:554/live/ch0',
f'rtsp://{ip}:554/live/ch1',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=0.sdp?',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=1.sdp?',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=0&stream=1.sdp?',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=0&stream=0.sdp?',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=0.sdp',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=1&stream=1.sdp',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=0&stream=1.sdp',
f'rtsp://{ip}:554/user={usr}&password={pwd}&channel=0&stream=0.sdp',
f'rtsp://{usr}:{pwd}@{ip}:554/ucast/11',
f'rtsp://{usr}:{pwd}@{ip}:554/11',
f'rtsp://{usr}:{pwd}@{ip}:554/12',
f'rtsp://{usr}:{pwd}@{ip}:554/live0.264',
f'rtsp://{usr}:{pwd}@{ip}:554/mpeg4cif',
f'rtsp://{usr}:{pwd}@{ip}:554/live1.264',
f'rtsp://{usr}:{pwd}@{ip}:554/cam1/h264',
f'rtsp://{usr}:{pwd}@{ip}:554/mpeg4cif',
f'rtsp://{usr}:{pwd}@{ip}:554/ucast/11',
f'rtsp://{usr}:{pwd}@{ip}:554/ROH/channel/11',
f'rtsp://{usr}:{pwd}@{ip}:554/h264_stream',
f'rtsp://{usr}:{pwd}@{ip}:554/live/ch0',
f'rtsp://{usr}:{pwd}@{ip}:554/live/ch1',
]
def test_url(url):
# try to open the stream
cap = cv2.VideoCapture(url)
ret = cap.isOpened() # if it was succesfully opened, that's the URL you need
cap.release()
return ret
# then you just need to check those URLs
for url in urls:
if test_url(url):
print(url)然后我得到了我一直在寻找的东西:
rtsp://192.168.1.1:554/user=myuser&password=mypassword&channel=1&stream=0.sdp?希望它能帮上忙!
https://stackoverflow.com/questions/13688328
复制相似问题