我有这行代码:
_capture = new Capture("rtsp://192.168.0.61/12345");
它捕获 rtsp 流几秒钟,然后停止工作。为什么?如果有解决方法是什么?或者如果它是 OpenCV 中的错误?
谢谢
我有这行代码:
_capture = new Capture("rtsp://192.168.0.61/12345");
它捕获 rtsp 流几秒钟,然后停止工作。为什么?如果有解决方法是什么?或者如果它是 OpenCV 中的错误?
谢谢
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..
And sending a Get_parameter
every few seconds to keep the stream alive.
如果您想知道它是 opencv 中的错误,还是某个支持库中的错误,请在另一个rtsp 客户端中测试流,看看它是否有效。
_capture = new Capture("rtsp://192.168.0.61/12345"); 这是错误
这不是用户密码。我有好工作
Capture = new Capture("rtsp://user:pass@192.168.0.61");