wansview ip camera stream url for openCV - opencv

I have just bought an wansview IP camera model NCM630GB. I am able to play it video stream in browser but i am not able to open its in open CV using video capture object. I have tried different solution already present on stack overflow but the actual problem is getting url of video stream. Can anybody tell what is the videostream url of wansview IP camera or any method to find it.

According to their documentation (page 22), the url should be:
http://IP address:port/videostream.asf?user=user name&pwd=password
Try it with VLC to see if you can get the stream. If succeed, then in OpenCV, append x.mjpg to the url, like this:
http://IP address:port/videostream.asf?user=user
name&pwd=password?x.mjpg

Related

I want the url of Motion WebCam Streaming Server to be changed

I'm streaming video with Raspberry Pi, webcam and Motion
One thing I want to do is change the format of the url where the streaming plays
It was originally 192.168.0.1:8081 -> 192.168.0.1:8081/?aaa I want to change it to get format
If there's a way to change it in the Motion.conf file or another way, please let me know

Opening RTSP stream with OpenCV (Python) from outside local network

I purchased an IP camera, and I was planning to use its video stream as input for OpenCV (with Python) to run some machine learning algorithms on the video frames.
I opened port 554 for RTSP on my router, and now I'm trying to access the stream by using (11 identifies the main video stream):
cap = cv2.VideoCapture("rtsp://user_name:password#camera_IP:554/11")
while(True):
ret, frame = cap.read()
...
It works without any problems from within the local network, but not from outside...in this case, frame is returned as a 'NoneType' object.
In the camera settings, ports 80 and 1935 are indicated for HTTP and RTMP, respectively. I tried to use them as well, but without any success.
If I simply open the camera IP in a browser, I get to the configuration page, and there I have the possibility to watch the live stream. It's embedded in a Flash object, and I'm trying to figure out if I can extract the video stream URL from it.
I viewed the page source, and there seems to be a reference to the source of the stream:
flashvars="&src=rtmp://camera_IP:1935/flash/11:YWRtaW46YWRtaW4=&amp
but I wasn't able to use it to fetch the stream in OpenCV.
Any suggestion, or should I just go for another camera?

URL Video Stream of IP Camera

I have a Teledyne Dalsa Genie Nano XL camera : connecting it to the PC it gets assigned the following IP Address: 192.168.0.20
How do I find or setup the URL Video Stream for the camera in order to access its video stream through standard opencv instruction cap=cv2.VideoCapture('url')?
Any help will be highly appreciated
I assume you are trying to stream from an IP camera via rtsp. So, you can achieve it by this line of code:
Python version:
cap = cv2.VideoCapture('rtsp://admin:admin#192.168.0.20:554/stream1 latency=0')
C++ version:
cv::VideoCapture cap("rtsp://admin:admin#192.168.0.20:554/stream1 latency=0");
Here, the first admin indicates the username used to connect to your ip camera, and the second corresponds to password. By default, rtsp connection uses 554 port, but you may refer to your camera document to double-check it.
The string :554/stream1 varies depending on your camera brand. So you should check your manual for rtsp connection string.
The parameter latency=0 means you want to stream from camera without any delay. By default, rtsp connection creates a latency for buffer (something like 2-5 seconds), and this leads to some delay from actual content.

Nest Camera Stream / Dropcam to OpenCV

I was wondering if there is a way to use the web_url function available from the nest camera, which returns an embedded flash video of the camera stream, to download the video into a buffer, from which I could do any analytics upon with OpenCV, e.g. face detection.
I don't know if saving the video from the embedded flash into a buffer is the way to go (how would I do this?); or if there's some way to access the stream from openCV as you can do with typical IP cameras?
web_url simply gives the URL to the page on home.nest.com. The user has to be logged in. Nest Cam is not an IP camera and streams are not currently available via the API. You would need to write something to scrape the web page at home.nest.com that would be able to stay logged in.

embedding live ip camera feed into webpage

i am trying to set up a few ip cameras for a client.
yet i am having trouble getting the stream from the camera to the webpage then for it to play through a player. i have tried different players such as WMP, VLC(cant get it to work). i am now trying to use jplayer which would be great if i could get it to work on this one as works for phones or so it says.
what i have done so far is to go into my router(thomson TG585 v8) and set up port forwarding.
i have set up port 554 on TCP/UDP which in the camera settings is the RTSP port.
i have set my camera to a static ip and am using no-ip for the ddns.
rtsp://thepolishedknob.servebeer.com/h264/1/media.amp
this is the url i am trying to use but i cannot get the stream on to the player i know the stream works outside my LAN as connected to it through VLC last night.
if anyone can help me it would be greatly appreciated as been working on this for over a week and been going nowhere.
so if you have noticed i have missed anything out or done something wrong please let me know.
There is no universal way to do the embedding. Typically solution is one of the following:
As IP cameras comes with web interface, they already provide some way to present video off the web page. Often, this is an ActiveX control based solution with respective browser limitations. You can check HTML and duplicate the code, and it can also be mentioned in the vendor's documentation.
As you discovered the stream is RTSP, and hopefully valid RTSP without tricks, there might be a third party solution "player" to present the stream off the webpage.
You might want to re-encode the stream into another format (VLC or another aplication), such as M-JPEG which is more browser friendly. You'll find a lot of discussions for this, e.g. http://forum.videolan.org/viewtopic.php?f=16&t=57715

Resources