Adding Camera Duet2 Wifi RSTP problems & Chrome
-
@dc42
The wyze cam with modified fw has a build in rtsp-server.....
Mine is working with DWC. -
@dc42 said in Adding Camera Duet2 Wifi RSTP problems & Chrome:
it needs to have a facility to serve a still image.
You are right, as always. it's depending on browser.....Only working in firefox.
Does this mean that a service like "motion" is required for chrome ? -
Probably, though there are alternatives to motion.
You might also be able to find a plugin/extension for chrome to bring back RTSP, but haven't tried it myself.
-
Thank you for all information.
So i am not a computer expert.
I play with this more then a week without function.Does anybody know how to adjust my mofified Wyze Cam or Chrome Browser or DWC that this work?
May step by step?
Or is there no possibility to get this working?Thank´s
-
It would be great if someone has an idea how to solve this.
-
What version of DWC are you using? Someone else just reported some problems in the recent betas as well.
-
Hi
i use Duet Web Control 2.0.7 -
Unfortunately I'm not familiar with the Wyze cams or how they are functioning, but since you are using an older DWC I would think that the methods posted above would still work.
Have you tested in firefox to confirm if it's working there?
-
Yeah Firefox is also not working.
-
RTSP isn't supported by modern browsers, so DWC doesn't support it either. You need to use mjpg or something else.
-
Ok, sorry for the question,
But how to do? -
I hope someone has an idea
-
@uneumann36 well @DIY-O-Sphere says he has it working still, so I think there's something you're missing from the modification to the wyze cam. I don't have one myself, so I'm not much help, but it does appear to work for some.
-
I was able to get the Wyzecam V2 with the Dafang firmware working to provide a video feed in DWC using the Safari browser. The video is choppy, but sufficient to monitor the progress of a print. In the Dafang firmware, I changed the Codec for RTSP Server to "MPJEG" (MPJEG is probably a typo in the Dafang firmware) and the video size to 1280x720 (larger and smaller sizes also worked). I then assigned a fixed IP address to the Wyzecam on my router. In DWC, under Setting, General, Webcam, I inserted the Webcam URL as "http://xxx.xxx.x.xx/cgi-bin/currentpic.cgi" (where xxx.xxx.x.xx is the fixed IP address I assigned), set the Webcam update interval to 500ms, repeated the above URL exactly under URL to open when Webcam image is clicked, and turned off both "Do not append extra HTTP qualifier when reloading images" and "Embed webcam image in iframe." Hope this helps.
-
Now I also got it working in Chrome, but only on my PC. On my mobile the cam snap is displayed now , but will not be updated.
It's a little tricky. Seach for "dafang hack disable https" -
@DIY-O-Sphere
Sounds good.
Where to search? -
Editing the lighttpd.conf file found in /system/sdcard/config/lightpd.conf and commenting out the following lines:
Code
#$HTTP["scheme"] == "http" { # # capture vhost name with regex conditiona -> %0 in redirect pattern # # must be the most inner block to the redirect rule # $HTTP["host"] =~ ".*" { # url.redirect = (".*" => "https://%0$0") # } #}
Then reboot the camera.
Now in DWC change the link to http://xxx.xxx.x.xx/cgi-bin/currentpic.cgi -
I had a little trouble getting this up and running but now that I have read and re-read I caught a few things maybe possibly update the wiki camera section with making sure "Embed Webcam Stream" and " Do not append extra HTTP qualifier " are un-checked. Those were the two things holding me back. I did update the lighttpd.conf file so you do not have to use the "user:pass" portion of the address. Another note is using the cgi-bin/currentpic.cgi isn't using RTSP, it is using a static image that is updated at whatever frame rate you have set in the Dafang firmware and the duet grabs whichever frame happens to be the most current still image which is currentpic.cgi when it does its update at your specified interval.
-
@widjit where do you set the auto-update/refresh value? I can view a still image using the cgi-bin/currentpic.cgi address, but it does autorefresh or anything, I have to keep manually clicking the refresh button, which is incredibly annoying and useless. It sounds like, for you, it autoupdates with a choppy video, which is better than just 1 still image
-
Alright, so I realized that the "update" y'all are talking about is in the DWC settings tab, not the Camera's settings tab . I have set my update interval anywhere between the default 5000ms (so 5 seconds) and 10ms, but it's definitely not updating that quickly at either setting. 10ms is like 1 sec and 5000ms is like a solid 10-15 seconds...
Is there any hope of getting an ffmpeg "output" straight from the Wyze Cam? I mean, the RTSP is nice, but there's no browser that can view that stream, so it's also kinda useless for our application (I realize that these cameras are initially intended to be security cameras and the RTSP works for that application). Would it be too difficult (I'm sure it would and personally wouldn't even know where to start) to merge the ffmpeg pi program into the dafang hack?