Frigate Live Feed Issues

I’ve got Frigate setup on a separate Raspberry Pi and am using MQTT in HA and the HACS Frigate integration to bring everything into HA. HA shows all the entities and most of them work. I can go into the Media Browser and playback clips no problem. However, trying to view the entity for the live feed does not work. I’ve tried setting the RTMP URL template to rtmp://192.168.50.1:5000/live/{{ name }}, but it makes no difference. Any ideas on what’s wrong or next steps on diagnosing the problem?

Frigate: 192.168.50.1
HA: 192.168.1.250

Firewall rule in place to allow all traffic between the two subnets for now.

Frigate.yml

version: "3.9"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    image: blakeblackshear/frigate:stable-armv7
    shm_size: "256mb" # update for your cameras based on calculation above
    devices:
      - /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /home/administrator:/config
      - /mnt/nvr:/media/frigate
      - /etc/frigate:/db
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "1935:1935" # RTMP feeds
      - "5000:5000"
      - "5001:5001"
      - "8080:8080"
    environment:
      FRIGATE_RTSP_PASSWORD: "Redacted"
  mqtt:
    container_name: mqtt
    image: eclipse-mosquitto
    ports:
      - "1883:1883"

Config.yaml

# yaml-language-server: $schema=http://192.168.50.1:5000/api/config/schema
#logger:
#  default: debug

mqtt:
  host: 192.168.1.250
  user: mqtt
  password: Redacted

cameras:
  front_camera:
    ffmpeg:
      inputs:
        - path: rtsp://Redacted:{FRIGATE_RTSP_PASSWORD}@192.168.50.10:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
      inputs:
        - path: rtsp://Redacted:{FRIGATE_RTSP_PASSWORD}@192.168.50.10:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - rtmp
      inputs:
        - path: rtsp://Redacted:{FRIGATE_RTSP_PASSWORD}@192.168.50.10:554/cam/realmonitor?channel=1&subtype=2
          roles:
            - detect
    detect:
      width: 1280
      height: 720
      fps: 30
      enabled: True
      max_disappeared: 150
    record:
      enabled: True
      retain:
        days: 30
    rtmp:
      enabled: True
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: True
      height: 270
    objects:
      track:
        - person
        - car
        - bicycle
        - motorcycle
        - cat
        - dog
      filters:
        person:
          min_area: 5000
          max_area: 100000
          min_score: 0.5
          threshold: 0.7
detectors:
  coral:
    type: edgetpu
    device: usb

Please elaborate, what do you mean by not working? I’d also recommend leaving the RTMP template alone as it should work by default.

I don’t see any config for hardware acceleration of video. Without acceleration some of my video feeds were taking 20-30 seconds to load from Frigate and I have it running in a vm with 8 gigs of ram.

How long have you waited for the live feed to load?