blakeblackshear/frigate

[Config Support]: ffmpeg process is not running. exiting capture thread...

deathgr1n opened this issue · 2 comments

Describe the problem you are having

Hi all, I am very new to frigate and docker, I apologize for any newb questions or misses on my part. Basically I have Frigate running in docker (via docker compose) on my Debian 12 Linux system (Intel I5-8500T with 16gb of RAM). I have successfully deployed Frigate and portainer, I am able to access the Frigate WebUI, and I can successfully view my camera streams via the go2rtc dashboard. The problem I am facing is with the main cameras and birdseye views. I check the logs and see: "Unable to read frames from ffmpeg process" and "ffmpeg process is not running. exiting capture thread..." for my 5 cameras. Just looking for some help to see if I configured something wrong. I have obfuscated my passwords and IP's in the config file. I am running Amcrest IP8M-T2599EW 4k camers. I configured them to use h.264 instead of h.265 per recommendations I belive. Thank you

Version

0.12.1-367D724

Frigate config file

mqtt:
  enabled: false

detectors:
  coral:
    type: edgetpu
    device: usb

ffmpeg:
  hwaccel_args: preset-vaapi

# Include all cameras by default in Birdseye view
birdseye:
  enabled: True
  mode: continuous
  width: 1920
  height: 1080
  quality: 20

# Global Object Settings
objects:
  track:
    - person
  filters:
    person:
      min_area: 5000
      max_area: 100000
cameras:
  ShopCam:
    ffmpeg:
      inputs:
        #High resolution stream
        - path: rstp://admin:password@x.x.x.241:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
        #Low resolution stream
        - path: rstp://admin:password@x.x.x.241:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
    detect:
      width: 1280
      height: 720
  FrontDrivewayCam:
    ffmpeg:
      inputs:
        #High resolution stream
        - path: rstp://admin:password@x.x.x.242:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
        #Low resolution stream
        - path: rstp://admin:password@x.x.x.242:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
    detect:
      width: 1280
      height: 720
  FrontYardCam:
    ffmpeg:
      inputs:
        #High resolution stream
        - path: rstp://admin:password@x.x.x.243:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
        #Low resolution stream
        - path: rstp://admin:password@x.x.x.243:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
    detect:
      width: 1280
      height: 720
  WestSideCam:
    ffmpeg:
      inputs:
        #High resolution stream
        - path: rstp://admin:password@x.x.x.244:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
        #Low resolution stream
        - path: rstp://admin:password@x.x.x.244:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
    detect:
      width: 1280
      height: 720
  BackYardCam:
    ffmpeg:
      inputs:
        #High resolution stream
        - path: rstp://admin:password@x.x.x.245:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
        #Low resolution stream
        - path: rstp://admin:password@x.x.x.245:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
    detect:
      width: 1280
      height: 720

go2rtc:
  streams:
    FrontDrivewayCam:
      - rtsp://admin:password@x.x.x.242:554/cam/realmonitor?channel=1&subtype=0
    FrontDrivewayCam_sub:
      - rtsp://admin:password@x.x.x.242:554/cam/realmonitor?channel=1&subtype=1
    FrontYardCam:
      - rtsp://admin:password@x.x.x.243:554/cam/realmonitor?channel=1&subtype=0
    FrontYardCam_sub:
      - rtsp://admin:password@x.x.x.243:554/cam/realmonitor?channel=1&subtype=1
    WestSideCam:
      - rtsp://admin:password@x.x.x.244:554/cam/realmonitor?channel=1&subtype=0
    WestSideCam_sub:
      - rtsp://admin:password@x.x.x.244:554/cam/realmonitor?channel=1&subtype=1
    BackYardCam:
      - rtsp://admin:password@x.x.x.245:554/cam/realmonitor?channel=1&subtype=0
    BackYardCam_sub:
      - rtsp://admin:password@x.x.x.245:554/cam/realmonitor?channel=1&subtype=1
    ShopCam:
      - rtsp://admin:password@x.x.x.241:554/cam/realmonitor?channel=1&subtype=0
    ShopCam_sub:
      - rtsp://admin:password@x.x.x.241:554/cam/realmonitor?channel=1&subtype=1

Relevant log output

