Hi,
I recently switched to the newly implemented restream functionality in frigate but I guess I did some mistakes.
I cannot open the go2rtc dashboard (shows 404) and I don´t have the feeling it only creates one stream from the camera when watching the stream on multiple devices.
Could anybody check please?
Thank you
mqtt:
host: 192.168.178.135
user: myuser
password: mypassword
record:
enabled: false
events:
retain:
default: 1
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
# NOTE: Can be overridden at the camera level
snapshots:
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 1
# Optional: Per object retention days
objects:
person: 1
cat: 1
dog: 1
birdseye:
enabled: True
mode: objects
#coral config as soon as i have one
detectors:
coral:
type: edgetpu
device: usb
#go2rtc
go2rtc:
streams:
cam1HaustuereHD:
- rtsp://user:[email protected]:554/stream1
cam1HaustuereSD:
- rtsp://user:[email protected]:554/stream2
cam2VerandaHD:
- rtsp://user:[email protected]:554/stream1
cam2VerandaSD:
- rtsp://user:[email protected]:554/stream2
cam3GardenHD:
- rtsp://user:[email protected]:554/stream1
cam3GardenSD:
- rtsp://user:[email protected]:554/stream2
#camera config
cameras:
cam1Haustuere:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/cam1HaustuereSD
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/cam1HaustuereHD
input_args: preset-rtsp-restream
roles:
- record
detect:
#Tapo stream1 1920*1080, stream2 640*360
width: 640 # <---- update for your camera's resolution
height: 360 # <---- update for your camera's resolution
motion:
mask:
- 640,0,640,327,327,58,175,21,29,21,23,108,0,96,0,0
objects:
track:
- person
- cat
- dog
filters:
person:
min_score: 0.5
threshold: 0.72
cat:
min_score: 0.5
threshold: 0.75
dog:
min_score: 0.5
threshold: 0.78
cam2Veranda:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/cam2VerandaSD
roles:
- detect
- path: rtsp://127.0.0.1:8554/cam2VerandaHD
input_args: preset-rtsp-restream
roles:
- record
live:
stream_name: cam2VerandaHD
detect:
#Tapo stream1 1920*1080, stream2 640*360
width: 640 # <---- update for your camera's resolution
height: 360 # <---- update for your camera's resolution
motion:
mask:
- 640,0,640,102,109,133,74,311,0,316,0,0,141,0
objects:
track:
- person
- cat
- dog
filters:
cat:
min_score: 0.5
threshold: 0.73
cam3Garden:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/cam3GardenSD
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/cam3GardenHD
input_args: preset-rtsp-restream
roles:
- record
detect:
#Tapo stream1 1920*1080, stream2 640*360
width: 640 # <---- update for your camera's resolution
height: 360 # <---- update for your camera's resolution
motion:
mask:
- 189,54,291,57,312,108,350,105,352,51,551,70,640,151,640,0,0,0,0,196
objects:
track:
- person
- cat
- dog
filters:
person:
min_score: 0.5
threshold: 0.78
cat:
min_score: 0.5
threshold: 0.75
dog:
min_score: 0.5
threshold: 0.78
#motion:
#mask:
#- 1920,42,1920,847,1920,1080,1724,1080,1544,1080,1491,1080,1386,1080,1291,1080,1046,1080,769,909,747,627,889,526,695,309,546,293,471,273,451,25
Do I need to install a webRTC integration, something like this? GitHub - AlexxIT/WebRTC: Home Assistant custom component for viewing almost any camera stream in real time using WebRTC and other technologies.
Any help to understand the concept is greatly appreciated!
Update:
In the meantime I figured out I need the following live parameter on camera level to be able to switch between jsmpeg, mse and webrtc within frigate.
live:
stream_name: cam2VerandaHD
What I still cant figure out is how to use this live cam in a lovelace card. I am using the frigate custom card, selecting a camera and it only shows the following options:
With every option the SD stream is played, not the HD stream