Previous topicNext topic

Local IP Camera into VideoStream module ?

Questions, comments, feedback, etc.
Post Reply
Slavi
Posts: 54
Joined: Thu Mar 31, 2016 7:15 am

Local IP Camera into VideoStream module ?

Post by Slavi »

Hello Beloved Magic Fans!

I have purchased the following IP Webcam:
https://www.aliexpress.com/snapshot/0.h ... 2618093586

From my browser I am able to access the camera:
1.png
1.png (147.11 KiB) Viewed 14084 times
However, before seing the camera output I have to first input the default username & pass (admin/123456).

My camera set up:
IP - 192.168.0.2
Http Port - 80
RTSP Port - 554
2.png
2.png (43.69 KiB) Viewed 14084 times

I have tried multiple ways to import the camera view into Magic's VideoStream module:
rtsp://192.168.0.2
rtsp://192.168.0.2:554
rtsp://admin:123456@192.168.0.2
rtsp://admin:123456@192.168.0.2:554

http://192.168.0.2
http://192.168.0.2:80
http://admin:123456@192.168.0.2
http://admin:123456@192.168.0.2:80

However none of them work.

I have no idea what UPnP is/does, but according to some info it said it should be enabled both and the camera and the routed, so I did it:
3.png
3.png (35.38 KiB) Viewed 14083 times
I have tried to remove all possible authentication when accessing the IP Camera, but unfortunatelly the firmware doesn't allow that.

I tried to follow this tutorial:
https://www.youtube.com/watch?v=_Ic_3TLnDoc

And use it with local IP, but I have no idea from where I can find/set up this info is:
rtsp://192.168.0.2:554/primary/h264

Is there a way to specify the log in username & pass in the VideoStream module ?

Can anyone give me an advise on how I can import the local IP camera view into Magic ? :?:

Thank you for your time! :roll:
blackdot
Posts: 528
Joined: Sun Jul 06, 2014 10:18 pm

Re: Local IP Camera into VideoStream module ?

Post by blackdot »

have you tried opening just the video frame in a new tab to see what its address is?

for me it was something like http://192.168.0.1:80/video.
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: Local IP Camera into VideoStream module ?

Post by Magic »

I have tried to remove all possible authentication when accessing the IP Camera, but unfortunatelly the firmware doesn't allow that.
Are you sure that you can't disable the security settings on your camera? If you are only running the camera on your local network, there is no need to have any security settings anyway.
have you tried opening just the video frame in a new tab to see what its address is?
What @blackdot said is exactly right -- you should right-click on the video in your browser, and get the direct URL for it. You don't want the URL of the camera's web page.

For example, here is a screenshot of my browser:
browser.jpg
browser.jpg (171.18 KiB) Viewed 14069 times
The URL of the web page is http://192.168.0.103:4747, but if you look at the HTML img element, you will see that it needs /mjpegfeed?640x480 appended.

So in Magic, it will only work if you type it like that:
magic.jpg
magic.jpg (43.99 KiB) Viewed 14069 times
Does that help?
Slavi
Posts: 54
Joined: Thu Mar 31, 2016 7:15 am

Re: Local IP Camera into VideoStream module ?

Post by Slavi »

Hi and thank you for your attention!

After some digging here is what I have and consider a:

Tutorial on how to input any Local IP Camera into Magic Visuals as VideoStream! ;)
Your IP camera has to support: Real Time Streaming Protocol (RTSP) and ONVIF (some industry standard sh*t :D )
1. Install ONVIF Device Manager (https://sourceforge.net/projects/onvifdm/ ) . This neat software will give you all of the "insights" IP camera data you need!

Next comes the "tricky" part where you have to find out what is the unique path for the video stream URL of your IP Camera (which is different for each manufacturer).

2. Log In --> Video Stream --> Look for the URL on the bottom:
1.png
1.png (636.17 KiB) Viewed 14059 times
rtsp://192.168.0.2:554/live/ch0

Now, if your camera did not require any log in credentials you are good to go. In my case, this is impossible, so when placing the URL in the VideoStream module in Magic, you will need to give your IP Camera log in credentials like this:

3. Provide your log in credentials in the URL like this - rtsp://admin:123456@192.168.0.2:554/live/ch0

VOILA!
2.png
2.png (303.61 KiB) Viewed 14059 times
8-) 8-) 8-)
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: Local IP Camera into VideoStream module ?

Post by Magic »

Your IP camera has to support: Real Time Streaming Protocol (RTSP) and ONVIF (some industry standard sh*t :D )
Those things aren't necessarily required; it all depends on which camera you have. But I'm glad you got it to work :)
Post Reply