Frigate ffmpeg Problem

Hallo,
ich versuche seit Tagen meine POE Cam (Anpviz IPC-D260W-S) in Frigate zu konfigurieren.
Heute ist ein neues Frigate Video von Simon online gekommen und ich hab mich wieder mit neuer Motivation an den PC gesetzt - leider wieder das gleiche Ergebnis wie seit Tagen.

Protokoll in HA:

2025-07-30 19:29:35.874189859  [INFO] Preparing Frigate...
2025-07-30 19:29:35.879794326  [INFO] Starting NGINX...
2025-07-30 19:29:35.898960742  [INFO] No TLS certificate found. Generating a self signed certificate...
2025-07-30 19:29:35.922208551  [INFO] Got IP address from supervisor: 192.168.178.150
2025-07-30 19:29:35.961753347  [INFO] Got WebRTC port from supervisor: 8555
2025-07-30 19:29:36.008764462  [INFO] Starting Frigate...
2025-07-30 19:29:36.746865106  [INFO] Starting go2rtc...
2025-07-30 19:29:36.943481625  21:29:36.943 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2025-07-30 19:29:36.943598945  21:29:36.943 INF config path=/dev/shm/go2rtc.yaml
2025-07-30 19:29:36.944454687  21:29:36.944 INF [api] listen addr=:1984
2025-07-30 19:29:36.944922107  21:29:36.944 INF [rtsp] listen addr=:8554
2025-07-30 19:29:36.945317707  21:29:36.945 INF [webrtc] listen addr=:8555/tcp
2025-07-30 19:29:38.868343251  [2025-07-30 21:29:38] frigate.util.config            INFO    : Checking if frigate config needs migration...
2025-07-30 19:29:38.887673518  [2025-07-30 21:29:38] frigate.util.config            INFO    : frigate config does not need migration...
2025-07-30 19:29:38.910224674  [2025-07-30 21:29:38] frigate.app                    INFO    : Starting Frigate (0.15.2-3bda638)
2025-07-30 19:29:38.910677925  [2025-07-30 21:29:38] frigate.app                    INFO    : Creating directory: /tmp/cache
2025-07-30 19:29:38.914086971  [2025-07-30 21:29:38] frigate.util.services          INFO    : Current file limits - Soft: 1024, Hard: 524288
2025-07-30 19:29:38.914347569  [2025-07-30 21:29:38] frigate.util.services          INFO    : File limit set. New soft limit: 65536, Hard limit remains: 524288
2025-07-30 19:29:38.917589241  [2025-07-30 21:29:38] peewee_migrate.logs            INFO    : Starting migrations
2025-07-30 19:29:38.918210390  [2025-07-30 21:29:38] peewee_migrate.logs            INFO    : There is nothing to migrate
2025-07-30 19:29:38.924960664  [2025-07-30 21:29:38] frigate.app                    INFO    : Recording process started: 252
2025-07-30 19:29:38.930914722  [2025-07-30 21:29:38] frigate.app                    INFO    : Review process started: 261
2025-07-30 19:29:38.934275454  [2025-07-30 21:29:38] frigate.app                    INFO    : go2rtc process pid: 95
2025-07-30 19:29:38.944192971  [2025-07-30 21:29:38] detector.detector_name         INFO    : Starting detection process: 268
2025-07-30 19:29:38.946398569  [2025-07-30 21:29:38] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
2025-07-30 19:29:38.956143431  [2025-07-30 21:29:38] frigate.app                    INFO    : Output process started: 288
2025-07-30 19:29:38.959764861  [INFO] Starting certsync...
s6-rc: info: service legacy-services successfully started
2025-07-30 19:29:38.991164365  [2025-07-30 21:29:38] frigate.app                    INFO    : Camera processor started for Eingang: 327
2025-07-30 19:29:39.012528493  [2025-07-30 21:29:39] frigate.app                    INFO    : Capture process started for Eingang: 335
2025-07-30 19:29:39.084015292  127.0.0.1 - - [30/Jul/2025:21:29:39 +0200] "" 400 0 "-" "-" "-"
2025-07-30 19:29:39.160381424  [2025-07-30 21:29:39] frigate.api.fastapi_app        INFO    : Starting FastAPI app
2025-07-30 19:29:39.293348835  [2025-07-30 21:29:39] frigate.api.fastapi_app        INFO    : FastAPI started
2025-07-30 19:29:44.171799921  [2025-07-30 21:29:44] frigate.video                  ERROR   : Eingang: Unable to read frames from ffmpeg process.
2025-07-30 19:29:44.173003463  [2025-07-30 21:29:44] frigate.video                  ERROR   : Eingang: ffmpeg process is not running. exiting capture thread...
2025-07-30 19:29:45.872091311  [INFO] Starting go2rtc healthcheck service...
2025-07-30 19:29:59.072917304  [2025-07-30 21:29:59] watchdog.Eingang               ERROR   : Ffmpeg process crashed unexpectedly for Eingang.
2025-07-30 19:29:59.072921396  [2025-07-30 21:29:59] watchdog.Eingang               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-07-30 19:29:59.072925394  [2025-07-30 21:29:59] ffmpeg.Eingang.detect          ERROR   : [in#0 @ 0x55b656bb4d80] Error opening input: Invalid data found when processing input
2025-07-30 19:29:59.072927574  [2025-07-30 21:29:59] ffmpeg.Eingang.detect          ERROR   : Error opening input file rtsp://127.0.0.1:8554/Eingang_sub.
2025-07-30 19:29:59.072941417  [2025-07-30 21:29:59] ffmpeg.Eingang.detect          ERROR   : Error opening input files: Invalid data found when processing input

Immer Unable to read frames from ffmpeg process. und ffmpeg process is not running. exiting capture thread…

Meine konfig:

mqtt:
  enabled: true
  host: 192.168.178.100
  user: xxxx
  password: xxxx
  topic_prefix: frigate
  client_id: frigate
  stats_interval: 15

# https://docs.frigate.video/configuration/hardware_acceleration
ffmpeg:
  hwaccel_args: preset-vaapi
  input_args: preset-rtsp-restream
  output_args:
    record: preset-record-generic-audio-copy

#Standard
detectors:
  detector_name:
    type: cpu

#detectors:
#  coral:
#    type: edgetpu
#    device: usb

birdseye:
  enabled: true
  restream: true
  mode: objects

objects:
  track:
    - person
    - car
  filters:
    person:
      min_area: 5000
      max_area: 100000


go2rtc:
  streams:
    Eingang:
      - ffmpeg:rtsp://test:abcd1234!@192.168.178.60/stream0/ #POE IP Cam: Anpviz IPC-D260W-S Main
      - rtsp://test:abcd1234!@192.168.178.60/stream0/
    Eingang_sub:
      - ffmpeg:rtsp://test:abcd1234!@192.168.178.60/stream1/ #POE IP Cam: Anpviz IPC-D260W-S Sub

cameras:
  Eingang:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Eingang # Stream you use for record
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Eingang_sub # Stream you use for detection
          roles:
            - detect
    detect:
      width: 1280
      height: 720
      fps: 5
    snapshots:
      enabled: true
    record:
      enabled: true
      retain:
        days: 7
      alerts:
        retain:
          days: 14
      detections:
        retain:
          days: 14

Hat jenmand eine Idee was ich seit Tagen falsch mache?

Grüß Euch!

Da meine Frigate-Config etwas umständlicher im laufendem System ist hab ich das ganze im Testsystem ebenfalls wie im YT aufgesetzt. Gleiche Problematik und zusätzlich folgende Fehlermeldung

[INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually

So nach vielen Stunden, und nochmals neu aufgesetzt einige Probleme gelöst. Dafür neue am laufen :weary: Sämtliche Recherchen, und “Lösungen” brachten nicht den gewünschten Erfolg.

Jetzt kämpfe ich mit Frigate/MQTT - alles nochmals neu Installiert, 2fach geprüft, nichts gefunden woran es liegen kann.

Nebenbei einen ESP8266 als MQTT Client im IDE Programmiert, kommt durch, auch im MQTT Explorer.

Jetzt kommt folgende Info im Log von HA (wie auch bei vielen anderen die das Problem hatten)

2025-08-15 22:54:42: New connection from 172.30.32.2:43098 on port 1883. 2025-08-15 22:54:42: Client <unknown> closed its connection. 2025-08-15 22:55:39: Saving in-memory database to /data//mosquitto.db. 2025-08-15 22:56:42: New connection from 172.30.32.2:46662 on port 1883. 2025-08-15 22:56:42: Client <unknown> closed its connection. 2025-08-15 22:58:42: New connection from 172.30.32.2:54152 on port 1883. 2025-08-15 22:58:42: Client <unknown> closed its connection. 2025-08-15 23:00:42: New connection from 172.30.32.2:57820 on port 1883. 2025-08-15 23:00:42: Client <unknown> closed its connection. 2025-08-15 23:02:42: New connection from 172.30.32.2:32962 on port 1883. 2025-08-15 23:02:42: Client <unknown> closed its connection. 2025-08-15 23:04:42: New connection from 172.30.32.2:40944 on port 1883. 2025-08-15 23:04:42: Client <unknown> closed its connection.

Frigate hatte schon MQTT gesendet, habe etliches an der config geändert, jedoch nichts an den Ports, nicht an der MQTT - in der HA Integration sind die Cam’s sichtbar, auch die Aufzeichnungen, Snapshots etc.

Wenn ich eine neue Zone einrichte wird auch diese in der HA Integration Angezeigt - nur Frigate sendet keine MQTT’s :sleepy:

Nun ja, ich weis nicht mehr weiter …