开发者

Capture RTSP with Emgu CV

I have this line of code:

 _capture = new Capture("rtsp://192.168.0.61/12345");

It captures the rtsp stream for some seconds and then stops working. Why? If there is a work around what 开发者_运维百科is it? Or if it is a bug in OpenCV?

Thanks


Thats because the RtspStack used in OpenCV (I think live 555) is not sending a GET_PARAMETER to keep it alive in coordination with the Transport header returned from the server during the PLAY request.

You can manually keep it alive yourself by using another RtspClient such as the one included here..

http://net7mma.codeplex.com/

And sending a Get_parameter every few seconds to keep the stream alive.


If you want to know if its a bug in opencv, or one of the supporting libraries, then test the stream in another rtsp client and see if it works.


_capture = new Capture("rtsp://192.168.0.61/12345"); It is error

This is not user password. I have line good job

Capture = new Capture("rtsp://user:pass@192.168.0.61");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