2023-11-06 12:48:07.350756611  [INFO] Starting Frigate...
2023-11-06 12:48:08.157456604  [2023-11-06 12:48:08] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-11-06 12:48:08.184988003  [2023-11-06 12:48:08] peewee_migrate                 INFO    : Starting migrations
2023-11-06 12:48:08.188625618  [2023-11-06 12:48:08] peewee_migrate                 INFO    : There is nothing to migrate
2023-11-06 12:48:08.201396677  [2023-11-06 12:48:08] detector.coral                 INFO    : Starting detection process: 360
2023-11-06 12:48:08.201880880  [2023-11-06 12:48:08] frigate.app                    INFO    : Output process started: 362
2023-11-06 12:48:08.209565820  [2023-11-06 12:48:08] frigate.app                    INFO    : Camera processor started for ShopCam: 366
2023-11-06 12:48:08.213223746  [2023-11-06 12:48:08] frigate.app                    INFO    : Camera processor started for FrontDrivewayCam: 367
2023-11-06 12:48:08.213338806  [2023-11-06 12:48:08] frigate.app                    INFO    : Camera processor started for FrontYardCam: 368
2023-11-06 12:48:08.216991267  [2023-11-06 12:48:08] frigate.app                    INFO    : Camera processor started for WestSideCam: 369
2023-11-06 12:48:08.220707256  [2023-11-06 12:48:08] frigate.app                    INFO    : Camera processor started for BackYardCam: 370
2023-11-06 12:48:08.227523703  [2023-11-06 12:48:08] frigate.app                    INFO    : Capture process started for ShopCam: 372
2023-11-06 12:48:08.228141186  [2023-11-06 12:48:08] frigate.app                    INFO    : Capture process started for FrontDrivewayCam: 377
2023-11-06 12:48:08.231996110  [2023-11-06 12:48:08] frigate.app                    INFO    : Capture process started for FrontYardCam: 380
2023-11-06 12:48:08.236082517  [2023-11-06 12:48:08] frigate.app                    INFO    : Capture process started for WestSideCam: 386
2023-11-06 12:48:08.240802104  [2023-11-06 12:48:08] frigate.app                    INFO    : Capture process started for BackYardCam: 392
2023-11-06 12:48:08.247502962  [2023-11-06 12:48:08] frigate.video                  ERROR   : ShopCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:08.247508813  [2023-11-06 12:48:08] frigate.video                  ERROR   : ShopCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:08.250408440  [2023-11-06 12:48:08] frigate.video                  ERROR   : FrontDrivewayCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:08.250638197  [2023-11-06 12:48:08] frigate.video                  ERROR   : FrontDrivewayCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:08.255682339  [2023-11-06 12:48:08] frigate.video                  ERROR   : FrontYardCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:08.255830224  [2023-11-06 12:48:08] frigate.video                  ERROR   : FrontYardCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:08.258916952  [2023-11-06 12:48:08] frigate.video                  ERROR   : BackYardCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:08.259158740  [2023-11-06 12:48:08] frigate.video                  ERROR   : BackYardCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:08.259939023  [2023-11-06 12:48:08] frigate.video                  ERROR   : WestSideCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:08.260173474  [2023-11-06 12:48:08] frigate.video                  ERROR   : WestSideCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:10.909671920  [2023-11-06 12:48:08] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-11-06 12:48:10.916109236  [2023-11-06 12:48:10] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-11-06 12:48:28.252207205  [2023-11-06 12:48:28] watchdog.ShopCam               ERROR   : Ffmpeg process crashed unexpectedly for ShopCam.
2023-11-06 12:48:28.252517182  [2023-11-06 12:48:28] watchdog.ShopCam               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-06 12:48:28.252726478  [2023-11-06 12:48:28] ffmpeg.ShopCam.detect          ERROR   : rstp://admin:<password>@x.x.x.241:554/cam/realmonitor?channel=1&subtype=1: Protocol not found
2023-11-06 12:48:28.252981453  [2023-11-06 12:48:28] ffmpeg.ShopCam.detect          ERROR   : Did you mean file:rstp://admin:<password>@x.x.x.241:554/cam/realmonitor?channel=1&subtype=1?
2023-11-06 12:48:28.256187234  [2023-11-06 12:48:28] watchdog.FrontDrivewayCam      ERROR   : Ffmpeg process crashed unexpectedly for FrontDrivewayCam.
2023-11-06 12:48:28.256489044  [2023-11-06 12:48:28] watchdog.FrontDrivewayCam      ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-06 12:48:28.256698827  [2023-11-06 12:48:28] ffmpeg.FrontDrivewayCam.detect ERROR   : rstp://admin:<password>@x.x.x.242:554/cam/realmonitor?channel=1&subtype=1: Protocol not found
2023-11-06 12:48:28.256923407  [2023-11-06 12:48:28] ffmpeg.FrontDrivewayCam.detect ERROR   : Did you mean file:rstp://admin:<password>@x.x.x.242:554/cam/realmonitor?channel=1&subtype=1?
2023-11-06 12:48:28.260156989  [2023-11-06 12:48:28] watchdog.FrontYardCam          ERROR   : Ffmpeg process crashed unexpectedly for FrontYardCam.
2023-11-06 12:48:28.260266694  [2023-11-06 12:48:28] watchdog.FrontYardCam          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-06 12:48:28.260308595  [2023-11-06 12:48:28] ffmpeg.FrontYardCam.detect     ERROR   : rstp://admin:<password>@x.x.x.243:554/cam/realmonitor?channel=1&subtype=1: Protocol not found
2023-11-06 12:48:28.260386942  [2023-11-06 12:48:28] ffmpeg.FrontYardCam.detect     ERROR   : Did you mean file:rstp://admin:<password>@x.x.x.243:554/cam/realmonitor?channel=1&subtype=1?
2023-11-06 12:48:28.264909200  [2023-11-06 12:48:28] watchdog.WestSideCam           ERROR   : Ffmpeg process crashed unexpectedly for WestSideCam.
2023-11-06 12:48:28.264987939  [2023-11-06 12:48:28] watchdog.WestSideCam           ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-06 12:48:28.265063247  [2023-11-06 12:48:28] ffmpeg.WestSideCam.detect      ERROR   : rstp://admin:<password>@x.x.x.244:554/cam/realmonitor?channel=1&subtype=1: Protocol not found
2023-11-06 12:48:28.265182630  [2023-11-06 12:48:28] ffmpeg.WestSideCam.detect      ERROR   : Did you mean file:rstp://admin:<password>@x.x.x.244:554/cam/realmonitor?channel=1&subtype=1?
2023-11-06 12:48:28.267118483  [2023-11-06 12:48:28] watchdog.BackYardCam           ERROR   : Ffmpeg process crashed unexpectedly for BackYardCam.
2023-11-06 12:48:28.270474949  [2023-11-06 12:48:28] frigate.video                  ERROR   : ShopCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:28.270659885  [2023-11-06 12:48:28] frigate.video                  ERROR   : FrontYardCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:28.270689213  [2023-11-06 12:48:28] frigate.video                  ERROR   : ShopCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:28.270774542  [2023-11-06 12:48:28] frigate.video                  ERROR   : FrontYardCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:28.270820991  [2023-11-06 12:48:28] frigate.video                  ERROR   : FrontDrivewayCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:28.270869146  [2023-11-06 12:48:28] frigate.video                  ERROR   : FrontDrivewayCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:28.270965141  [2023-11-06 12:48:28] watchdog.BackYardCam           ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-06 12:48:28.271014273  [2023-11-06 12:48:28] ffmpeg.BackYardCam.detect      ERROR   : rstp://admin:<password>@x.x.x.245:554/cam/realmonitor?channel=1&subtype=1: Protocol not found
2023-11-06 12:48:28.271084310  [2023-11-06 12:48:28] ffmpeg.BackYardCam.detect      ERROR   : Did you mean file:rstp://admin:<password>@x.x.x.245:554/cam/realmonitor?channel=1&subtype=1?
2023-11-06 12:48:28.278438947  [2023-11-06 12:48:28] frigate.video                  ERROR   : WestSideCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:28.278507838  [2023-11-06 12:48:28] frigate.video                  ERROR   : WestSideCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:28.279365597  [2023-11-06 12:48:28] frigate.video                  ERROR   : BackYardCam: Unable to read frames from ffmpeg process.
2023-11-06 12:48:28.279457200  [2023-11-06 12:48:28] frigate.video                  ERROR   : BackYardCam: ffmpeg process is not running. exiting capture thread...
2023-11-06 12:48:38.264536920  [2023-11-06 12:48:38] watchdog.ShopCam               ERROR   : Ffmpeg process crashed unexpectedly for ShopCam.
2023-11-06 12:48:38.271405642  [2023-11-06 12:48:38] watchdog.FrontYardCam          ERROR   : Ffmpeg process crashed unexpectedly for FrontYardCam.
2023-11-06 12:48:38.271409238  [2023-11-06 12:48:38] watchdog.ShopCam               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.

