Live stream in external web app #15706
-
Hi everybody, More and more users in our Node-RED community are integrating Frigate via MQTT. Thanks!!! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Make sure you've set up go2rtc with your Frigate installation, and then just make sure you've got the RTSP restream port open. You can then access those streams from any external app. |
Beta Was this translation helpful? Give feedback.
-
@hawkeye217, Ah ok then I have misinterpreted the concept. I thought that the live streams (mse, webrtc, ...???) that you produce for the live view (and view of recordings) in the Frigate user interface, would be somehow available also for third party apps. Currently I get those RTSP streams directly from my camera's, and I convert them - via ffmpeg - to HLS so that they can be played with the hls.js player in our dashboard (i.e. VueJs dashboard web application). I thought that such streams (that can be directly played in a browser) would be perhaps somehow available out of the box. Just wondering because it is not clear to me which kind of streams the Frigate web interface shows, and which player(s) it uses to show the streams... Perhaps stupid question: is there any advantage for third party apps to get the RTSP streams from Frigate instead of from the camera's directly? Am I correct that it is better that way because both the cameras cpu usage and the network traffic are a bit relieved that way, by multicasting everything via Go2RTC? |
Beta Was this translation helpful? Give feedback.
-
Ok thanks guys for illuminating me!! |
Beta Was this translation helpful? Give feedback.
Frigate just grabs streams directly from your cameras or from go2rtc and uses frontend js code to play them through the browser in a specific format. Those formats are not available externally in any way.
https://github.com/blakeblackshear/frigate/tree/dev/web/src/components/player
You'd need to implement a player on your end somehow, grabbing either the camera stream directly or the go2rtc restream.
The major advantage of go2rtc is that you only have a single connection to your camera.