Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Suitable webcams for displaying progress in the webui?

    Duet Hardware and wiring
    17
    43
    4877
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • briangilbert
      briangilbert last edited by

      Can anyone point me to info on setting a suitable webcam up for use in the web interface with Duet?

      1 Reply Last reply Reply Quote 0
      • Crash69
        Crash69 last edited by

        In case you still need this info, or for others…

        I think almost any IP based webcam should work, what you want is one that will supply a stream over HTTP. Almost all the newer IP webcams will supply an RTSP / Onvif strean but thats not what DWC uses.

        The trick is finding the right URL from your chosen ip webcam, one handy resource is the ispyconnect camera database http://www.ispyconnect.com/sources.aspx this is a list of webcams ispyconnect knows about and the working URL's for those webcams - this may or may not be up to date for any particular webcam though.

        I bought a cheap webcam from aliexpress. Initially I could only find RTSP stream info on iit so I thought was not going to work on the duet,
        Typical of cheap chinese supliers there was hardly any info on the camera but after doing a port scan (angryipscan) across ports 1-60000, I found port 81 was open and opening that from a browser I could open streams. opening the view in a new tab I could see the stream URL for this camera it was "http://192.168.0.76:81/videostream.cgi?loginuse=admin&loginpas=" where 192.168.0.76 is the address of the webcam on my local network.

        I added that url into the settings page - user interface tab - webcam integration of DWC and I set the update interval to 2s, and it works great.

        I would expect most cameras have better documentation and you can find the HTTP stream url easier than that

        I don't particularly recommend the camera I bought, its build quality is a bit ordinary and the documentation is non-existant, but it does seem to work ok, and the mobile app works quite well, and the price is hard to beat.

        This is the one I bought -
        https://www.aliexpress.com/item/SANNCE-IP-Camera-Wireless-720P-IP-Security-Camera-WiFi-IP-Security-Camera-Baby-Monitor-Security-Camera/32744537471.html?spm=2114.13010608.0.0.OzLAK3

        1 Reply Last reply Reply Quote 0
        • dc42
          dc42 administrators last edited by

          Thanks, that's very useful information. I have a Zmodo camera that I haven't managed to use with DWC. I'll try a port scan on it.

          1 Reply Last reply Reply Quote 0
          • Crash69
            Crash69 last edited by

            @dc42:

            Thanks, that's very useful information. I have a Zmodo camera that I haven't managed to use with DWC. I'll try a port scan on it.

            in addition to the ones listed in the ispyconnect database, there is a bunch or stream URL's for zmodo camera's here too that might be useful? http://www.camera-sdk.com/p_228-how-to-connect-to-your-zmodo-ip-camera-onvif.html

            Soon as you can get a stream in your browser you're good to go and add it into DWC 🙂

            1 Reply Last reply Reply Quote 0
            • crocky
              crocky last edited by

              Thanks crash69 I have one on order now…

              1 Reply Last reply Reply Quote 0
              • dc42
                dc42 administrators last edited by

                I finally got round to getting my Sannce I21AG web cam integrated with DWC. Here's the sequence I used:

                • I connected the camera to my WiFi network using the smartphone app. You select the wifi network and enter the password on the smartphone app, then it sends them as a sequence of tones through the smartphone speaker, which is picked up by the microphone on the camera.

                • After connection, I configured an admin password and also a user-mode ID and password.

                • I downloaded and ran http://www.sanncegroup.com/document/IPC/I21AD/tool/Search_tool4.2.exe. That told me the IP address and port number to use, in my case they were 192.168.1.122 and 19750. I don't know whether the port number 19750 is fixed for this model or randomised.

                • I entered this URL in DWC:

                http://192.168.1.122:19750/snapshot.cgi

                I checked "Do not append extra HTTP qualifier" (I don't know whether this matters or not).

                Firefox asked for a login ID and password, so I gave it the user-mode ID and password and told it to remember them.

                1 Reply Last reply Reply Quote 0
                • RGN01
                  RGN01 last edited by

                  Has anyone managed to get a camera to work with Chrome or Edge? On my Win 10 setup these browsers both see the stream and want to save the video stream to a file defaulting to videostream.cgi rather than display the stream.

                  I understand that Chrome used to work but an upgrade some time ago killed this functionality so I'm trying to find out what I'm missing or whether I need to get FireFox.

                  This behaviour happens both when I set the browser to access the camera stream directly and when I set the URL in DWC.

                  1 Reply Last reply Reply Quote 0
                  • dc42
                    dc42 administrators last edited by

                    I have my Sannce camera working with Chrome, using the same settings that I described above for Firefox.

                    1 Reply Last reply Reply Quote 0
                    • RGN01
                      RGN01 last edited by

                      Thanks, David, it must be something weird on my Windows config or Chrome installation. If I solve it, I'll report back for others.

                      1 Reply Last reply Reply Quote 0
                      • number40fan
                        number40fan last edited by

                        I use the IP WebCam app on a cheap phone. It gives you the IP address to use after it is setup and running. Just have to put /video at the end of that IP in DWC.

                        1 Reply Last reply Reply Quote 0
                        • RGN01
                          RGN01 last edited by

                          Thanks number40fan. The weird thing is that the stream works (I can view it in VLC, for example) yet when I connect to it in Chrome (or Edge) whatever I add after the IP address and port (like /video in your example) the browser opens a 'save as' dialogue box and wants to save to that name!

                          So http://192.168.0.111/videostream.cgi?user=xxxxx&pwd=yyyyy gets me this https://drive.google.com/file/d/0B8OcCwBLJgXFcXRaNk1PdWdiYkE/view?usp=sharing

                          Edited to add: To be clear, this is not a DWC issue, it is something with my browser or PC configuration and DWC inherits the problem.

                          1 Reply Last reply Reply Quote 0
                          • dc42
                            dc42 administrators last edited by

                            I didn't use ?user=xxxxx&pwd=yyyyy at the end of the URL, I left them out and let FireFox ask me for them the first time.

                            1 Reply Last reply Reply Quote 0
                            • RGN01
                              RGN01 last edited by

                              Thanks, David, tried that too with the same results. There is clearly a setting I'm not aware of - I'll keep looking.

                              1 Reply Last reply Reply Quote 0
                              • dc42
                                dc42 administrators last edited by

                                videostream.cgi is wrong, that's for RTSP which can't be displayed in any browser. Use snapshot.cgi.

                                1 Reply Last reply Reply Quote 0
                                • RGN01
                                  RGN01 last edited by

                                  That just tries to save as 'snapshot.cgi' -whatever text I use there, with or without the .cgi or any other extension, is used for the filename to save as.

                                  I'll ask for help in the Chrome help forums next. Thanks for your help.

                                  1 Reply Last reply Reply Quote 0
                                  • dc42
                                    dc42 administrators last edited by

                                    Which model of camera do you have?

                                    1 Reply Last reply Reply Quote 0
                                    • RGN01
                                      RGN01 last edited by

                                      Various - I run a CCTV system called Blue Iris and have a number of IP cameras. They use a variety of IP ports and settings. Tried them all and as I say, they work in Blue Iris and in VLC but not in Chrome or Edge.

                                      1 Reply Last reply Reply Quote 0
                                      • dc42
                                        dc42 administrators last edited by

                                        Not all IP cameras provide the facility to return a jpeg still image. We'd love to support RTSP streams, but it's not possible since Google removed the support from Chrome. The programs that camera makers supply to access your camera from a browser send the RTSP stream to a cloud server, which then provides a HTML5 stream for your browser. That's why they make you open a cloud account first.

                                        1 Reply Last reply Reply Quote 0
                                        • RGN01
                                          RGN01 last edited by

                                          Thanks, David. These cameras supply RTSP and a series of still images over port 80, 81, or various other ports. To confirm this is a browser issue, I set up the Blue Iris webserver to stream video as a series of images. Although very CPU intensive on the Blue Iris server and not a permanent solution, it allows me to configure things rather than guess what the camera is sending.

                                          Opening the web page displays the image in a series of jpg files as this snippet of code from the Inspect element option shows (the 'time' number increments too fast to read as the 'video' is displaying):

                                          [[language]]
                                          ![](/image/Camera1?time=116339)
                                          
                                          

                                          Despite this, if I try to capture this stream in my browser direct, it tries to save it. Using the same page URL in DWC does not work - it just shows a blank white box where the video should be.

                                          I've taken the path of least resistance, though, and ordered a Sannce camera!

                                          1 Reply Last reply Reply Quote 0
                                          • briangilbert
                                            briangilbert last edited by

                                            Hi All

                                            With the sannce camera you can add the user/pass in the url field in DWC as follows:
                                            http://user:pass@camip:port/snapshot.cgi

                                            if you have an @ symbol in your password change it to %40

                                            Works on Firefox anyway..

                                            1 Reply Last reply Reply Quote 0
                                            • 3DTyro
                                              3DTyro last edited by

                                              Based on DC42's experience with the Sannce camera, I bought 2 to test. I finally, after a little fiddling, got it to work just using the URL DC42 provided.

                                              The port varies, as mine was different than DC42's example. I'm not sure if that's because the camera was on a different firmware revision, or if it is random. In any case, the app linked to showed not only the IP but the port as well.

                                              I wasn't able to use the solution briangilbert suggested, though I am running Chrome, not FF.

                                              1 Reply Last reply Reply Quote 0
                                              • Dougal1957
                                                Dougal1957 last edited by

                                                yes that is true for chrome try adding this to the end of your Chrome URL

                                                ?loginuse=xxxxxxx&loginpas=xxxxxxxxx&resolution=32

                                                such as 192.168.0.120:18912/snapshot.cgi?loginuse=xxxxx&loginpas=xxxxxxxx&resolution=32 (still need the http preamble)

                                                Doug

                                                PS change the IP and Port to match yours.

                                                1 Reply Last reply Reply Quote 0
                                                • Mike
                                                  Mike last edited by

                                                  You can also get one of those ELP 1280 * 720p IP cameras. Fairly cheap, decent resolution and works reasonably well with DWC. Configuring it was a bit of a pain in the neck though…

                                                  1 Reply Last reply Reply Quote 0
                                                  • ect2
                                                    ect2 last edited by

                                                    Mike, how do you hook up and configure the ELP 1280? This is exactly what I've been looking for as I do not want to use WiFi.

                                                    1 Reply Last reply Reply Quote 0
                                                    • Mike
                                                      Mike last edited by

                                                      Took me a while to figure that one out. First, you'll need to connect to it - by default (for some reason) it has a fixed IP 192.168.1.10. So if your router assigns IPs in that range, make sure that it's not taken, otherwise just connect directly to the PC. After that you should log into the machine, but you'll need a browser with ActiveX support. In my case, I ended up installing old Internet Explorer just for that. Further setup is fairly trivial - you can switch the language to English, enable the DHCP support (seriously, why isn't it on by default…) and toy with the settings. The static jpeg image would be available at "http://your camera's IP/webcapture.jpg/command=snap&channel=0" and you should also check "Do not append extra HTTP qualifier".

                                                      1 Reply Last reply Reply Quote 0
                                                      • First post
                                                        Last post
                                                      Unless otherwise noted, all forum content is licensed under CC-BY-SA