WebRTC issues

I have an IDEX with RatOS installed and its been working great up until a few days ago. All of a sudden i cant get the VAOC-camera working. The camera is setup to run with camera-streamer in the crowsnest config file. When i add a webcam in the mailsail interface it wont work if i select WebRTC (camera-streamer) as service. The image is just black with "connecting" shown, after a little while it will change to "failed" for a few seconds before going back to "connecting" again. If i change the service to "Adaptive MJPEG-streamer" it works just fine. But this will not work with VAOC. I´ve tried reflashing ratos to the pi´s sd-card without success. Hopefullly someone can point me in the right direction here. Crowsnest logs attached.
Solution:
Safari is the new Internet Explorer. Double check this: https://github.com/mainsail-crew/mainsail/issues/1774#issuecomment-2294825913
GitHub
[MacOS]: Websocket infinite reconnection for locally hosted instanc...
Mainsail Version: v0.8.0-310 Browser: Chrome Device: Laptop Operating System: macOS What happened? The issue was initially posted here #1632, Arksine/moonraker#726 and Rat-OS/RatOS#106. Similar iss...
Jump to solution
5 Replies
miklschmidt
miklschmidt3mo ago
The settings you set in mainsail are local to mainsail and are not reused in VAOC, there's no inherent problem with using mjpeg in mainsail, as long as crowsnest is correctly configured for camera-streamer and the WebRTC stream works. It has to be configured on port 8080. You can check if camera-streamer's WebRTC endpoint is working correctly by going to ratos.local/webcam/webrtc There are invalid characters and errors in your log file. You may be dealing with a corrupting sd card (may or may not be affecting your setup, might not be critical). I see you're using the picamv2, but the configuration you're using isn't working. Add the following to your cam 1 config: custom_flags: --camera-height=2464 --camera-width=3280 --camera-video.height=1232 --camera-snapshot.height=1232 --camera-format=YUYV Or, for a 16:9 cropped output: custom_flags: --camera-height=1080 --camera-width=1920 --camera-video.height=1080 --camera-snapshot.height=1080 --camera-format=YUYV
TechnoViking
TechnoVikingOP3mo ago
Okey thats nice to know. It´s set to port 8080. I tried navigating to "ratos.local/webcam/webrtc" but all i get is what you can see in the attached image. It´s like mediaplayer controls. Nothing happens when i press the play button. Just to be safe i´ll order a new SD card. Update, decided to try it with a different browser so i installed firefox. ( im running safari on a mac m1) and now it works. It still wont work on safari but firefox works fine.
Solution
miklschmidt
miklschmidt3mo ago
Safari is the new Internet Explorer. Double check this: https://github.com/mainsail-crew/mainsail/issues/1774#issuecomment-2294825913
GitHub
[MacOS]: Websocket infinite reconnection for locally hosted instanc...
Mainsail Version: v0.8.0-310 Browser: Chrome Device: Laptop Operating System: macOS What happened? The issue was initially posted here #1632, Arksine/moonraker#726 and Rat-OS/RatOS#106. Similar iss...
miklschmidt
miklschmidt3mo ago
You may want to check out Arc now that you're on a Mac 🙂
TechnoViking
TechnoVikingOP3mo ago
Thanks for the tip! i´ll check it out.
Want results from more Discord servers?
Add your server