frigate: New Cameras Hi Sharp: Unable to read frames from ffmpeg process

Describe the problem you are having

Hi, I m working for one of my clients. I have never worked on frigate before. So take me as a beginner.

What to do I have implemented the two cameras before. We are just restreaming it only, no detection kind of work. It was working fine for old cameras (analog). Now client purchase two more cameras (Hi Sharp). Now when I try to restream them and check on frigate UI, it doesn’t work. And it shows this error “unable to read frames from ffmpeg process. ffmpeg process is not running. exiting capture thread… Ffmpeg process crashed unexpectedly” in logs.

I have read many different issue and article and try to implement them but no improvement. So kindly help me on this.

Cameras Specs 1- https://drive.google.com/file/d/12n2-c5dhfiqSf_xuY3dg8-1g8cKUbBnb/view 2- https://drive.google.com/file/d/1QcLl1aa0F--X4UyHqo9gn3QYQmIMNCaJ/view

Both are wired and audio enable

One Important Points 1- When I enable both non functional cameras, sometime one of them start working and other isn’t. But if I use single camera in config, they were work. 2- They are working fine on VLC

Thanks in Advanced

Version

Docker frigate, ghcr.io/blakeblackshear/frigate:stable

Frigate config file

mqtt:
  enabled: False

birdseye:
  enabled: True
  mode: continuous

detect:
  enabled: False

snapshots:
  enabled: True

record:
  enabled: False
go2rtc:
  log:
    exec: trace
  streams:
    office:
      - rtsp://<client-rtsp-url>
cameras:
  office:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/office
          roles:
            - record
      output_args:
        record: preset-record-generic-audio-copy

Relevant log output

s6-rc: info: service s6rc-fdholder: starting
frigate        | s6-rc: info: service s6rc-oneshot-runner: starting
frigate        | s6-rc: info: service s6rc-oneshot-runner successfully started
frigate        | s6-rc: info: service fix-attrs: starting
frigate        | s6-rc: info: service s6rc-fdholder successfully started
frigate        | s6-rc: info: service fix-attrs successfully started
frigate        | s6-rc: info: service legacy-cont-init: starting
frigate        | s6-rc: info: service legacy-cont-init successfully started
frigate        | s6-rc: info: service log-prepare: starting
frigate        | s6-rc: info: service log-prepare successfully started
frigate        | s6-rc: info: service nginx-log: starting
frigate        | s6-rc: info: service go2rtc-log: starting
frigate        | s6-rc: info: service frigate-log: starting
frigate        | s6-rc: info: service nginx-log successfully started
frigate        | s6-rc: info: service go2rtc-log successfully started
frigate        | s6-rc: info: service go2rtc: starting
frigate        | s6-rc: info: service frigate-log successfully started
frigate        | s6-rc: info: service go2rtc successfully started
frigate        | s6-rc: info: service go2rtc-healthcheck: starting
frigate        | s6-rc: info: service frigate: starting
frigate        | s6-rc: info: service go2rtc-healthcheck successfully started
frigate        | s6-rc: info: service frigate successfully started
frigate        | s6-rc: info: service nginx: starting
frigate        | s6-rc: info: service nginx successfully started
frigate        | 2024-01-01 17:45:51.630514760  [INFO] Preparing go2rtc config...
frigate        | s6-rc: info: service legacy-services: starting
frigate        | 2024-01-01 17:45:51.631252010  [INFO] Starting Frigate...
frigate        | 2024-01-01 17:45:51.632031135  [INFO] Starting NGINX...
frigate        | s6-rc: info: service legacy-services successfully started
frigate        | 2024-01-01 17:45:51.820548301  [INFO] Starting go2rtc...
frigate        | 2024-01-01 17:45:51.874581802  17:45:51.874 INF go2rtc version 1.2.0 linux/arm64
frigate        | 2024-01-01 17:45:51.874725302  17:45:51.874 INF [api] listen addr=:1984
frigate        | 2024-01-01 17:45:51.874875177  17:45:51.874 INF [rtsp] listen addr=:8554
frigate        | 2024-01-01 17:45:51.874955552  17:45:51.874 INF [srtp] listen addr=:8443
frigate        | 2024-01-01 17:45:51.875078802  17:45:51.875 INF [webrtc] listen addr=:8555
frigate        | 2024-01-01 17:45:52.094021635  [2024-01-01 17:45:52] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
frigate        | 2024-01-01 17:45:52.103379802  [2024-01-01 17:45:52] peewee_migrate                 INFO    : Starting migrations
frigate        | 2024-01-01 17:45:52.108841052  [2024-01-01 17:45:52] peewee_migrate                 INFO    : There is nothing to migrate
frigate        | 2024-01-01 17:45:52.115460677  [2024-01-01 17:45:52] frigate.app                    INFO    : Output process started: 506
frigate        | 2024-01-01 17:45:52.115911343  [2024-01-01 17:45:52] detector.cpu                   INFO    : Starting detection process: 505
frigate        | 2024-01-01 17:45:52.117272843  [2024-01-01 17:45:52] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
frigate        | 2024-01-01 17:45:52.120074093  [2024-01-01 17:45:52] frigate.app                    INFO    : Camera processor started for poc_l1_office: 510
frigate        | 2024-01-01 17:45:52.120076468  [2024-01-01 17:45:52] frigate.app                    INFO    : Capture process started for poc_l1_office: 512
frigate        | 2024-01-01 17:45:52.551619469  17:45:52.551 WRN [rtsp] error="sources unavailable: 1" stream=poc_l1_office
frigate        | 2024-01-01 17:45:52.559663344  [2024-01-01 17:45:52] frigate.video                  ERROR   : poc_l1_office: Unable to read frames from ffmpeg process.
frigate        | 2024-01-01 17:45:52.559891844  [2024-01-01 17:45:52] frigate.video                  ERROR   : poc_l1_office: ffmpeg process is not running. exiting capture thread...
frigate        | 2024-01-01 17:45:56.731376304  172.23.0.2 - - [01/Jan/2024:17:45:56 +0500] "GET /api/config HTTP/1.1" 200 4571 "http://frigate.localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.65.1"
frigate        | 2024-01-01 17:45:56.777000221  172.23.0.2 - - [01/Jan/2024:17:45:56 +0500] "GET //api/poc_l1_office/latest.jpg?h=339 HTTP/1.1" 200 8985 "http://frigate.localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.65.1"
frigate        | 2024-01-01 17:45:57.346298221  172.23.0.2 - - [01/Jan/2024:17:45:57 +0500] "GET / HTTP/1.1" 200 6641 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.65.1"
frigate        | 2024-01-01 17:45:57.392464012  172.23.0.2 - - [01/Jan/2024:17:45:57 +0500] "GET /api/config HTTP/1.1" 200 4571 "http://frigate.localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.65.1"
frigate        | 2024-01-01 17:45:57.442548429  172.23.0.2 - - [01/Jan/2024:17:45:57 +0500] "GET //api/poc_l1_office/latest.jpg?h=339 HTTP/1.1" 200 8985 "http://frigate.localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.65.1"
frigate        | 2024-01-01 17:46:01.635791792  [INFO] Starting go2rtc healthcheck service...
frigate        | 2024-01-01 17:46:12.153404755  [2024-01-01 17:46:12] watchdog.poc_l1_office         ERROR   : Ffmpeg process crashed unexpectedly for poc_l1_office.
frigate        | 2024-01-01 17:46:12.153421672  [2024-01-01 17:46:12] watchdog.poc_l1_office         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.

Frigate stats

{
  "cpu_usages": {
    "%Cpu(s):": { "cpu": "id,", "mem": "0.0" },
    "1": { "cpu": "0.0", "mem": "0.0" },
    "100": { "cpu": "0.0", "mem": "0.0" },
    "105": { "cpu": "0.7", "mem": "1.9" },
    "117": { "cpu": "0.0", "mem": "0.2" },
    "134": { "cpu": "0.0", "mem": "0.1" },
    "135": { "cpu": "0.0", "mem": "0.1" },
    "136": { "cpu": "0.0", "mem": "0.1" },
    "137": { "cpu": "0.0", "mem": "0.1" },
    "1379": { "cpu": "0.0", "mem": "0.0" },
    "1388": { "cpu": "0.0", "mem": "0.0" },
    "144": { "cpu": "0.0", "mem": "0.1" },
    "15": { "cpu": "0.0", "mem": "0.0" },
    "16": { "cpu": "0.0", "mem": "0.0" },
    "162": { "cpu": "0.0", "mem": "0.1" },
    "192": { "cpu": "0.0", "mem": "0.1" },
    "225": { "cpu": "0.0", "mem": "0.1" },
    "24": { "cpu": "0.0", "mem": "0.0" },
    "25": { "cpu": "0.0", "mem": "0.0" },
    "256": { "cpu": "0.0", "mem": "0.1" },
    "26": { "cpu": "0.0", "mem": "0.0" },
    "27": { "cpu": "0.0", "mem": "0.0" },
    "271": { "cpu": "0.0", "mem": "0.1" },
    "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" },
    "41": { "cpu": "0.0", "mem": "0.0" },
    "42": { "cpu": "0.0", "mem": "0.0" },
    "499": { "cpu": "0.3", "mem": "1.0" },
    "504": { "cpu": "0.0", "mem": "0.1" },
    "505": { "cpu": "0.0", "mem": "1.1" },
    "506": { "cpu": "0.3", "mem": "1.1" },
    "510": { "cpu": "0.0", "mem": "1.1" },
    "511": { "cpu": "0.0", "mem": "0.5" },
    "512": { "cpu": "0.0", "mem": "1.1" },
    "516": { "cpu": "0.0", "mem": "0.5" },
    "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.3" },
    "MiB": { "cpu": "6785.4", "mem": "avail" },
    "PID": { "cpu": "%CPU", "mem": "%MEM" },
    "Tasks:": { "cpu": "stopped,", "mem": "0" },
    "top": { "cpu": "load", "mem": "average:" }
  },
  "detection_fps": 0.0,
  "detectors": {
    "cpu": { "detection_start": 0.0, "inference_speed": 10.0, "pid": 505 }
  },
  "office": {
    "camera_fps": 0.0,
    "capture_pid": 512,
    "detection_enabled": 0,
    "detection_fps": 0.0,
    "ffmpeg_pid": 1383,
    "pid": 510,
    "process_fps": 0.0,
    "skipped_fps": 0.0
  },
  "service": {
    "last_updated": 1704119706,
    "latest_version": "0.12.1",
    "storage": {
      "/dev/shm": {
        "free": 66.5,
        "mount_type": "tmpfs",
        "total": 67.1,
        "used": 0.6
      },
      "/media/frigate/clips": {
        "free": 23531.1,
        "mount_type": "fakeowner",
        "total": 345047.8,
        "used": 321516.7
      },
      "/media/frigate/recordings": {
        "free": 23531.1,
        "mount_type": "fakeowner",
        "total": 345047.8,
        "used": 321516.7
      },
      "/tmp/cache": {
        "free": 1000.0,
        "mount_type": "tmpfs",
        "total": 1000.0,
        "used": 0.0
      }
    },
    "temperatures": {},
    "uptime": 6554,
    "version": "0.12.1-367d724"
  }
}

Operating system

Other Linux

Install method

Docker Compose

Coral version

USB

Any other information that may be helpful

I don’t know about Coral Version.

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 47

Most upvoted comments

It’s not using h264, we can see this from the stream info you provided.