Frigate go2rtc dashboard not working

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.
image

    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 :frowning:

you should update to v5 beta of the frigate card

Thank you for the hint! Now I can select go2rtc within the frigate card.
But it seems it is still streaming the SD not HD channel.

type: custom:frigate-card
cameras:
  - camera_entity: camera.cam2veranda
    live_provider: go2rtc
    go2rtc:
      modes:
        - webrtc

well, what is the HD stream called in your go2rtc config?

But I think it is working now - with the following change:

type: custom:frigate-card
cameras:
  - camera_entity: camera.cam2veranda
    live_provider: go2rtc
    go2rtc:
      modes:
        - webrtc
    frigate:
      camera_name: cam2VerandaHD

Thank you very much for your support!!

2 Likes

Still can´t open the go2rtc dashboard:
https://homeassistant.local:8123/live/webrtc/
It shows a 404.

That’s expected, you need to use the ip:port because the ingress doesn’t support jt

can you elaborate please? I should use the home assistant IP and what port?

port 5000, but it must be opened in the frigate addon config first

For the love of god, I cannot find the proper config to open port 5000 …

The only thing about it I can find in the docs is this and I have no clue where to find this hidden option …

CAUTION
To access the go2rtc stream externally when utilizing the Frigate Add-On (for instance through VLC), you must first enable the RTSP Restream port. You can do this by visiting the Frigate Add-On configuration page within Home Assistant and revealing the hidden options under the "Show disabled ports" section.
1 Like

I am not sure, but I assume you have to have one of these Frigate add-ons installed.

I have frigate proxy running and it gives me option for the port in the configuration file.

Hey Alex, thank you for the tip but it doesnt help so far…
Could you give me your configuration as an example please?

You configure it in the addon GUI settings, not the frigate config file

1 Like

Go to Settings > Addons > Frigate and select the Settings tab. Turn on the Show Disabled Ports button and make sure 1984 is in the go2rtc api port box.

1 Like

Uh… finally got it I think, thank you for your help!!

Now I set the following:

And with IP of HomeAssistant:5000 I can open this:

But that is the standard frigate GUI, not a go2rtc interface - I guess? I´m trying to open this “go2rtc dashboard” linked under frigate system:

Try:
IP of HomeAssistant:1984

No, that ip+port doesn´t work as well :frowning:

Same here, not sure how to access the go2rtc dashboard. This is what my frigate settings look like. Is the go2rtc port the same as the RTMP stream port?

this is my frigate version:

here is a possibly related thread: Get "go2rtc dashboard" button working for hass · Issue #5929 · blakeblackshear/frigate · GitHub

1 Like

btw. if you read the frigate docs: Live View | Frigate

You can see that jsmpeg works by default while MSE Requires AAC audio, WebRTC requires PCMU/PCMA, or opus audio. If you want to support both MSE and WebRTC then your restream config needs to make sure both are enabled.

Meaning that even if we manage to access the go2rtc dashboard it might not help much.