blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.46k stars 1.79k forks source link

[Support]: ffmpeg - no frames received | deprecated pixel format #6652

Closed Symbiot78 closed 1 year ago

Symbiot78 commented 1 year ago

Describe the problem you are having

Ffmpeg keeps crashing saying it hasn't received any frame sin 20 seconds. This goes for all 3 cameras I have. 2 hikvision, 1 unifi

I created the below config file to test with a little added as possible but it makes no difference.

strange thing is that it does kindda work.. but I think these crashes happen 1-2 times pr. minute.

If i open frigate and keep the feed running I see no issues.

the error happens whether or not there's any movement or anything like that.

Version

0.12.0-DA3E197

Frigate config file

mqtt:
  host: 192.168.1.131
  user: mqttuser
  password: *******

cameras:
  carport:
    ffmpeg:
      inputs:
        - path: rtsp://*****:*******@10.20.10.32/Streaming/Channels/102
          # roles: 
          #   - detect
    detect:
      enabled: false
      width: 640
      height: 360

  # Optional: birdseye configuration
birdseye:
  # Optional: Enable birdseye view (default: shown below)
  enabled: True
  # Optional: Width of the output resolution (default: shown below)
  width: 1280
  # Optional: Height of the output resolution (default: shown below)
  height: 720
  # Optional: Encoding quality of the mpeg1 feed (default: shown below)
  # 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
  quality: 8
  # Optional: Mode of the view. Available options are: objects, motion, and continuous
  #   objects - cameras are included if they have had a tracked object within the last 30 seconds
  #   motion - cameras are included if motion was detected in the last 30 seconds
  #   continuous - all cameras are included always
  mode: continuous

