This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Find Videostream URl

0

HI I have a chinese ip cam with no software or manual I can view the stream and make changes to settings from ie browser (only) by typing the ip address of the cam. I want to setup the camera to a surveillance program like ispy or genius vision. But i dont know the url of the stream. Can anybody help in identifying the Video stream url for the camera? I dont know which protocol is being used.It is supposed to use onvif and http protocols, but not sure. Only i can say is that the compression type is H.264

asked 18 Nov '16, 11:48

suhail500's gravatar image

suhail500
6112
accept rate: 0%


One Answer:

0

By typing only the camera's IP (ca.me.ra.ip) into the browser window, you tell the browser to send a HTTP GET to url "http://ca.me.ra.ip:80". The camera then provides a html document which contains some text and layout and also the url of the video stream as I assume that it opens as a moving picture on the page. So you can either ask your browser to show you the original html received from the camera (in Mozilla Firefox, use Ctrl+U to open it in a new tab) and then look for the url of the video stream in it, or you can use Wireshark to capture your PC's communication with the camera, open the camera's main page again, and see what further http requests your PC sends after the first GET, or to what port(s) it establishes another TCP session (to see the latter, apply a display filter ip.dst == ca.me.ra.ip and tcp.flags.syn == 1 and tcp.flags.ack == 0). The camera may make analysis of http requests using Wireshark complex if it uses https and/or if it uses an exotic port for the video server, so I'd definitely start by analysing the html of the main page.

answered 19 Nov '16, 00:36

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%

Hi Sandy Tkhs 4 the message. Tried the mozilla method , dont know what to make from it. Pasting the code that i got from cntrl+U page. Pls giv ur comments

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login</title>
<script type="text/javascript" src="m.jsp"></script>
<script type="text/javascript" src="config.js"></script>

