PLEASE NOTE: The Samsung Developer Community forums are being replaced by a newer forum site based on the popular Discourse platform. The new Discourse forums are available today at forum.developer.samsung.com and are monitored by the same Samsung support team that is here on Community. You will need to use your Samsung account to log into the new forums.

In the next few weeks, we will update the Community site to no longer accept new discussion topics. Several weeks later, no new replies will be allowed on Community. We will keep the Community forums available for some time, but eventually this site will no longer be available. We suggest that you save any information from this site that you find valuable.

Thank you for your support of the Samsung Developer Community. We're looking forward to seeing you at the new Discourse forums.

Subscription preference

Notification emails are sent to your Samsung account email address.

* Email : anonymous@samsung.com

  

Close

Web API for Smart Cam SNH-E6411BN

Forums View
Started by Newbie williamkh**** , 450 Seed Jan 07, 2015 06:34 Replies : 21 View : 41008 Likes : 2
Hi,

I'm using Smart Cam SNH-E6411BN to implement following features in my web app:

- Show video live streaming from the camera in my web app (embed video into a web page)
- Camera will automatically capture photo if facial image is detected

I've tried to look for documents about web api for this smart camera but haven't found any.

I also know that I can access video from that camera online using this URL: 
http://IPAddress_Of_Smart_Cam/pages/page_video_live.php?login=true

However, I don't know what options I could try with that web interface. Please could you provide me Web API documentation or any guides to implement what I want.

Regards,
Ken
Post Reply
Board View
Samsung Developer coolx**** , 32950 Seed Jan 07, 2015 10:05 Post #1 0

Hi , 

Refer to below document
http://html5hub.com/using-the-getusermedia-api-with-the-html5-video-and-canvas-elements/

http://www.iandevlin.com/blog/2012/06/html5/filtering-a-webcam-using-getusermedia-and-html5-canvas

For camera controls you can also refer this link
https://developer.mozilla.org/en-US/docs/Web/API/CameraControl

Post Reply
Board View
Newbie williamkh**** , 450 Seed Jan 08, 2015 02:28 Post #2 1
Hi,

Thank you so much for your references. However, it seems not exactly the API I need.

Those links mention a lot about getUserMedia which I think will work with local WebCam (attached directly to PC). 

However, the SmartCam I'm using is connected to PC via network (router, internet), so I need API that allows PC to establish connection to camera using IP Address, camera name and password.

Please could you provide me such API to work with SNH-E6411BN.
Post Reply
Board View
Samsung Developer coolx**** , 32950 Seed Jan 12, 2015 12:29 Post #3 0


This content has been quoted from williamkhoa84’s thought.

Hi,

Thank you so much for your references. However, it seems not exactly the API I need.

Those links mention a lot about getUserMedia which I think will work with local WebCam (attached directly to PC). 

However, the SmartCam I’m using is connected to PC via network (router, internet), so I need API that allows PC to establish connection to camera using IP Address, camera name and password.

Please could you provide me such API to work with SNH-E6411BN.

HI , 

You can write to the  support team . 
https://www.samsungsmartcam.com/web/cmm/05_ST/Main.do
Post Reply
Board View
Newbie gpr**** , 440 Seed May 13, 2015 06:19 Post #4 0
Support at www.samsungsmartcam.com or on the phone with Techwin has been useless at best. Their only response is that this camera can only be used with the Samsung Web and Mobile Apps. This of course is not correct.
I am able to use the H.264 stream via this url rtsp://admin:<password>@192.168.1.38/profile5/media.smp
However I have not been able to find the correct url for the MJPEG stream

Could you please help provide that? 

Thank you.

Giorgio Pranzo

This content has been quoted from coolxyznj’s thought.


 

This content has been quoted from williamkhoa84’s thought.

Hi,

Thank you so much for your references. However, it seems not exactly the API I need.

Those links mention a lot about getUserMedia which I think will work with local WebCam (attached directly to PC). 

