cross-posted from: https://lemmy.world/post/15144957
Can anyone help me figure out Frigate/go2rtc
I have two cameras in Frigate.
One is a Raspberry Pi 3 running Monocle server, and this stopped working in Frigate some time back (driveway). The second is a Galayou G7 (nursery). The nursery camera is the one I am concerned about with this post.
Problem: Up until a month or two ago (I must have ran an update but I don't know) the audio from the Galayou camera worked in Home Assistant. I'd like to get that working again. Some searching led me to try setting up go2rtc in my config.
Here is my config before making any changes:
mqtt: host: 192.168.1.10 cameras: nursery: ffmpeg: inputs: - path: rtsp://redacted:[email protected]:554/live/ch1 roles: - detect detect: width: 1280 height: 720 driveway: ffmpeg: inputs: - path: rtsp://192.168.1.240:554/recording/7824851880350319106/replay?trackid=8836591 roles: - detect detect: width: 1920 height: 1080
This currently provides only jsmpeg video in Frigate. If I add something like this to the end:
go2rtc: streams: nursery: - rtsp://redacted:[email protected]:554/live/ch1
this adds mse and webrtc as options in Frigate. But, mse plays only video, no audio. And webrtc loads neither audio nor video. I have tried adding lines like
- "ffmpeg:nursery#video=h264#audio=aac"
and also withopus
but to no avail.Finally, if I
ffplay rtsp://redacted:[email protected]:554/live/ch1
it loads audio/video without a problem. I'm also able to connect via ONVIF atonvif://192.168.1.241:8899
from onvif-gui.So, something is wrong in my Frigate config, and I don't know what. I'm hoping someone here is a little more familiar and can give me a pointer or two here?
Update: Here is the fix, in case anyone comes across this later:
go2rtc:
streams:
nursery:
- "ffmpeg:rtsp://[email protected]:554/live/ch1#video=copy#audio=copy#audio=opus"
webrtc:
candidates:
- <server-ip>:8555
The webrtc
section got webrtc to work in the Frigate and video back in HASS. The #audio=copy#audio=opus
got audio working in webrtc.
Thanks! I gave this a try but it doesn't seem to have made any difference.
Worth a shot I guess. I also confirmed I'm using a go2rtc stream in my home assistant card with MSE as the go2rtc mode. Not sure if this is going to work but I'm attempting to attach a screenshot of my card settings in case there is anything there that may help
(edit) - Can't quite figure out how to get a pic to display...