shbatm / MMM-RTSPtoWeb

MagicMirror2 Module for viewing IP cameras RTSP stream in real time using WebRTC technology.
MIT License
14 stars 3 forks source link

Doesn't display Frigate/Go2RTC WebRTC Stream #11

Open lawrence-jeff opened 1 year ago

lawrence-jeff commented 1 year ago

The latest beta of frigate (home assistant camera add-on) includes go2rtc and it provides a number of webRTC streams. However using these in the config doesn't display anything but the header, if I open chromium on the same pi and paste in the URL it opens it without issue.

Any advice of what I would look for?

Module Config { module: "MMM-RTSPtoWeb", position: "top_center", header: "Driveway", config: { width: "50%", url: "http://homeassistant.local:5000/live/webrtc/webrtc.html?src=driveway_small" } },

lawrence-jeff commented 1 year ago

Here are the available streams if it helps

Any codec in source stream.html with auto-select mode / browsers: all / codecs: H264, H265, MJPEG, JPEG, AAC, PCMU, PCMA, OPUS info.json page with active connections rtsp with only one video and one audio / codecs: any rtsp for MP4 recording (Hass or Frigate) / codecs: H264, H265, AAC rtsp with all tracks / codecs: any H264/H265 source stream.html WebRTC stream / browsers: all / codecs: H264, PCMU, PCMA, OPUS / +H265 in Safari stream.html MSE stream / browsers: Chrome, Firefox, Safari Mac/iPad / codecs: H264, H265, AAC / +OPUS in Chrome and Firefox stream.mp4 MP4 stream with AAC audio / browsers: Chrome, Firefox / codecs: H264, H265, AAC stream.mp4 MP4 stream with any audio / browsers: Chrome / codecs: H264, H265, AAC, OPUS, MP3, PCMU, PCMA frame.mp4 snapshot in MP4-format / browsers: all / codecs: H264, H265 stream.m3u8 HLS/TS / browsers: Safari all, Chrome Android / codecs: H264 stream.m3u8 HLS/fMP4 / browsers: Safari all, Chrome Android / codecs: H264, H265, AAC webrtc.html with two-way audio for supported cameras / browsers: all / codecs: H264, PCMU, PCMA, OPUS MJPEG source stream.html with MJPEG mode / browsers: all / codecs: MJPEG, JPEG stream.mjpeg MJPEG stream / browsers: all / codecs: MJPEG, JPEG frame.jpeg snapshot in JPEG-format / browsers: all / codecs: MJPEG, JPEG

lawrence-jeff commented 1 year ago

I got this working with a seperate RTSPtoWeb instance but still can't get it to work with the Go2RTC incorporated into Frigate. I think this is because those stream URLs have a full wrapper around them to display in a browser and aren't the raw WebRTC API stream this app needs, I have posted to the Go2RTC stream to get help with the correct URL to use

theBasher91 commented 5 months ago

I got this working with a seperate RTSPtoWeb instance but still can't get it to work with the Go2RTC incorporated into Frigate. I think this is because those stream URLs have a full wrapper around them to display in a browser and aren't the raw WebRTC API stream this app needs, I have posted to the Go2RTC stream to get help with the correct URL to use

Hey, how did you get this to work? I can't get any of the streams on the go2RTC dashboard to work. Can you send me your config.js for this module and how you got your RTSP link?

lawrence-jeff commented 5 months ago

I'm no longer using it and I don't recall exactly why- but my last (now disabled entry was) { module: 'MMM-RTSPtoWeb', disabled: true, position: 'top_left', config: { url: 'http://homeassistant.local:1984/api/webrtc?src=driveway_small', carouselId: "1", width: "75%" } },

I eventually swtiched to this module MMM-ProxyImage (Unfortunately I don't recall the exact reason why)

I have it pull a new image every 30 seconds in one spot and then when motion is detected it up's the frequency to every 3 seconds. Its not quite video but seems more reliable