However, the SmartCam I’m using is connected to PC via network (router, internet), so I need API that allows PC to establish connection to camera using IP Address, camera name and password.

Please could you provide me such API to work with SNH-E6411BN.

HI , 

You can write to the  support team . 
https://www.samsungsmartcam.com/web/cmm/05_ST/Main.do

 


Post Reply
Board View
Newbie gpr**** , 440 Seed May 14, 2015 00:45 Post #5 0
Hello William, did you ever get an answer on this?
I am also looking for the correct url for accessing the MJPEG live stream of this camera.

Thanks,

Giorgio

This content has been quoted from williamkhoa84’s thought.

Hi,

Thank you so much for your references. However, it seems not exactly the API I need.

Those links mention a lot about getUserMedia which I think will work with local WebCam (attached directly to PC). 

However, the SmartCam I’m using is connected to PC via network (router, internet), so I need API that allows PC to establish connection to camera using IP Address, camera name and password.

Please could you provide me such API to work with SNH-E6411BN.


Post Reply
Board View
Newbie williamkh**** , 450 Seed May 14, 2015 00:59 Post #6 0
Hi gpranzo,

Below is the way I show video stream from the camera on my asp.net web page, you also have to download and install the WebViewer plug-in from Samsung website.

<%@ Page Language="c#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="video_live_webviewer.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var res = Webviewer.init({
width: 506,
height: 380,
type: '1',
conn: 'TRUE'
});

res = Webviewer.play({
ip: "192.168.15.116",
privateKey: "12345678",
camId: "admin"
});

});
</script>

<title></title>
</head>
<body scroll="no" style="margin: 0;padding: 0">
<div id="player_area">
<div id="content">
<OBJECT width="506" height="380" id="plugin" classid="CLSID:1F66540A-4FBA-4FCA-81A7-3EEA6FA3D358"></OBJECT>
</div>
<!--<input type="button" value="Take Photo" onclick="javascript:takePicture();"/>
<input type="text" id="camStatus"/>
<input type="button" value="CheckStatus" onclick="javascript:checkStatus();"/>-->
</div>
</body>
</html>

Post Reply
Board View
Newbie gpr**** , 440 Seed May 18, 2015 22:57 Post #7 0
Thanks William.
Interesting, I am not a coder but from what I can see you are basically embedding the Samsung portal stream into your web page?
I am probably completely wrong but do not see a reference accessing directly the camera built-in server interface.

Correct? In which case it does not help me as I do not want to rely on Internet connectivity for capturing the video stream. Also home security sw like iSpy cannot use 3rd party viewers as far as I can tell.

Thanks again for your answer!

Giorgio


This content has been quoted from williamkhoa84’s thought.

Hi gpranzo,

Below is the way I show video stream from the camera on my asp.net web page, you also have to download and install the WebViewer plug-in from Samsung website.

<%@ Page Language="c#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="video_live_webviewer.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var res = Webviewer.init({
width: 506,
height: 380,
type: ’1’,
conn: ’TRUE’
});

res = Webviewer.play({
ip: "192.168.15.116",
privateKey: "12345678",
camId: "admin"
});

});
</script>

<title></title>
</head>
<body scroll="no" style="margin: 0;padding: 0">
<div id="player_area">
<div id="content">
<OBJECT width="506" height="380" id="plugin" classid="CLSID:1F66540A-4FBA-4FCA-81A7-3EEA6FA3D358"></OBJECT>
</div>
<!--<input type="button" value="Take Photo" onclick="javascript:takePicture();"/>
<input type="text" id="camStatus"/>
<input type="button" value="CheckStatus" onclick="javascript:checkStatus();"/>-->
</div>
</body>
</html>
 


Post Reply
Board View
Newbie me , 230 Seed Jun 23, 2015 21:53 Post #8 1
                                     HI, I just found this works

jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg
mjpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg

this is going to be a full hd picture. I'm still looking how to switch to different streaming profiles for medium resolution.
Hope this helps
ub


This content has been quoted from gpranzo’s thought.

Thanks William.
Interesting, I am not a coder but from what I can see you are basically embedding the Samsung portal stream into your web page?
I am probably completely wrong but do not see a reference accessing directly the camera built-in server interface.

Correct? In which case it does not help me as I do not want to rely on Internet connectivity for capturing the video stream. Also home security sw like iSpy cannot use 3rd party viewers as far as I can tell.

Thanks again for your answer!

Giorgio

 

This content has been quoted from williamkhoa84’s thought.

Hi gpranzo,

Below is the way I show video stream from the camera on my asp.net web page, you also have to download and install the WebViewer plug-in from Samsung website.

<%@ Page Language="c#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript" src="video_live_webviewer.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                var res = Webviewer.init({
                    width: 506,
                    height: 380,
                    type: ’1’,
                    conn: ’TRUE’
                });

                res = Webviewer.play({
                    ip: "192.168.15.116",
                    privateKey: "12345678",
                    camId: "admin"
                });

            });
        </script>

        <title></title>
    </head>
<body scroll="no" style="margin: 0;padding: 0">
    <div id="player_area">
        <div id="content">
            <OBJECT width="506" height="380" id="plugin" classid="CLSID:1F66540A-4FBA-4FCA-81A7-3EEA6FA3D358"></OBJECT>
        </div>
        <!--<input type="button" value="Take Photo" onclick="javascript:takePicture();"/>
        <input type="text" id="camStatus"/>
        <input type="button" value="CheckStatus" onclick="javascript:checkStatus();"/>-->
    </div>
</body>
</html>
 


 


                                     
Post Reply
Board View
Newbie christian.heck**** , 210 Seed Jul 30, 2015 08:54 Post #9 0
                                                        Hi there,

this worked for me for a SNB-6004:
jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg&resolution=5 
to receive a resolution of 800px*600px.

Also, compression seems to work adding "&compression=<any number>"

Hope this helps,
kind regards,
chh

This content has been quoted from me’s thought.

                                     HI, I just found this works

jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg
mjpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg

this is going to be a full hd picture. I’m still looking how to switch to different streaming profiles for medium resolution.
Hope this helps
ub

                                      


Post Reply
Board View
Newbie hu**** , 220 Seed Sep 14, 2015 02:19 Post #10 0
                                                        Those URLs work great. Any idea what a URL might be for H.264?
                                      
Post Reply
Board View
Newbie warrenkmo**** , 210 Seed Sep 24, 2015 18:41 Post #11 0

When I attempt to access the camera with these types of urls I am prompted for a username/password (appears to be htaccess). The login popup also has: "Server says: iPolis". The Admin section for the camera only has the ability to change the passphrase for the camera. Any idea on how to either get a valid login or bypass the authentication?

This content has been quoted from christian.heckhoff’s thought.

                                                        Hi there,

this worked for me for a SNB-6004:
jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg&resolution=5 
to receive a resolution of 800px*600px.

Also, compression seems to work adding "&compression=<any number>"

Hope this helps,
kind regards,
chh
 

This content has been quoted from me’s thought.

                                     HI, I just found this works

jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg
mjpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg

this is going to be a full hd picture. I’m still looking how to switch to different streaming profiles for medium resolution.
Hope this helps
ub

                                      


 


Post Reply
Board View
Newbie jonas.**** , 320 Seed Nov 18, 2015 21:28 Post #12 0
Hey Guys,

I have probably the same problem. Is there any way to set the username/security key (password) in the URL, so you don't have to manually type everytime username/password?
Please help!




This content has been quoted from warrenkmonroe’s thought.


When I attempt to access the camera with these types of urls I am prompted for a username/password (appears to be htaccess). The login popup also has: "Server says: iPolis". The Admin section for the camera only has the ability to change the passphrase for the camera. Any idea on how to either get a valid login or bypass the authentication?
 