Frigate stats

{"BackYardCam":{"camera_fps":0.0,"capture_pid":392,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":1959,"pid":370,"process_fps":0.0,"skipped_fps":0.0},"FrontDrivewayCam":{"camera_fps":0.0,"capture_pid":377,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":1958,"pid":367,"process_fps":0.0,"skipped_fps":0.0},"FrontYardCam":{"camera_fps":0.0,"capture_pid":380,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":1960,"pid":368,"process_fps":0.0,"skipped_fps":0.0},"ShopCam":{"camera_fps":0.0,"capture_pid":372,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":1961,"pid":366,"process_fps":0.0,"skipped_fps":0.0},"WestSideCam":{"camera_fps":0.0,"capture_pid":386,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":1962,"pid":369,"process_fps":0.0,"skipped_fps":0.0},"cpu_usages":{"%Cpu(s):":{"cpu":"id,","mem":"0.0"},"1":{"cpu":"0.0","mem":"0.0"},"106":{"cpu":"0.0","mem":"0.0"},"108":{"cpu":"0.0","mem":"0.1"},"134":{"cpu":"0.0","mem":"0.0"},"135":{"cpu":"0.0","mem":"0.0"},"136":{"cpu":"0.0","mem":"0.0"},"137":{"cpu":"0.0","mem":"0.0"},"145":{"cpu":"0.0","mem":"0.0"},"15":{"cpu":"0.0","mem":"0.0"},"164":{"cpu":"0.0","mem":"0.0"},"17":{"cpu":"0.0","mem":"0.0"},"1933":{"cpu":"0.0","mem":"0.0"},"1977":{"cpu":"0.0","mem":"0.0"},"24":{"cpu":"0.0","mem":"0.0"},"25":{"cpu":"0.0","mem":"0.0"},"26":{"cpu":"0.0","mem":"0.0"},"27":{"cpu":"0.0","mem":"0.0"},"28":{"cpu":"0.0","mem":"0.0"},"29":{"cpu":"0.0","mem":"0.0"},"30":{"cpu":"0.0","mem":"0.0"},"31":{"cpu":"0.0","mem":"0.0"},"32":{"cpu":"0.0","mem":"0.0"},"354":{"cpu":"0.0","mem":"0.5"},"359":{"cpu":"0.0","mem":"0.1"},"360":{"cpu":"0.0","mem":"0.6"},"362":{"cpu":"0.0","mem":"0.6"},"366":{"cpu":"0.0","mem":"0.6"},"367":{"cpu":"0.0","mem":"0.6"},"368":{"cpu":"0.0","mem":"0.6"},"369":{"cpu":"0.0","mem":"0.6"},"370":{"cpu":"0.0","mem":"0.6"},"372":{"cpu":"0.0","mem":"0.6"},"374":{"cpu":"0.0","mem":"0.1"},"377":{"cpu":"0.0","mem":"0.6"},"380":{"cpu":"0.0","mem":"0.6"},"381":{"cpu":"0.0","mem":"0.1"},"386":{"cpu":"0.0","mem":"0.6"},"388":{"cpu":"0.0","mem":"0.1"},"392":{"cpu":"0.0","mem":"0.6"},"397":{"cpu":"0.0","mem":"0.1"},"404":{"cpu":"0.0","mem":"0.1"},"407":{"cpu":"0.0","mem":"0.1"},"41":{"cpu":"0.0","mem":"0.0"},"42":{"cpu":"0.0","mem":"0.0"},"80":{"cpu":"0.0","mem":"0.0"},"81":{"cpu":"0.0","mem":"0.0"},"82":{"cpu":"0.0","mem":"0.0"},"89":{"cpu":"0.0","mem":"0.1"},"98":{"cpu":"0.0","mem":"1.5"},"MiB":{"cpu":"13917.0","mem":"avail"},"PID":{"cpu":"%CPU","mem":"%MEM"},"Tasks:":{"cpu":"stopped,","mem":"0"},"top":{"cpu":"average:","mem":"0.00,"}},"detection_fps":0.0,"detectors":{"coral":{"detection_start":0.0,"inference_speed":10.0,"pid":360}},"gpu_usages":{"intel-vaapi":{"gpu":"0.0 %","mem":"- %"}},"service":{"last_updated":1699301295,"latest_version":"unknown","storage":{"/dev/shm":{"free":732.5,"mount_type":"tmpfs","total":734.0,"used":1.5},"/media/frigate/clips":{"free":457148.4,"mount_type":"ext4","total":489589.3,"used":7495.9},"/media/frigate/recordings":{"free":457148.4,"mount_type":"ext4","total":489589.3,"used":7495.9},"/tmp/cache":{"free":1000.0,"mount_type":"tmpfs","total":1000.0,"used":0.0}},"temperatures":{},"uptime":1207,"version":"0.12.1-367d724"}}

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Any other information that may be helpful

No response

You have typed rstp for all of your cameras when it should be rtsp

You have typed rstp for all of your cameras when it should be rtsp

Wow... yep. That was the issue. Embarrassing, but thank you NickM-27!