Relevant log output

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service go2rtc-healthcheck successfully started
s6-rc: info: service nginx successfully started
2023-05-30 21:57:51.696051442  [INFO] Preparing go2rtc config...
s6-rc: info: service legacy-services: starting
2023-05-30 21:57:51.697053586  [INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
2023-05-30 21:57:51.701320649  [INFO] Starting Frigate...
2023-05-30 21:57:51.805006155  [INFO] Starting go2rtc...
2023-05-30 21:57:51.870615985  21:57:51.870 INF go2rtc version 1.2.0 linux/amd64
2023-05-30 21:57:51.870742100  21:57:51.870 INF [api] listen addr=:1984
2023-05-30 21:57:51.870847341  21:57:51.870 INF [rtsp] listen addr=:8554
2023-05-30 21:57:51.870947917  21:57:51.870 INF [srtp] listen addr=:8443
2023-05-30 21:57:51.871034172  21:57:51.871 INF [webrtc] listen addr=:8555
2023-05-30 21:57:52.359406767  [2023-05-30 21:57:52] frigate.app                    INFO    : Starting Frigate (0.12.0-da3e197)
2023-05-30 21:57:52.368646895  [2023-05-30 21:57:52] peewee_migrate                 INFO    : Starting migrations
2023-05-30 21:57:52.371768426  [2023-05-30 21:57:52] peewee_migrate                 INFO    : There is nothing to migrate
2023-05-30 21:57:52.382187472  [2023-05-30 21:57:52] detector.cpu                   INFO    : Starting detection process: 326
2023-05-30 21:57:52.382818492  [2023-05-30 21:57:52] frigate.app                    INFO    : Output process started: 328
2023-05-30 21:57:52.384144383  [2023-05-30 21:57:52] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-05-30 21:57:52.390571484  [2023-05-30 21:57:52] frigate.app                    INFO    : Camera processor started for carport: 332
2023-05-30 21:57:52.394562080  [2023-05-30 21:57:52] frigate.app                    INFO    : Capture process started for carport: 333
2023-05-30 21:57:59.515197543  192.168.1.33 - - [30/May/2023:21:57:59 +0200] "GET /api/stats HTTP/1.1" 200 2124 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:57:59.528436713  192.168.1.131 - - [30/May/2023:21:57:59 +0200] "GET /api/stats HTTP/1.1" 200 2124 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:01.697144234  [INFO] Starting go2rtc healthcheck service...
2023-05-30 21:58:07.508496185  192.168.1.33 - - [30/May/2023:21:58:07 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:07.526702378  192.168.1.131 - - [30/May/2023:21:58:07 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:15.510820289  192.168.1.33 - - [30/May/2023:21:58:15 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:15.527994652  192.168.1.131 - - [30/May/2023:21:58:15 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:23.511324635  192.168.1.33 - - [30/May/2023:21:58:23 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:23.526800731  192.168.1.131 - - [30/May/2023:21:58:23 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:31.510210203  192.168.1.33 - - [30/May/2023:21:58:31 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:31.523344895  192.168.1.131 - - [30/May/2023:21:58:31 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:39.508661047  192.168.1.33 - - [30/May/2023:21:58:39 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:39.525067125  192.168.1.131 - - [30/May/2023:21:58:39 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:47.512650370  192.168.1.33 - - [30/May/2023:21:58:47 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:47.527391962  192.168.1.131 - - [30/May/2023:21:58:47 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 23:59:24.425182435  [2023-05-30 23:59:24] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-05-30 23:59:24.425622219  [2023-05-30 23:59:24] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-05-30 21:58:50.706246277  [2023-05-30 21:58:50] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-05-30 21:58:50.706464347  [2023-05-30 21:58:50] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-05-30 21:58:55.508143113  192.168.1.33 - - [30/May/2023:21:58:55 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:58:55.524277401  192.168.1.131 - - [30/May/2023:21:58:55 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:00.707558338  [2023-05-30 21:59:00] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-05-30 21:59:00.707622932  [2023-05-30 21:59:00] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-05-30 21:59:00.707742328  [2023-05-30 21:59:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55b1472a2080] [swscaler @ 0x55b14720d200] deprecated pixel format used, make sure you did set range correctly
2023-05-30 21:59:00.707744258  [2023-05-30 21:59:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55b1472a2080] [swscaler @ 0x55b1472c0ec0] deprecated pixel format used, make sure you did set range correctly
2023-05-30 21:59:00.707754310  [2023-05-30 21:59:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55b1472d1a40] [swscaler @ 0x55b1472a2080] deprecated pixel format used, make sure you did set range correctly
2023-05-30 21:59:00.707803878  [2023-05-30 21:59:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55b1472d1a40] [swscaler @ 0x55b14720d200] deprecated pixel format used, make sure you did set range correctly
2023-05-30 21:59:00.707811658  [2023-05-30 21:59:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55b1472d1a40] [swscaler @ 0x55b1472a2080] deprecated pixel format used, make sure you did set range correctly
2023-05-30 21:59:00.707868490  [2023-05-30 21:59:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55b1472d1a40] [swscaler @ 0x55b14720d200] deprecated pixel format used, make sure you did set range correctly
2023-05-30 21:59:00.707876573  [2023-05-30 21:59:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55b1472d1a40] [swscaler @ 0x55b1472a2080] deprecated pixel format used, make sure you did set range correctly
2023-05-30 21:59:00.707908130  [2023-05-30 21:59:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55b1472d1a40] [swscaler @ 0x55b14720d200] deprecated pixel format used, make sure you did set range correctly
2023-05-30 21:59:03.508503565  192.168.1.33 - - [30/May/2023:21:59:03 +0200] "GET /api/stats HTTP/1.1" 200 2155 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:03.523805957  192.168.1.131 - - [30/May/2023:21:59:03 +0200] "GET /api/stats HTTP/1.1" 200 2155 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:11.511484131  192.168.1.33 - - [30/May/2023:21:59:11 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:11.523111372  192.168.1.131 - - [30/May/2023:21:59:11 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:19.510873022  192.168.1.33 - - [30/May/2023:21:59:19 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:19.523974401  192.168.1.131 - - [30/May/2023:21:59:19 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:27.511056982  192.168.1.33 - - [30/May/2023:21:59:27 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:27.527789269  192.168.1.131 - - [30/May/2023:21:59:27 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:35.509486948  192.168.1.33 - - [30/May/2023:21:59:35 +0200] "GET /api/stats HTTP/1.1" 200 2124 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:35.523626422  192.168.1.131 - - [30/May/2023:21:59:35 +0200] "GET /api/stats HTTP/1.1" 200 2124 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:43.508406771  192.168.1.33 - - [30/May/2023:21:59:43 +0200] "GET /api/stats HTTP/1.1" 200 2124 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:43.525462126  192.168.1.131 - - [30/May/2023:21:59:43 +0200] "GET /api/stats HTTP/1.1" 200 2124 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-31 00:00:24.425338810  [2023-05-31 00:00:24] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-05-31 00:00:24.425392911  [2023-05-31 00:00:24] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-05-30 21:59:50.691901810  [2023-05-30 21:59:50] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-05-30 21:59:50.692028841  [2023-05-30 21:59:50] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-05-30 21:59:51.507936163  192.168.1.33 - - [30/May/2023:21:59:51 +0200] "GET /api/stats HTTP/1.1" 200 2156 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 21:59:51.527684178  192.168.1.131 - - [30/May/2023:21:59:51 +0200] "GET /api/stats HTTP/1.1" 200 2156 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2023-05-30 21:59:52.409604072  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2023-05-30 21:59:52.461427363  [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
s6-rc: info: service nginx-log successfully stopped
2023-05-30 21:59:52.464140052  [2023-05-30 21:59:52] frigate.app                    INFO    : Stopping...
2023-05-30 21:59:52.464824412  [2023-05-30 21:59:52] detector.cpu                   INFO    : Signal to exit detection process...
2023-05-30 21:59:52.465277955  [2023-05-30 21:59:52] root                           INFO    : Waiting for detection process to exit gracefully...
2023-05-30 21:59:52.465671170  [2023-05-30 21:59:52] frigate.record                 INFO    : Exiting recording maintenance...
2023-05-30 21:59:52.465733498  [2023-05-30 21:59:52] frigate.storage                INFO    : Exiting storage maintainer...
2023-05-30 21:59:52.465799883  [2023-05-30 21:59:52] frigate.watchdog               INFO    : Exiting watchdog...
2023-05-30 21:59:52.465853012  [2023-05-30 21:59:52] frigate.events                 INFO    : Exiting event cleanup...
2023-05-30 21:59:52.465907541  [2023-05-30 21:59:52] frigate.record                 INFO    : Exiting recording cleanup...
2023-05-30 21:59:52.503497877  [2023-05-30 21:59:52] detector.cpu                   INFO    : Exited detection process...
2023-05-30 21:59:52.509179814  [2023-05-30 21:59:52] root                           INFO    : Detection process has exited...
2023-05-30 21:59:52.617862635  [2023-05-30 21:59:52] frigate.events                 INFO    : Exiting event processor...
2023-05-30 21:59:52.693876096  [2023-05-30 21:59:52] frigate.object_processing      INFO    : Exiting object processor...
2023-05-30 21:59:52.999489452  [2023-05-30 21:59:52] frigate.comms.ws               INFO    : Exiting websocket client...
2023-05-30 21:59:53.799642775  [2023-05-30 21:59:53] frigate.stats                  INFO    : Exiting stats emitter...
2023-05-30 21:59:53.799787639  [2023-05-30 21:59:53] peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
2023-05-30 21:59:53.801411023  [2023-05-30 21:59:53] watchdog.carport               INFO    : Terminating the existing ffmpeg process...
2023-05-30 21:59:53.801413946  [2023-05-30 21:59:53] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-05-30 21:59:54.696745345  [2023-05-30 21:59:54] frigate.video                  INFO    : carport: exiting subprocess
2023-05-30 21:59:55.025608476  [2023-05-30 21:59:55] frigate.output                 INFO    : exiting output process...
2023-05-30 21:59:56.151441649  /usr/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown
2023-05-30 21:59:56.151444973    warnings.warn('resource_tracker: There appear to be %d '
2023-05-30 21:59:56.152042616  [INFO] Service Frigate exited with code 0 (by signal 0)
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
2023-05-30 21:59:56.153607620  exit OK
s6-rc: info: service frigate-log successfully stopped
2023-05-30 21:59:56.156000026  [INFO] The go2rtc service exited with code 0 (by signal 0)
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
s6-rc: info: service go2rtc-log successfully stopped
s6-rc: info: service log-prepare: stopping
s6-rc: info: service s6rc-fdholder: stopping
s6-rc: info: service log-prepare successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service s6rc-fdholder successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service go2rtc-healthcheck successfully started
2023-05-30 22:00:00.784094826  [INFO] Preparing go2rtc config...
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
2023-05-30 22:00:00.787876523  [INFO] Starting Frigate...
2023-05-30 22:00:00.788817769  [INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
2023-05-30 22:00:00.897715804  [INFO] Starting go2rtc...
2023-05-30 22:00:00.991579397  22:00:00.988 INF go2rtc version 1.2.0 linux/amd64
2023-05-30 22:00:00.991583256  22:00:00.989 INF [api] listen addr=:1984
2023-05-30 22:00:00.991584640  22:00:00.989 INF [rtsp] listen addr=:8554
2023-05-30 22:00:00.991585645  22:00:00.989 INF [srtp] listen addr=:8443
2023-05-30 22:00:00.991586811  22:00:00.989 INF [webrtc] listen addr=:8555
2023-05-30 22:00:01.335576390  2023/05/30 22:00:01 [error] 123#123: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.33, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.1.177:5000"
2023-05-30 22:00:01.335711880  192.168.1.33 - - [30/May/2023:22:00:01 +0200] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:01.355362629  2023/05/30 22:00:01 [error] 124#124: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.131, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "192.168.1.177:5000"
2023-05-30 22:00:01.355365919  192.168.1.131 - - [30/May/2023:22:00:01 +0200] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:01.404453927  [2023-05-30 22:00:01] frigate.app                    INFO    : Starting Frigate (0.12.0-da3e197)
2023-05-30 22:00:01.413661966  [2023-05-30 22:00:01] peewee_migrate                 INFO    : Starting migrations
2023-05-30 22:00:01.416136259  [2023-05-30 22:00:01] peewee_migrate                 INFO    : There is nothing to migrate
2023-05-30 22:00:01.425722407  [2023-05-30 22:00:01] detector.cpu                   INFO    : Starting detection process: 323
2023-05-30 22:00:01.430505996  [2023-05-30 22:00:01] frigate.app                    INFO    : Output process started: 325
2023-05-30 22:00:01.430635485  [2023-05-30 22:00:01] frigate.app                    INFO    : Camera processor started for carport: 328
2023-05-30 22:00:01.430689860  [2023-05-30 22:00:01] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-05-30 22:00:01.435502773  [2023-05-30 22:00:01] frigate.app                    INFO    : Capture process started for carport: 330
2023-05-30 22:00:09.513024906  192.168.1.33 - - [30/May/2023:22:00:09 +0200] "GET /api/stats HTTP/1.1" 200 2124 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:09.523572233  192.168.1.131 - - [30/May/2023:22:00:09 +0200] "GET /api/stats HTTP/1.1" 200 2124 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:10.786346369  [INFO] Starting go2rtc healthcheck service...
2023-05-30 22:00:17.511610126  192.168.1.33 - - [30/May/2023:22:00:17 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:17.523677493  192.168.1.131 - - [30/May/2023:22:00:17 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:25.511218205  192.168.1.33 - - [30/May/2023:22:00:25 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:25.526683225  192.168.1.131 - - [30/May/2023:22:00:25 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:33.510802988  192.168.1.33 - - [30/May/2023:22:00:33 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:33.526533819  192.168.1.131 - - [30/May/2023:22:00:33 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:41.508451751  192.168.1.33 - - [30/May/2023:22:00:41 +0200] "GET /api/stats HTTP/1.1" 200 2155 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:41.527877648  192.168.1.131 - - [30/May/2023:22:00:41 +0200] "GET /api/stats HTTP/1.1" 200 2155 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:49.511602634  192.168.1.33 - - [30/May/2023:22:00:49 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:49.523100504  192.168.1.131 - - [30/May/2023:22:00:49 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-31 00:01:24.426152364  [2023-05-31 00:01:24] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-05-31 00:01:24.426237135  [2023-05-31 00:01:24] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-05-30 22:00:50.700070402  [2023-05-30 22:00:50] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-05-30 22:00:50.700579352  [2023-05-30 22:00:50] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-05-30 22:00:57.512469160  192.168.1.33 - - [30/May/2023:22:00:57 +0200] "GET /api/stats HTTP/1.1" 200 2091 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:00:57.528139258  192.168.1.131 - - [30/May/2023:22:00:57 +0200] "GET /api/stats HTTP/1.1" 200 2091 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:00.702125176  [2023-05-30 22:01:00] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-05-30 22:01:00.702211723  [2023-05-30 22:01:00] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-05-30 22:01:00.702217178  [2023-05-30 22:01:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55d45acd9ec0] [swscaler @ 0x55d45acea840] deprecated pixel format used, make sure you did set range correctly
2023-05-30 22:01:00.702245490  [2023-05-30 22:01:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55d45acd9ec0] [swscaler @ 0x55d45ad7ed40] deprecated pixel format used, make sure you did set range correctly
2023-05-30 22:01:00.702340665  [2023-05-30 22:01:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55d45acd9ec0] [swscaler @ 0x55d45acea840] deprecated pixel format used, make sure you did set range correctly
2023-05-30 22:01:00.702343174  [2023-05-30 22:01:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55d45acd9ec0] [swscaler @ 0x55d45ad7ed40] deprecated pixel format used, make sure you did set range correctly
2023-05-30 22:01:00.702352179  [2023-05-30 22:01:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55d45acd9ec0] [swscaler @ 0x55d45acea840] deprecated pixel format used, make sure you did set range correctly
2023-05-30 22:01:00.702383411  [2023-05-30 22:01:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55d45acd9ec0] [swscaler @ 0x55d45ad7ed40] deprecated pixel format used, make sure you did set range correctly
2023-05-30 22:01:00.702415459  [2023-05-30 22:01:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55d45acd9ec0] [swscaler @ 0x55d45acea840] deprecated pixel format used, make sure you did set range correctly
2023-05-30 22:01:00.702450436  [2023-05-30 22:01:00] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55d45acd9ec0] [swscaler @ 0x55d45ad7ed40] deprecated pixel format used, make sure you did set range correctly
2023-05-30 22:01:05.512510771  192.168.1.33 - - [30/May/2023:22:01:05 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:05.527022242  192.168.1.131 - - [30/May/2023:22:01:05 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:13.508486152  192.168.1.33 - - [30/May/2023:22:01:13 +0200] "GET /api/stats HTTP/1.1" 200 2156 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:13.527935849  192.168.1.131 - - [30/May/2023:22:01:13 +0200] "GET /api/stats HTTP/1.1" 200 2156 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:21.512497336  192.168.1.33 - - [30/May/2023:22:01:21 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:21.527787494  192.168.1.131 - - [30/May/2023:22:01:21 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:29.511970053  192.168.1.33 - - [30/May/2023:22:01:29 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:29.528028497  192.168.1.131 - - [30/May/2023:22:01:29 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:37.514504645  192.168.1.33 - - [30/May/2023:22:01:37 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"
2023-05-30 22:01:37.527969331  192.168.1.131 - - [30/May/2023:22:01:37 +0200] "GET /api/stats HTTP/1.1" 200 2123 "-" "HomeAssistant/2023.5.4 aiohttp/3.8.4 Python/3.10" "-"

FFprobe output from your camera

ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
10.20.10.32: No such file or directory

Frigate stats

{"carport":{"camera_fps":5.1,"capture_pid":330,"detection_enabled":0,"detection_fps":0.0,"ffmpeg_pid":743,"pid":328,"process_fps":5.1,"skipped_fps":0.0},"cpu_usages":{"%Cpu(s):":{"cpu":"id,","mem":"0.1"},"1":{"cpu":"0.0","mem":"0.0"},"111":{"cpu":"1.0","mem":"0.3"},"118":{"cpu":"0.0","mem":"0.0"},"123":{"cpu":"0.0","mem":"0.0"},"124":{"cpu":"0.0","mem":"0.0"},"125":{"cpu":"0.0","mem":"0.0"},"126":{"cpu":"0.0","mem":"0.0"},"136":{"cpu":"0.0","mem":"0.0"},"15":{"cpu":"0.0","mem":"0.0"},"16":{"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"},"316":{"cpu":"0.0","mem":"0.2"},"32":{"cpu":"0.0","mem":"0.0"},"322":{"cpu":"0.0","mem":"0.0"},"323":{"cpu":"0.0","mem":"0.2"},"325":{"cpu":"0.3","mem":"0.2"},"328":{"cpu":"0.3","mem":"0.2"},"329":{"cpu":"0.0","mem":"0.0"},"330":{"cpu":"0.3","mem":"0.2"},"333":{"cpu":"0.0","mem":"0.0"},"41":{"cpu":"0.0","mem":"0.0"},"42":{"cpu":"0.0","mem":"0.0"},"708":{"cpu":"0.0","mem":"0.0"},"743":{"cpu":"1.3","mem":"0.1"},"771":{"cpu":"0.0","mem":"0.0"},"779":{"cpu":"0.0","mem":"0.0"},"783":{"cpu":"0.0","mem":"0.0"},"787":{"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.0"},"95":{"cpu":"0.0","mem":"0.0"},"MiB":{"cpu":"44126.2","mem":"avail"},"PID":{"cpu":"%CPU","mem":"%MEM"},"Tasks:":{"cpu":"stopped,","mem":"0"},"top":{"cpu":"users,","mem":"load"}},"detection_fps":0.0,"detectors":{"cpu":{"detection_start":0.0,"inference_speed":10.0,"pid":323}},"service":{"last_updated":1685477121,"latest_version":"0.12.0","storage":{"/dev/shm":{"free":133.5,"mount_type":"tmpfs","total":134.2,"used":0.7},"/media/frigate/clips":{"free":424370.6,"mount_type":"ext4","total":2163349.6,"used":1629011.1},"/media/frigate/recordings":{"free":424370.6,"mount_type":"ext4","total":2163349.6,"used":1629011.1},"/tmp/cache":{"free":1500.0,"mount_type":"tmpfs","total":1500.0,"used":0.0}},"temperatures":{},"uptime":320,"version":"0.12.0-da3e197"}}

Operating system

Debian

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

hikvision DS-2CD2347G2-LU

Any other information that may be helpful

frigate runs on a debian docker host which in turn runs as a VM on an esxi OS.

The host is an intel nuc NUC11TNHv7 4 CPUs x 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz

ls -l /sys/class/drm/renderD*/device/driver lrwxrwxrwx 1 root root 0 May 29 11:24 /sys/class/drm/renderD128/device/driver -> ../../../bus/pci/drivers/vmwgfx

Symbiot78 commented 1 year ago

oh .. the docker compose part is :

frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    image: ghcr.io/blakeblackshear/frigate:stable
    #image: ghcr.io/blakeblackshear/frigate:dev-6d0c2ec
    shm_size: "128mb" # 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
    #  - /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
      - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
    volumes:
      - /etc/localtime:/etc/localtime:ro
      #- /srv/storage0a/portainer/docker/frigate/config.yml:/config/config.yml:ro
      - /srv/storage0a/surveillance:/media/frigate
      - /srv/storage0a/portainer/docker/frigate:/config
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1500000000
    ports:
      - "5000:5000"
      #- "1935:1935" # RTMP feeds
      - "8554:8554" # RTSP feeds
      - "8555:8555/tcp" # WebRTC over tcp
      - "8555:8555/udp" # WebRTC over udp
    environment:
      FRIGATE_RTSP_PASSWORD: "password"
      TZ: "Europe/Copenhagen"
NickM-27 commented 1 year ago

Ffprobe failed, would be good to see that. You need to run it in the container or in the frigate webUI

Symbiot78 commented 1 year ago

hi Nick.. The ffprobe was run from inside the container. this is copy/pasted from frigate web

FFPROBE OUTPUT Stream 0: Return Code: 0

Video:

Codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 Resolution: 640x360 FPS: 12/1

Symbiot78 commented 1 year ago

So - I tried with a very basic config and each of my 3 cameras. Same issue with all 3

mqtt: host: 192.168.1.131 user: mqttuser password: mqtt1

cameras: carport: ffmpeg: inputs:

NickM-27 commented 1 year ago

Seeing only the Frigate logs would be helpful

Symbiot78 commented 1 year ago

not sure if this is what you're asking for.. but here goes..

2023-06-07 09:02:18.377658156  [INFO] Starting Frigate...
2023-06-07 09:02:18.992874010  [2023-06-07 09:02:18] frigate.app                    INFO    : Starting Frigate (0.12.0-da3e197)
2023-06-07 09:02:19.007747573  [2023-06-07 09:02:19] peewee_migrate                 INFO    : Starting migrations
2023-06-07 09:02:19.010804274  [2023-06-07 09:02:19] peewee_migrate                 INFO    : There is nothing to migrate
2023-06-07 09:02:19.025108218  [2023-06-07 09:02:19] detector.cpu                   INFO    : Starting detection process: 325
2023-06-07 09:02:19.028036128  [2023-06-07 09:02:19] frigate.app                    INFO    : Output process started: 327
2023-06-07 09:02:19.029489784  [2023-06-07 09:02:19] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-06-07 09:02:19.035045234  [2023-06-07 09:02:19] frigate.app                    INFO    : Camera processor started for carport: 330
2023-06-07 09:02:19.040232673  [2023-06-07 09:02:19] frigate.app                    INFO    : Capture process started for carport: 332
2023-06-07 11:03:38.466989659  [2023-06-07 11:03:38] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-06-07 11:03:38.467052704  [2023-06-07 11:03:38] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-06-07 09:03:04.632753456  [2023-06-07 09:03:04] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-06-07 09:03:04.632928087  [2023-06-07 09:03:04] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-06-07 09:03:14.634911073  [2023-06-07 09:03:14] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-06-07 09:03:14.641002722  [2023-06-07 09:03:14] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-06-07 09:03:14.641010760  [2023-06-07 09:03:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55e44075e6c0] [swscaler @ 0x55e44076b680] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:03:14.641014707  [2023-06-07 09:03:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55e44075e6c0] [swscaler @ 0x55e44078b800] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:03:14.641017519  [2023-06-07 09:03:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55e440781880] [swscaler @ 0x55e44078e880] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:03:14.641019618  [2023-06-07 09:03:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55e440781880] [swscaler @ 0x55e44075fe40] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:03:14.641037512  [2023-06-07 09:03:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55e44075e6c0] [swscaler @ 0x55e440781880] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:03:14.641051345  [2023-06-07 09:03:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55e44075e6c0] [swscaler @ 0x55e44078e880] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:03:14.641053324  [2023-06-07 09:03:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55e44075e6c0] [swscaler @ 0x55e440781880] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:03:14.641055177  [2023-06-07 09:03:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55e44075e6c0] [swscaler @ 0x55e44078e880] deprecated pixel format used, make sure you did set range correctly
2023-06-07 11:04:38.468432941  [2023-06-07 11:04:38] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-06-07 11:04:38.468436107  [2023-06-07 11:04:38] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-06-07 09:04:04.641894168  [2023-06-07 09:04:04] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-06-07 09:04:04.641899134  [2023-06-07 09:04:04] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-06-07 09:04:14.643421568  [2023-06-07 09:04:14] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-06-07 09:04:14.643425808  [2023-06-07 09:04:14] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-06-07 09:04:14.643427452  [2023-06-07 09:04:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55abff42e180] [swscaler @ 0x55abff43b140] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:04:14.643428844  [2023-06-07 09:04:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55abff42e180] [swscaler @ 0x55abff45ad80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:04:14.643430287  [2023-06-07 09:04:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55abff451240] [swscaler @ 0x55abff45e200] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:04:14.643431696  [2023-06-07 09:04:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55abff451240] [swscaler @ 0x55abff431fc0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:04:14.643432954  [2023-06-07 09:04:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55abff42e180] [swscaler @ 0x55abff43b140] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:04:14.643434242  [2023-06-07 09:04:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55abff42e180] [swscaler @ 0x55abff452f80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:04:14.643435569  [2023-06-07 09:04:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55abff42e180] [swscaler @ 0x55abff43b140] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:04:14.643436895  [2023-06-07 09:04:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55abff42e180] [swscaler @ 0x55abff454a40] deprecated pixel format used, make sure you did set range correctly
2023-06-07 11:05:38.469049349  [2023-06-07 11:05:38] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-06-07 11:05:38.469068785  [2023-06-07 11:05:38] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-06-07 09:05:04.637635799  [2023-06-07 09:05:04] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-06-07 09:05:04.637774802  [2023-06-07 09:05:04] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-06-07 09:05:14.639612639  [2023-06-07 09:05:14] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-06-07 09:05:14.639669767  [2023-06-07 09:05:14] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-06-07 09:05:14.639715865  [2023-06-07 09:05:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55df10ac6a40] [swscaler @ 0x55df10ad3a00] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:05:14.639760485  [2023-06-07 09:05:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55df10ac6a40] [swscaler @ 0x55df10af3b80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:05:14.639785802  [2023-06-07 09:05:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55df10ae9c00] [swscaler @ 0x55df10af6c00] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:05:14.639820505  [2023-06-07 09:05:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55df10ae9c00] [swscaler @ 0x55df10aca880] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:05:14.639852087  [2023-06-07 09:05:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55df10ac6a40] [swscaler @ 0x55df10ad3a00] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:05:14.639886244  [2023-06-07 09:05:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55df10ac6a40] [swscaler @ 0x55df10aeb940] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:05:14.639923703  [2023-06-07 09:05:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55df10ac6a40] [swscaler @ 0x55df10ad3a00] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:05:14.639949329  [2023-06-07 09:05:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55df10ac6a40] [swscaler @ 0x55df10aea7c0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 11:06:38.471270114  [2023-06-07 11:06:38] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-06-07 11:06:38.471274326  [2023-06-07 11:06:38] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-06-07 09:06:04.609563601  [2023-06-07 09:06:04] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-06-07 09:06:04.609566874  [2023-06-07 09:06:04] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-06-07 09:06:14.610930270  [2023-06-07 09:06:14] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-06-07 09:06:14.610934768  [2023-06-07 09:06:14] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-06-07 09:06:14.610936456  [2023-06-07 09:06:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56454c301140] [swscaler @ 0x56454c30e100] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:06:14.610937856  [2023-06-07 09:06:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56454c301140] [swscaler @ 0x56454c32e280] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:06:14.610939257  [2023-06-07 09:06:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56454c324300] [swscaler @ 0x56454c331300] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:06:14.610940653  [2023-06-07 09:06:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56454c324300] [swscaler @ 0x56454c304f80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:06:14.610941994  [2023-06-07 09:06:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56454c301140] [swscaler @ 0x56454c30e100] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:06:14.610943500  [2023-06-07 09:06:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56454c301140] [swscaler @ 0x56454c326680] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:06:14.610944846  [2023-06-07 09:06:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56454c324300] [swscaler @ 0x56454c331300] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:06:14.610946185  [2023-06-07 09:06:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56454c324300] [swscaler @ 0x56454c301140] deprecated pixel format used, make sure you did set range correctly
2023-06-07 11:07:38.471678782  [2023-06-07 11:07:38] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-06-07 11:07:38.472143624  [2023-06-07 11:07:38] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-06-07 09:07:04.566073047  [2023-06-07 09:07:04] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-06-07 09:07:04.566076565  [2023-06-07 09:07:04] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-06-07 09:07:14.567387898  [2023-06-07 09:07:14] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-06-07 09:07:14.567518673  [2023-06-07 09:07:14] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-06-07 09:07:14.568150339  [2023-06-07 09:07:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55964cd99bc0] [swscaler @ 0x55964cda6b80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:07:14.568156564  [2023-06-07 09:07:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55964cd99bc0] [swscaler @ 0x55964cdc6d00] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:07:14.568185140  [2023-06-07 09:07:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55964cdbcd80] [swscaler @ 0x55964cdc9d80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:07:14.568189689  [2023-06-07 09:07:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55964cdbcd80] [swscaler @ 0x55964cd9da00] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:07:14.568193843  [2023-06-07 09:07:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55964cd99bc0] [swscaler @ 0x55964cda6b80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:07:14.568197567  [2023-06-07 09:07:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55964cd99bc0] [swscaler @ 0x55964cdbf100] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:07:14.568202152  [2023-06-07 09:07:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55964cdbcd80] [swscaler @ 0x55964cdc9d80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:07:14.568205970  [2023-06-07 09:07:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x55964cdbcd80] [swscaler @ 0x55964cd99bc0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 11:08:38.474388546  [2023-06-07 11:08:38] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-06-07 11:08:38.474394362  [2023-06-07 11:08:38] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-06-07 09:08:04.605868192  [2023-06-07 09:08:04] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-06-07 09:08:04.606255767  [2023-06-07 09:08:04] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-06-07 09:08:14.607187961  [2023-06-07 09:08:14] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-06-07 09:08:14.607194814  [2023-06-07 09:08:14] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-06-07 09:08:14.607229335  [2023-06-07 09:08:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56171f39f300] [swscaler @ 0x56171f3ac2c0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:08:14.607254427  [2023-06-07 09:08:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56171f39f300] [swscaler @ 0x56171f3cc440] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:08:14.607295011  [2023-06-07 09:08:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56171f3c24c0] [swscaler @ 0x56171f3cf4c0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:08:14.607467919  [2023-06-07 09:08:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56171f3c24c0] [swscaler @ 0x56171f3a3140] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:08:14.607471500  [2023-06-07 09:08:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56171f39f300] [swscaler @ 0x56171f3ac2c0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:08:14.607474790  [2023-06-07 09:08:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56171f39f300] [swscaler @ 0x56171f3c4840] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:08:14.607477789  [2023-06-07 09:08:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56171f3c24c0] [swscaler @ 0x56171f3cf4c0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:08:14.607537246  [2023-06-07 09:08:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56171f3c24c0] [swscaler @ 0x56171f39f300] deprecated pixel format used, make sure you did set range correctly
2023-06-07 11:09:38.474777287  [2023-06-07 11:09:38] watchdog.carport               INFO    : No frames received from carport in 20 seconds. Exiting ffmpeg...
2023-06-07 11:09:38.476127162  [2023-06-07 11:09:38] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2023-06-07 09:09:04.584411837  [2023-06-07 09:09:04] frigate.video                  ERROR   : carport: Unable to read frames from ffmpeg process.
2023-06-07 09:09:04.584809164  [2023-06-07 09:09:04] frigate.video                  ERROR   : carport: ffmpeg process is not running. exiting capture thread...
2023-06-07 09:09:14.591950596  [2023-06-07 09:09:14] watchdog.carport               ERROR   : Ffmpeg process crashed unexpectedly for carport.
2023-06-07 09:09:14.591957748  [2023-06-07 09:09:14] watchdog.carport               ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-06-07 09:09:14.591961411  [2023-06-07 09:09:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56342546db00] [swscaler @ 0x56342547ac80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:09:14.591964844  [2023-06-07 09:09:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56342546db00] [swscaler @ 0x56342549ae40] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:09:14.591968054  [2023-06-07 09:09:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56342546db00] [swscaler @ 0x56342547ac80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:09:14.591971281  [2023-06-07 09:09:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56342546db00] [swscaler @ 0x563425491a80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:09:14.591974346  [2023-06-07 09:09:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56342546db00] [swscaler @ 0x56342547ac80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:09:14.591977488  [2023-06-07 09:09:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56342546db00] [swscaler @ 0x563425490ec0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:09:14.591980596  [2023-06-07 09:09:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56342546db00] [swscaler @ 0x56342547ac80] deprecated pixel format used, make sure you did set range correctly
2023-06-07 09:09:14.591983648  [2023-06-07 09:09:14] ffmpeg.carport.detect          ERROR   : [swscaler @ 0x56342546db00] [swscaler @ 0x563425490ec0] deprecated pixel format used, make sure you did set range correctly
2023-06-07 11:10:38.476274817  [2023-06-07 11:10:38] watchdog.carport               INFO    : No frames received from carport in

rinse & repeat :-)

NickM-27 commented 1 year ago

Maybe try upgrading the firmware on the camera or something, either that or perhaps there is some network issue causing problems. ffmpeg is not receiving data from the camera.

Symbiot78 commented 1 year ago

Hi @NickM-27 - appreciate the suggestion. I’ve already checked.

I see the same issue with 3 cameras 2 hikvision 1 unifi

If I check connections by swapping cables or similar I don’t see any improvement. It’s like it’s frigate being extremely sensitive. I don’t see ping loss or any other indication of packet loss.

NickM-27 commented 1 year ago

It is important to note that pings are very lightweight and don't represent the load of rtsp. In any case, ffmpeg is not sensitive and has a timeout of 5 seconds, so it has to not receive frames for 5 seconds before it will restart the stream like this.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

AnonymousWebHacker commented 11 months ago

I have the same error, the curious part is that if I open a player and the rtsp transmission, it works without problems, without frame cuts, even if I save the local video with ffmpeg, it works perfectly.