I know this could be the 100th question of this kind, but I dug up google and everything, and I could not find anything working.
I need to get an RTSP stream with opencv in python, and I'm out of ideas.
Here's what I tried so far:
- Tried to stream with
ffserverandffmpegbut even when I got it working, I could see the stream only in the browser with very high latency, and not working inopencv - Tried to stream directly to
udpwithffmpegbut again, no luck - Tried this script, but all I got was corrupted and unusable images.
Any ideas? I'm running on Mac OSX Sierra, I have compiled OpenCV 3.2.0 with ffmpeg support and I'm using Python 2.7.
My cam is a Sricam SP09 and my RTSP url is the following:
rtsp://973704:[email protected]:554/onvif1
cap=cv2.VideoCapture("rtsp://link_here"). But if it wasn't good onffserver, it seems like your stream doesn't work quite well.opencvdoes not behave quite well with thertspprotocol, hence the need to useffserver. I'm convinced that I'm doing something wrong withffserver, because often I cannot see the stream on my browser too :/