[英]OpenCV IP Camera RTSP stream
I'm trying to access a RTSP video stream from an IP camera using OpenCV and Java. 我正在尝试使用OpenCV和Java从IP摄像机访问RTSP视频流。 I can access the stream using VLC player with the following format:
rtsp://192.168.1.10:554/rtsp_live0
but when I try to use OpenCV the video stream seems to always be closed. 我可以使用以下格式的VLC播放器访问该流:
rtsp://192.168.1.10:554/rtsp_live0
但是当我尝试使用OpenCV时,视频流似乎总是关闭。
The code I'm using... (simplified) 我正在使用的代码...(简体)
VideoCapture capture = new VideoCapture();
capture.open("rtsp://192.168.1.10:554/rtsp_live0");
while(!capture.isOpened())
System.out.print("Not opened :( \r");
I have a Mustcam H806P and found the stream URI from this website: http://www.ispyconnect.com/man.aspx?n=ipcamera 我有一个Mustcam H806P,并从以下网站找到了流URI: http ://www.ispyconnect.com/man.aspx?n=ipcamera
What am I doing wrong? 我究竟做错了什么?
I'm reporting Alexander Smorkalov answer on answers.opencv.org 我要检举亚历山大Smorkalov 答案上answers.opencv.org
OpenCV uses ffmpeg library for video I/O.
OpenCV使用ffmpeg库进行视频I / O。 Try to get video stream with console ffmpeg tool.
尝试使用控制台ffmpeg工具获取视频流。 The address must be the same.
地址必须相同。
See also here OpenCV - how to capture rtsp video stream 另请参见此处OpenCV-如何捕获rtsp视频流
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.