<script type="text/javascript"> var gHashCookie = new Hash.Cookie('NetSuveillanceWebCookie',{duration: 30}); var settings = { username:'' } function savesetting() {

gHashCookie.extend(settings);

} var iLanguage=100; function resizeL(){

                $(&#39;username&#39;).setStyle(&#39;width&#39;,InputName.width);
               $(&#39;username&#39;).setStyle(&#39;height&#39;,InputName.height);   
               $(&#39;username&#39;).setStyle(&#39;margin-top&#39;,InputName.marginTop);                                          
               $(&#39;username&#39;).setStyle(&#39;margin-right&#39;,InputName.marginRight);
               $(&#39;userNameInput&#39;).setStyle(&#39;margin-top&#39;,SpanLoginName.marginTop);       
               $(&#39;password&#39;).setStyle(&#39;width&#39;,InputPassword.width);
               $(&#39;password&#39;).setStyle(&#39;height&#39;,InputPassword.height);
               $(&#39;password&#39;).setStyle(&#39;margin-top&#39;,InputPassword.marginTop);
               $(&#39;password&#39;).setStyle(&#39;margin-right&#39;,InputPassword.marginRight);                   
               $(&#39;loginBT&#39;).setStyle(&#39;width&#39;,LoginButton.width);
               $(&#39;loginBT&#39;).setStyle(&#39;height&#39;,LoginButton.height);                    

               if(1==LogoNumbers)
               {
                   $(&quot;logo1&quot;).setStyle(&#39;background&#39;,&#39;none&#39;);
               }  

                wwidth =document.documentElement.clientWidth;
                wheight=document.documentElement.clientHeight;
                $(&#39;login&#39;).setStyle(&#39;width&#39;,wwidth);

               $(&#39;lm&#39;).setStyle(&#39;width&#39;,wwidth);

                if(wwidth&lt;=417)
                {
                    $(&#39;lmll&#39;).style.width=0;
                    $(&#39;lmrr&#39;).style.width=0;
                    $(&#39;lml&#39;).style.width=0;
                    $(&#39;lmr&#39;).style.widht=0;
                    $(&#39;lmm&#39;).setStyle(&#39;width&#39;,wwidth);

                    $(&#39;ldl&#39;).setStyle(&#39;width&#39;,0)
                    $(&#39;ldm&#39;).setStyle(&#39;width&#39;,wwidth);
                    $(&#39;ldr&#39;).setStyle(&#39;width&#39;,0)
                }
                else if(wwidth&lt;=1127)
               {
                    $(&#39;lmll&#39;).style.width=0;
                    $(&#39;lmrr&#39;).style.width=0;                          
                    $(&#39;lml&#39;).setStyle(&#39;width&#39;,(wwidth-417)/2+(355-(wwidth-417)/2));
                    $(&#39;lml&#39;).setStyle(&#39;margin-left&#39;,-(355-(wwidth-417)/2));
                    $(&#39;lmr&#39;).setStyle(&#39;width&#39;,(wwidth-417)/2);
                    $(&#39;lmm&#39;).setStyle(&#39;width&#39;,417);

                    $(&#39;ldl&#39;).setStyle(&#39;width&#39;,((wwidth-417)/2)-1)
                    $(&#39;ldm&#39;).setStyle(&#39;width&#39;,417);
                    $(&#39;ldr&#39;).setStyle(&#39;width&#39;,(wwidth-(417+(wwidth-417)/2-1)));

                }
                else
                {        

                   $(&#39;lml&#39;).setStyle(&#39;margin-left&#39;,0);

                   $(&#39;lml&#39;).setStyle(&#39;width&#39;,355);                       
                   $(&#39;lmr&#39;).setStyle(&#39;width&#39;,355);
                   $(&#39;lmm&#39;).setStyle(&#39;width&#39;,417);                       

                   $(&#39;ldm&#39;).setStyle(&#39;width&#39;,417);
                   var w=(wwidth-(417+355+355))/2;
                   $(&#39;ldl&#39;).setStyle(&#39;width&#39;,w+355);
                   $(&#39;ldr&#39;).setStyle(&#39;width&#39;,(wwidth-(417+355+w)));                   

                    $(&#39;lmll&#39;).setStyle(&#39;width&#39;,w);  
                    $(&#39;lmrr&#39;).setStyle(&#39;width&#39;,w);                             
                }

} window.addEvent('resize',function(){ resizeL(); }); window.addEvent('domready',function(){
$('userNameInput').setText(Translate.usr); $('passWordInput').setText(Translate.pswd); $('loginBT').setText(Translate.login); getsetting(); });

function getsetting(){ if (gHashCookie.get('username')) { settings['username'] = gHashCookie.get('username'); } else { settings['username'] = ''; }

$(&#39;username&#39;).setProperty(&#39;value&#39;, settings[&#39;username&#39;]); 

}

function savename() { var username = $("username").value; settings['username'] = username;
savesetting();

} </script> <style type="text/css"> *{font-size:12px;margin: 0;padding: 0; color:#fff; font-family:Arial, "ËÎÌå"} #login {top:0px;position:absolute;width:100%;height:100%;margin:0;padding:0;left:0px;} #lx{width:478px;height:186px;margin:auto; margin-top:196px} #lb{width:53px;height:186px;background:url(lbbg.jpg);float:left} #lc{width:45px;height:186px;background:url(lcbg.jpg);float:left} #la{width:380px;height:186px;background:url(labg.jpg);float:left} #lal{width:8px; height:186px;float:left;background:url(lal.jpg)} #lar{width:24px;height:186px;float:right; background:url(lar.jpg)} #lalogo{width:251px;height:37px;position:relative;top:20px;left:11px;background:url(lalogo.jpg)} #lainput{width:253px;height:70px;float:left;margin:35px 0 0 5px;} #lainput div{width:250px;float:left;margin:5px 0 0 0;text-align:right} #lainput span{margin:0 6px 0 0} #lainput input{width:130px; height:18px;padding:3px 0 0 0} #lainput select{width:133px; height:18px;} #labt {width:10px;height:10px;float:left;margin:72px 0 0 0}
</style> </head> <body>

                    &lt;form action=&quot;&quot; id=&quot;pass-login-form&quot; name=&quot;pass-login-form&quot; method=&quot;post&quot;&gt;
                      &lt;input type=&quot;hidden&quot; name=&quot;command&quot; value=&quot;login&quot;/&gt;
                    
                    &lt;input id=&quot;username&quot; name=&quot;username&quot; type=&quot;text&quot; style=&quot;color: #000; font-size: 15px; 
                            margin: 0 120px 0 0; padding: 0px 0 0 0px; width: 133px; height: 25px;float:right;&quot; onkeydown=&quot;javascript:if (event.keyCode==13) event.keyCode=9;&quot;/&gt;
                        

                    
                    
                    &lt;input id=&quot;password&quot; name=&quot;password&quot; type=&quot;password&quot; style=&quot;color: #000; font-size: 15px; 
                            margin: 0 120px 0 0; padding: 0px 0 0 0px; width: 133px; height: 25px;float:right;&quot; onkeydown=&quot;javascript:if (event.keyCode==13) savename();&quot;/&gt;
                        
                        

                    
                    
                        &lt;button id=&quot;loginBT&quot; type=&quot;submit&quot; onclick=&quot;savename()&quot; style=&quot;cursor: pointer;margin:25px 0 0 0;color: #000; width: 88px; height: 28px;
                            padding: 4px 0 0 0; border: 0; background: url(bt.gif)&quot;&gt;
                        &lt;/button&gt;
                    
                    &lt;/form&gt;
                  
                               
            
              
            

        
        
        
        
        
    
    
        
        
        
        
        
        
        
        
            


&lt;script type=&quot;text/javascript&quot;&gt;
        resizeL();

// var lang=(navigator.userLanguage||navigator.language).toLowerCase(); // if(lang=="zh-cn") // { // // $("userNameInput").setText("Óû§Ãû"); // $("passWordInput").setText("ÃÜÂë"); // $("loginBT").setText("µÇ¼"); // // } switch(iLanguage) { case 100: { document.write("<script src="English.js"></script>"); break; } case 101: {

            document.write(&quot;&lt;script src=&quot;SimpChinese.js&quot;&gt;&lt;\/script&gt;&quot;);
            break;
        }
        default:
        {        
            document.write(&quot;&lt;script src=&quot;English.js&quot;&gt;&lt;\/script&gt;&quot;);
        }

    }            

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre></div><div id="comment-57552-info" class="comment-info"><span class="comment-age">(22 Nov '16, 10:06)</span> <span class="comment-user userinfo">suhail500</span></div></div></div><div id="comment-tools-57460" class="comment-tools"></div><div class="clear"></div><div id="comment-57460-form-container" class="comment-form-container"></div><div class="clear"></div></div></td></tr></tbody></table>