Foscam FI9805W的Java openCV 3.0 VideoCapture rtsp流 [英] Java openCV 3.0 VideoCapture rtsp stream from Foscam FI9805W
问题描述
我正在尝试使用Java中的opencv 3.0从vcam取得视频流. 如果我使用以下代码查找网络摄像头,一切正常:
I'm trying to get a videostream vom an ip cam with opencv 3.0 in java. Everything works fine if i look for my webcam with this code:
VideoCapture camera = new VideoCapture(0);
但是使用RTSP流时出现错误. 我发现它应该可以像这样获得RTSP流:
but with the RTSP Stream I get an error. What I found was that it should work to get a RTSP Stream like this:
VideoCapture camera = new VideoCapture("rtsp://test:test@192.168.1.76:88/videoMain");
用户:测试
密码:测试
我正在使用Foscam FI9805W.在此网站上可以进行连接,但无济于事( http://www.ispyconnect.com /man.aspx?n=foscam )
I am using a Foscam FI9805W. On this website are possible ways to connect but nothings works (http://www.ispyconnect.com/man.aspx?n=foscam)
我只能通过VLC Player和rtsp://test:test@192.168.1.76:88/videoMain连接.
I only can connect via VLC Player and the rtsp://test:test@192.168.1.76:88/videoMain.
有人知道我在做什么错吗,或者可以提示我在哪里搜索?我没主意了. 还是有人知道用Java访问RTSP流的更好方法吗?
Does anyone know what I am doing wrong or could give me a hint where to search? I'm out of ideas. Or does anyone know a better way to access a RTSP stream with java?
谢谢
推荐答案
我用vlcj解决了该问题
I solved it with vlcj
代码是从这里: http://capricasoftware.co.uk/#/projects/vlcj/tutorial /direct-rendering
这篇关于Foscam FI9805W的Java openCV 3.0 VideoCapture rtsp流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!