简体   繁体   English

如何通过HTTP从RTSP摄像机获取图像流?

[英]How to acquire image stream from RTSP camera through HTTP?

I was wondering if I can use an HTTP protocol to acquire an image stream from an RTSP camera? 我想知道是否可以使用HTTP协议从RTSP摄像机获取图像流? I am currently using VLC Media ActiveX Plugin to connect to and view the RTSP stream, but I would like to eliminate the ActiveX control and move to a more raw level of image acquisition. 我目前正在使用VLC Media ActiveX插件来连接并查看RTSP流,但是我想取消ActiveX控件,而转向更原始的图像采集级别。 I recall seeing somewhere that it's possible to get these images using HTTP. 我记得在某处看到可以使用HTTP获得这些图像。 I'd like to use Indy TIdHTTP component to connect to the camera and acquire the image. 我想使用Indy TIdHTTP组件连接到相机并获取图像。 I'm also assuming this would need some sort of speed control, such as a delay in-between requests. 我还假设这将需要某种速度控制,例如请求之间的延迟。 However, it's also my understanding that these RTSP cameras have pre-defined frame rates, which using the standard RTSP protocol are supposed to follow. 但是,据我了解,这些RTSP摄像机具有预定义的帧速率,应该遵循使用标准RTSP协议的帧速率。

many cameras will allow you to grab screenshots with a URL that might look like: 许多摄像头将允许您使用以下网址捕获屏幕截图:

http://user:password@camera/snapshot.jpg

for a proper stream, you would need to use RTSP (there are Delphi RTSP clients), tunnelling over HTTP if your device supports the application/x-rtsp-tunnelled content type, or another stream your device supports. 为了获得适当的流,您将需要使用RTSP(有Delphi RTSP客户端),如果您的设备支持application / x-rtsp-tunnelled内容类型,则需要通过HTTP进行隧道传输,或者您的设备支持的其他流。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM