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:redacted@192.168.1.241: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:redacted@192.168.1.241: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 with opus
but to no avail.
Finally, if I ffplay rtsp://redacted:redacted@192.168.1.241:554/live/ch1
it loads audio/video without a problem.
I’m also able to connect via ONVIF at onvif://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?
I think the docs recommend (and this is how I have it set up) leaving the go2rtc stream as you have it currently, and changing the stream path for the camera config to
rtsp://127.0.0.1:8554/nursery
Thanks! No luck though. Same results with the config this way vs. what I have above.