Frigate ffmpeg unable to read frames

Hi all,

I setup a MQTT and go2rtc for my two security cameras and both is working fine. I then added one camera to frigate to see if it works and everything was working just fine. After changing the stream channel in go2rtc frigate keeps showing me ffmpeg unable to read frames, even after changing back to the original channel. I am not sure what happened and why it doesn’t work anymore. Any help would be greatly appreciated.

Here my Frigate configuration:

mqtt:
  host: 192.168.1.126
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: MyUsername
  password: MyPassword
  stats_interval: 60
 
cameras:
 
  Basement:
    ffmpeg:
      inputs:
 
        - path: rtsp://192.168.1.126:8554/camera.basement?video=copy&audio=aac
          roles:
            - detect
            - record
            - rtmp
 
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a copy
        rtmp: -c:v copy -c:a copy -f flv
 
    rtmp:
     enabled: true
 
    detect:
      width: 640
      height: 480
 
    objects:
      track:
        - person
      filters:
        person:
          threshold: 0.7
 
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 3
 
    #record:
      #enabled: false
      #retain_days: 0
      #events:
        #retain:
          #default: 3

    record:
      enabled: True
      retain: 
        days: 3
        mode: motion
      events:
        retain:
          default: 3
          mode: active_objects
 
    #zones:
      #loft_zone:
        #coordinates: 800,480,800,163,243,225,237,480
 
    #motion:
      #mask: 0,0,653,0,693,153,0,187

Here the Error logs:

2023-12-04 21:48:19.588856719  [INFO] Starting Frigate...
2023-12-04 21:48:20.736179799  [2023-12-04 22:48:20] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-12-04 21:48:20.748472117  [2023-12-04 22:48:20] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-12-04 21:48:20.748645919  [2023-12-04 22:48:20] peewee_migrate                 INFO    : Starting migrations
2023-12-04 21:48:20.752524056  [2023-12-04 22:48:20] peewee_migrate                 INFO    : There is nothing to migrate
2023-12-04 21:48:20.764387270  [2023-12-04 22:48:20] frigate.app                    INFO    : Output process started: 264
2023-12-04 21:48:20.768529209  [2023-12-04 22:48:20] frigate.app                    INFO    : Camera processor started for Basement: 267
2023-12-04 21:48:20.768532809  [2023-12-04 22:48:20] detector.cpu                   INFO    : Starting detection process: 263
2023-12-04 21:48:20.768537309  [2023-12-04 22:48:20] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-12-04 21:48:20.771892242  [2023-12-04 22:48:20] frigate.app                    INFO    : Capture process started for Basement: 269
2023-12-04 21:48:23.847185173  [2023-12-04 22:48:23] frigate.video                  ERROR   : Basement: Unable to read frames from ffmpeg process.
2023-12-04 21:48:23.847239174  [2023-12-04 22:48:23] frigate.video                  ERROR   : Basement: ffmpeg process is not running. exiting capture thread...
2023-12-04 21:48:40.800091062  [2023-12-04 22:48:40] watchdog.Basement              ERROR   : Ffmpeg process crashed unexpectedly for Basement.
2023-12-04 21:48:40.803663798  [2023-12-04 22:48:40] watchdog.Basement              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-04 21:48:40.804107303  [2023-12-04 22:48:40] ffmpeg.Basement.detect         ERROR   : [tcp @ 0x55b3b79fc4c0] Connection to tcp://192.168.1.126:8554?timeout=5000000 failed: No route to host
2023-12-04 21:48:40.804354705  [2023-12-04 22:48:40] ffmpeg.Basement.detect         ERROR   : rtsp://192.168.1.126:8554/camera.basement?video=copy&audio=aac: No route to host
2023-12-04 21:48:43.878867342  [2023-12-04 22:48:43] frigate.video                  ERROR   : Basement: Unable to read frames from ffmpeg process.
2023-12-04 21:48:43.878870642  [2023-12-04 22:48:43] frigate.video                  ERROR   : Basement: ffmpeg process is not running. exiting capture thread...
2023-12-04 21:48:50.807827486  [2023-12-04 22:48:50] watchdog.Basement              ERROR   : Ffmpeg process crashed unexpectedly for Basement.
2023-12-04 21:48:50.808173390  [2023-12-04 22:48:50] watchdog.Basement              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-04 21:48:50.808178690  [2023-12-04 22:48:50] ffmpeg.Basement.detect         ERROR   : [tcp @ 0x561cf72084c0] Connection to tcp://192.168.1.126:8554?timeout=5000000 failed: No route to host
2023-12-04 21:48:50.808305091  [2023-12-04 22:48:50] ffmpeg.Basement.detect         ERROR   : rtsp://192.168.1.126:8554/camera.basement?video=copy&audio=aac: No route to host
2023-12-04 21:48:53.926550967  [2023-12-04 22:48:53] frigate.video                  ERROR   : Basement: Unable to read frames from ffmpeg process.
2023-12-04 21:48:53.926637468  [2023-12-04 22:48:53] frigate.video                  ERROR   : Basement: ffmpeg process is not running. exiting capture thread...

Found the issue :slight_smile:

HA got a new IP adress