Adding Camera Duet2 Wifi RSTP problems & Chrome
-
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?
-
Gentleman
I would keep up this issue again.First, yes i got my wyzecam running on DWC.
But it works only (on Chrome) when i open the camera tap via seperate tap and write passwort and so on, to see the live stream.
Then it is also working on DWC.So i am a bit fustratet,
Question : Do anyone know a camera who works from the beginning without problems in DWC ?
No matter what kind or costs?Or is this the problem of the Browser or both?
Regards
Uwe -
@uneumann36 said in Adding Camera Duet2 Wifi RSTP problems & Chrome:
Question : Do anyone know a camera who works from the beginning without problems in DWC ?
No matter what kind or costs?My preferred cam setup is a raspberry pi zero W running MotionOS with the pi cam module. It works great.
-
-
-