This content has been quoted from christian.heckhoff’s thought.

                                                        Hi there,

this worked for me for a SNB-6004:
jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg&resolution=5 
to receive a resolution of 800px*600px.

Also, compression seems to work adding "&compression=<any number>"

Hope this helps,
kind regards,
chh
 

This content has been quoted from me’s thought.

                                     HI, I just found this works

jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg
mjpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg

this is going to be a full hd picture. I’m still looking how to switch to different streaming profiles for medium resolution.
Hope this helps
ub

                                      


 


 


Post Reply
Board View
Newbie adg**** , 210 Seed Dec 22, 2015 11:24 Post #13 0
Hi all,

If you need to pass through username / password details in the url directly (as i do to use SmartTiles within SmartThings eco system) you can just add your username and password like this

USERNAME:PASSWORD@IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg  (replace anything in caps with the relevent detail - no quotes / brackets etc required)

eg where:

username = admin
password = samsung
ipaddress = 192.168.1.123

you would use the following      admin:samsung@192.168.1.123/cgi-bin/video.cgi?msubmenu=mjpg

Working fine for me - HTH.

Ant

This content has been quoted from jonas.veit’s thought.

Hey Guys,

I have probably the same problem. Is there any way to set the username/security key (password) in the URL, so you don’t have to manually type everytime username/password?
Please help!



 

This content has been quoted from warrenkmonroe’s thought.


When I attempt to access the camera with these types of urls I am prompted for a username/password (appears to be htaccess). The login popup also has: "Server says: iPolis". The Admin section for the camera only has the ability to change the passphrase for the camera. Any idea on how to either get a valid login or bypass the authentication?
 

This content has been quoted from christian.heckhoff’s thought.

                                                        Hi there,

this worked for me for a SNB-6004:
jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg&resolution=5 
to receive a resolution of 800px*600px.

Also, compression seems to work adding "&compression=<any number>"

Hope this helps,
kind regards,
chh
 

This content has been quoted from me’s thought.

                                     HI, I just found this works

jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg
mjpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg

this is going to be a full hd picture. I’m still looking how to switch to different streaming profiles for medium resolution.
Hope this helps
ub

                                      


 


 


 


Post Reply
Board View
Newbie jonas.**** , 320 Seed Jan 08, 2016 11:22 Post #14 0
This URL doesn't work for me. There's allways a popup which asks me to fill in username and password. Is there any other suggestion? I'm using a SmartCam Home HD (SNH-E6411BN). My project is to access the camera stream (e.g. MJPEG) with the possibility to take a picture and save this into a database. The problem is, I can't use Samsung's backend because of their own plugin which is needed to start the camera stream. Additionally I have the following problem, too: I don't know if the username "admin" is correct, because i didn't create a username. I can't access the camera stream because either the username or the password is wrong. The password can't be wrong, because i know which password I created ;-) Sorry for my bad english, but i really need help :D


Post Reply
Board View
Newbie st**** , 220 Seed Jan 31, 2016 02:15 Post #15 0
Hi I'm trying to use this api /cgi-bin/search.cgi?msubmenu=motion&date=20160130 to get a list of motion detection events, but all I get is 'NG'

what am I doing wrong here?

my cam is SNH-E6411BN
This content has been quoted from adgwill’s thought.

Hi all,

If you need to pass through username / password details in the url directly (as i do to use SmartTiles within SmartThings eco system) you can just add your username and password like this

USERNAME:PASSWORD@IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg  (replace anything in caps with the relevent detail - no quotes / brackets etc required)

eg where:

username = admin
password = samsung
ipaddress = 192.168.1.123

you would use the following      admin:samsung@192.168.1.123/cgi-bin/video.cgi?msubmenu=mjpg

Working fine for me - HTH.

Ant
 

This content has been quoted from jonas.veit’s thought.

Hey Guys,

