Can anyone help me figure out Frigate/go2rtc

cross-posted from: 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:


<span style="color:#323232;">mqtt:
</span><span style="color:#323232;">  host: 192.168.1.10
</span><span style="color:#323232;">cameras:
</span><span style="color:#323232;">  nursery:
</span><span style="color:#323232;">    ffmpeg:
</span><span style="color:#323232;">      inputs:
</span><span style="color:#323232;">        - path: rtsp://redacted:redacted@192.168.1.241:554/live/ch1
</span><span style="color:#323232;">          roles:
</span><span style="color:#323232;">            - detect
</span><span style="color:#323232;">    detect:
</span><span style="color:#323232;">      width: 1280
</span><span style="color:#323232;">      height: 720
</span><span style="color:#323232;">  driveway:
</span><span style="color:#323232;">    ffmpeg:
</span><span style="color:#323232;">      inputs:
</span><span style="color:#323232;">        - path: rtsp://192.168.1.240:554/recording/7824851880350319106/replay?trackid=8836591
</span><span style="color:#323232;">          roles:
</span><span style="color:#323232;">            - detect
</span><span style="color:#323232;">    detect:
</span><span style="color:#323232;">      width: 1920
</span><span style="color:#323232;">      height: 1080
</span>

This currently provides only jsmpeg video in Frigate. If I add something like this to the end:


<span style="color:#323232;">go2rtc:
</span><span style="color:#323232;">  streams:
</span><span style="color:#323232;">    nursery:
</span><span style="color:#323232;">      - rtsp://redacted:redacted@192.168.1.241:554/live/ch1
</span>

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?

Update: Here is the fix, in case anyone comes across this later:


<span style="color:#323232;">go2rtc:
</span><span style="color:#323232;">  streams:
</span><span style="color:#323232;">    nursery:
</span><span style="color:#323232;">      - "ffmpeg:rtsp://redacted@192.168.1.241:554/live/ch1#video=copy#audio=copy#audio=opus"
</span><span style="color:#323232;">  webrtc:
</span><span style="color:#323232;">    candidates:
</span><span style="color:#323232;">      - <server-ip>:8555
</span>

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.

Smoofus,

I’m no expert but I’m pretty sure I had to add the output_args record: preset-record-generic-audio-aac to get audio on one of my cameras. Maybe give that a try?


<span style="color:#323232;">##### Cams #####
</span><span style="color:#323232;">cameras:
</span><span style="color:#323232;">  front_door:
</span><span style="color:#323232;">    ffmpeg:
</span><span style="color:#323232;">      inputs:
</span><span style="color:#323232;">        - path: rtsp://redacted/h264/ch01/main/av_stream
</span><span style="color:#323232;">          #input_args: preset-rtsp-restream
</span><span style="color:#323232;">          roles:
</span><span style="color:#323232;">            - record
</span><span style="color:#323232;">            - detect
</span><span style="color:#323232;">      output_args:
</span><span style="color:#323232;">        record: preset-record-generic-audio-aac
</span><span style="color:#323232;">    objects:
</span><span style="color:#323232;">      track:
</span><span style="color:#323232;">        - person
</span>
spacemanspiffy,

Thanks! I gave this a try but it doesn’t seem to have made any difference.

Smoofus, (edited )

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…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • homeassistant@lemmy.world
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • anitta
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • megavids
  • JUstTest
  • All magazines