I have probably the same problem. Is there any way to set the username/security key (password) in the URL, so you don’t have to manually type everytime username/password?
Please help!



 

This content has been quoted from warrenkmonroe’s thought.


When I attempt to access the camera with these types of urls I am prompted for a username/password (appears to be htaccess). The login popup also has: "Server says: iPolis". The Admin section for the camera only has the ability to change the passphrase for the camera. Any idea on how to either get a valid login or bypass the authentication?
 

This content has been quoted from christian.heckhoff’s thought.

                                                        Hi there,

this worked for me for a SNB-6004:
jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg&resolution=5 
to receive a resolution of 800px*600px.

Also, compression seems to work adding "&compression=<any number>"

Hope this helps,
kind regards,
chh
 

This content has been quoted from me’s thought.

                                     HI, I just found this works

jpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=jpg
mjpeg http://IPADDRESS/cgi-bin/video.cgi?msubmenu=mjpg

this is going to be a full hd picture. I’m still looking how to switch to different streaming profiles for medium resolution.
Hope this helps
ub

                                      


 


 


 


 


Post Reply
Board View
Newbie fre**** , 220 Seed Apr 22, 2016 19:00 Post #16 0
Hello,

I have the same problem. Did you find a solution to bypass the popup ? Did you change the url ?

Best regards
Fred

This content has been quoted from jonas.veit’s thought.

This URL doesn’t work for me. There’s allways a popup which asks me to fill in username and password. Is there any other suggestion? I’m using a SmartCam Home HD (SNH-E6411BN). My project is to access the camera stream (e.g. MJPEG) with the possibility to take a picture and save this into a database. The problem is, I can’t use Samsung’s backend because of their own plugin which is needed to start the camera stream. Additionally I have the following problem, too: I don’t know if the username "admin" is correct, because i didn’t create a username. I can’t access the camera stream because either the username or the password is wrong. The password can’t be wrong, because i know which password I created ;-) Sorry for my bad english, but i really need help :D

 



Post Reply
Board View
Newbie snif**** , 210 Seed Jul 06, 2016 21:43 Post #17 0
Hi there 

I would like to connect to my Network Camera (SNO-L6013R) over the Internet to integrate it in a homepage ( jpg or mjpg)
I am able to connect to the camera over the usual admin interface and with my synology discstation 



But if I trie to get an live image from  the cam I just get the answer NG
I tried several connections variants like

http://admin:PASSWORD@IPADRESS/cgi-bin/video.cgi?msubmenu=mjpg


http://IPADRESS/cgi-bin/video.cgi?msubmenu=jpg&resolution=5

http://IPADRESS/cgi-bin/video.cgi?msubmenu=jpg

http://IPADRESS/cgi-bin/video.cgi?msubmenu=mjpg

Do you have any idea ? Or do I have to activate something in the camera settings or do I have to forward some special ports ? 







Post Reply
Board View
Newbie nad**** , 220 Seed Aug 14, 2016 22:43 Post #18 0
Anyone get any URL working forE6411BN?  I am not able to depsite the great information posted in this thread so far.  Just get 404 errors :-(....
Post Reply
Board View
Newbie tamir.a**** , 220 Seed Aug 22, 2016 15:34 Post #19 0
I have smartcam model SNH-P6410BN firmware: 1.07_151126.

Using the URL in the format   http://admin:<pass>@<ip-address>/cgi-bin/video.cgi?msubmenu=mjpg    
does not work for me.

Can you share your camera model and firmware?

I got this information with: http://<ip-address>/information  (on chrome, IE did not work).

Thanks in advance,
   Tamir.
Post Reply
Board View
Newbie rajbe**** , 610 Seed Feb 17, 2018 09:04 Post #20 0
Thanks for the script, its woking for me and i have used it thanks.

jenny slate
Post Reply
Board View
Newbie taarara**** , 410 Seed Feb 17, 2018 09:20 Post #21 0
Thanks for your information about this. Plagiarism Checker
Post Reply