blakeblackshear / frigate

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

[Support]: unable to add the ffmpeg hardware acceleration for my Raspberry Pi4 #2030

Closed neildotwilliams closed 2 years ago

neildotwilliams commented 2 years ago

Describe the problem you are having

I hope I'm not missing something obvious, I have been looking at this for a while before reaching out ;-)

I seem unable to add the ffmpeg hardware acceleration for my Raspberry Pi4 using the following lines: ffmpeg: hwaccel_args:

I have tried to add globally and under a specific single camera. All I get is a pure green image. Without adding these lines everything works great, although obviously the CPU usage is quite hit.

In these logs describing the issue, I have only added the acceleration for the camera Living_Room_Low

I have modified the /boot/config.txt file to 512 - gpu_mem=512 Confirmed this by going to the homeassistant container console: bash-5.1# /opt/vc/bin/vcgencmd get_mem gpu gpu=512M

Version

DEBUG 0.9.1-800F33E

Frigate config file

mqtt:
  host: 192.168.0.130
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: <USERNAME>
  password: <PASSWORD>
  stats_interval: 60

detectors:
  coral:
    type: edgetpu
    device: usb

detect:
  width: 640
  height: 360
  fps: 5
  enabled: True
  max_disappeared: 25

record:
  enabled: True
  retain_days: 0
  events:
    retain:
      default: 10

snapshots:
  enabled: true
  timestamp: false
  bounding_box: true
  retain:
    default: 10

# 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: 31
  # 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: objects

cameras:
## Living Room Low Camera
  Living_Room_Low:
    ffmpeg:
      hwaccel_args:
        - -c:v
        - h264_v4l2m2m
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.206:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.206:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.75
          min_score: 0.70
    motion:
      mask:
        - 0,75,209,61,209,0,0,0
        - 380,74,482,74,487,24,382,21
## Living Room High Camera
  Living_Room_High:
    ffmpeg:
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.205:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.205:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.75
          min_score: 0.70
    motion:
      mask:
        - 0,18,155,18,155,0,0,0
  ## Patio camera
  Patio:
    ffmpeg:
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.203:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.203:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.75
          min_score: 0.70
    motion:
      mask:
        - 0,108,640,108,640,0,0,0
  ## Kitchen Camera
  Kitchen:
    ffmpeg:
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.204:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.204:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.65
          min_score: 0.60
    motion:
      mask:
        - 0,18,155,18,155,0,0,0
    zones:
      Cam_Zone_Back_Door:
        coordinates: 365,243,452,257,471,165,388,154
  ## Bedroom Camera
  Bedroom:
    ffmpeg:
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.207:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.207:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.75
          min_score: 0.70
    motion:
      mask:
        - 0,18,155,18,155,0,0,0

Relevant log output

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-16 16:28:01] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-16 16:28:01] frigate.app                    INFO    : Creating directory: /tmp/cache
[2021-10-16 16:28:01] frigate.app                    WARNING : Camera Living_Room_Low has rtmp enabled, but rtmp is not assigned to an input.
[2021-10-16 16:28:01] frigate.app                    WARNING : Camera Living_Room_High has rtmp enabled, but rtmp is not assigned to an input.
[2021-10-16 16:28:01] frigate.app                    WARNING : Camera Patio has rtmp enabled, but rtmp is not assigned to an input.
[2021-10-16 16:28:01] frigate.app                    WARNING : Camera Kitchen has rtmp enabled, but rtmp is not assigned to an input.
[2021-10-16 16:28:01] frigate.app                    WARNING : Camera Bedroom has rtmp enabled, but rtmp is not assigned to an input.
Starting migrations
[2021-10-16 16:28:01] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-16 16:28:01] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-16 16:28:01] frigate.mqtt                   INFO    : MQTT connected
[2021-10-16 16:28:01] frigate.app                    INFO    : Output process started: 219
[2021-10-16 16:28:01] detector.coral                 INFO    : Starting detection process: 217
[2021-10-16 16:28:01] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-16 16:28:01] frigate.app                    INFO    : Camera processor started for Living_Room_Low: 221
[2021-10-16 16:28:01] ws4py                          INFO    : Using epoll
[2021-10-16 16:28:02] frigate.app                    INFO    : Camera processor started for Living_Room_High: 226
[2021-10-16 16:28:02] frigate.app                    INFO    : Camera processor started for Patio: 230
[2021-10-16 16:28:02] frigate.app                    INFO    : Camera processor started for Kitchen: 234
[2021-10-16 16:28:02] frigate.app                    INFO    : Camera processor started for Bedroom: 235
[2021-10-16 16:28:02] frigate.app                    INFO    : Capture process started for Living_Room_Low: 236
[2021-10-16 16:28:02] frigate.app                    INFO    : Capture process started for Living_Room_High: 238
[2021-10-16 16:28:02] frigate.app                    INFO    : Capture process started for Patio: 241
[2021-10-16 16:28:02] frigate.app                    INFO    : Capture process started for Kitchen: 244
[2021-10-16 16:28:02] frigate.app                    INFO    : Capture process started for Bedroom: 250
[2021-10-16 16:28:02] ws4py                          INFO    : Using epoll
[2021-10-16 16:28:05] frigate.edgetpu                INFO    : TPU found
[2021-10-16 16:28:22] watchdog.Living_Room_Low       INFO    : No frames received from Living_Room_Low in 20 seconds. Exiting ffmpeg...
[2021-10-16 16:28:22] watchdog.Living_Room_Low       INFO    : Waiting for ffmpeg to exit gracefully...
[2021-10-16 16:28:52] watchdog.Living_Room_Low       INFO    : FFmpeg didnt exit. Force killing...
[2021-10-16 16:28:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-16 16:28:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg process is not running. exiting capture thread...
[2021-10-16 16:29:02] watchdog.Living_Room_Low       ERROR   : FFMPEG process crashed unexpectedly for Living_Room_Low.
[2021-10-16 16:29:02] watchdog.Living_Room_Low       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-16 16:29:02] watchdog.Living_Room_Low       ERROR   : You may have invalid args defined for this camera.
[2021-10-16 16:29:02] ffmpeg.Living_Room_Low.detect  ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-16 16:29:22] watchdog.Living_Room_Low       INFO    : No frames received from Living_Room_Low in 20 seconds. Exiting ffmpeg...
[2021-10-16 16:29:22] watchdog.Living_Room_Low       INFO    : Waiting for ffmpeg to exit gracefully...
[2021-10-16 16:29:52] watchdog.Living_Room_Low       INFO    : FFmpeg didnt exit. Force killing...
[2021-10-16 16:29:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-16 16:29:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg process is not running. exiting capture thread...
[2021-10-16 16:30:02] watchdog.Living_Room_Low       ERROR   : FFMPEG process crashed unexpectedly for Living_Room_Low.
[2021-10-16 16:30:02] watchdog.Living_Room_Low       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-16 16:30:02] watchdog.Living_Room_Low       ERROR   : You may have invalid args defined for this camera.
[2021-10-16 16:30:02] ffmpeg.Living_Room_Low.detect  ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-16 16:30:22] watchdog.Living_Room_Low       INFO    : No frames received from Living_Room_Low in 20 seconds. Exiting ffmpeg...
[2021-10-16 16:30:22] watchdog.Living_Room_Low       INFO    : Waiting for ffmpeg to exit gracefully...
[2021-10-16 16:30:52] watchdog.Living_Room_Low       INFO    : FFmpeg didnt exit. Force killing...
[2021-10-16 16:30:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-16 16:30:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg process is not running. exiting capture thread...
[2021-10-16 16:31:02] watchdog.Living_Room_Low       ERROR   : FFMPEG process crashed unexpectedly for Living_Room_Low.
[2021-10-16 16:31:02] watchdog.Living_Room_Low       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-16 16:31:02] watchdog.Living_Room_Low       ERROR   : You may have invalid args defined for this camera.
[2021-10-16 16:31:02] ffmpeg.Living_Room_Low.detect  ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-16 16:31:22] watchdog.Living_Room_Low       INFO    : No frames received from Living_Room_Low in 20 seconds. Exiting ffmpeg...
[2021-10-16 16:31:22] watchdog.Living_Room_Low       INFO    : Waiting for ffmpeg to exit gracefully...
[2021-10-16 16:31:52] watchdog.Living_Room_Low       INFO    : FFmpeg didnt exit. Force killing...
[2021-10-16 16:31:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-16 16:31:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg sent a broken frame. read of closed file
[2021-10-16 16:31:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg sent a broken frame. read of closed file
[2021-10-16 16:31:52] frigate.video                  INFO    : Living_Room_Low: ffmpeg process is not running. exiting capture thread...
[2021-10-16 16:32:02] watchdog.Living_Room_Low       ERROR   : FFMPEG process crashed unexpectedly for Living_Room_Low.
[2021-10-16 16:32:02] watchdog.Living_Room_Low       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-16 16:32:02] watchdog.Living_Room_Low       ERROR   : You may have invalid args defined for this camera.
[2021-10-16 16:32:02] ffmpeg.Living_Room_Low.detect  ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-16 16:32:23] watchdog.Living_Room_Low       INFO    : No frames received from Living_Room_Low in 20 seconds. Exiting ffmpeg...
[2021-10-16 16:32:23] watchdog.Living_Room_Low       INFO    : Waiting for ffmpeg to exit gracefully...

FFprobe output from your camera

root@ccab4aaf-frigate:/opt/frigate# ffprobe rtsp://<USERNAME>:<PASSWORD>@192.168.0.206:554/av_stream/ch1
ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-rkmpp --enable-libdrm --enable-v4l2_m2m --enable-neon --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, rtsp, from 'rtsp://<USERNAME>:<PASSWORD>@192.168.0.206:554/av_stream/ch1':
  Metadata:
    title           : DYrtpsion
  Duration: N/A, start: 0.356000, bitrate: N/A
    Stream #0:0: Video: h264, yuv420p(progressive), 640x360, 10 fps, 10 tbr, 90k tbn, 20 tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s

root@ccab4aaf-frigate:/opt/frigate# ffprobe rtsp://<USERNAME>:<PASSWORD>@192.168.0.206:554/av_stream/ch0
ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-rkmpp --enable-libdrm --enable-v4l2_m2m --enable-neon --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, rtsp, from 'rtsp://<USERNAME>:<PASSWORD>@192.168.0.206:554/av_stream/ch0':
  Metadata:
    title           : DYrtpsion
  Duration: N/A, start: 1.453000, bitrate: N/A
    Stream #0:0: Video: h264, yuv420p(progressive), 1920x1080, 10 fps, 10 tbr, 90k tbn, 20 tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s

Frigate stats

{"Bedroom":{"camera_fps":5.1,"capture_pid":250,"detection_fps":2.4,"pid":235,"process_fps":4.5,"skipped_fps":0.0},"Kitchen":{"camera_fps":4.33,"capture_pid":244,"detection_fps":0.0,"pid":234,"process_fps":2.5,"skipped_fps":0.0},"Living_Room_High":{"camera_fps":5.1,"capture_pid":238,"detection_fps":7.8,"pid":226,"process_fps":3.6,"skipped_fps":0.0},"Living_Room_Low":{"camera_fps":0.0,"capture_pid":236,"detection_fps":0.0,"pid":221,"process_fps":0.0,"skipped_fps":0.0},"Patio":{"camera_fps":5.0,"capture_pid":241,"detection_fps":6.3,"pid":230,"process_fps":5.0,"skipped_fps":0.0},"detection_fps":16.5,"detectors":{"coral":{"detection_start":1634398738.87413,"inference_speed":49.29,"pid":217}},"service":{"storage":{"/dev/shm":{"free":1757.4,"mount_type":"tmpfs","total":1760.4,"used":3.0},"/media/frigate/clips":{"free":187931.6,"mount_type":"ext4","total":235535.3,"used":38003.3},"/media/frigate/recordings":{"free":187931.6,"mount_type":"ext4","total":235535.3,"used":38003.3},"/tmp/cache":{"free":1759.0,"mount_type":"tmpfs","total":1760.4,"used":1.4}},"uptime":656,"version":"0.9.1-800f33e"}}

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

Sonoff WiFi IP Camera 1080P

Any other information that may be helpful

No response

blakeblackshear commented 2 years ago

Have you tried disabling protection mode on the addon?

neildotwilliams commented 2 years ago

Hi. Thanks for the lightening response, and the fantastic add on of course! Yes I have disabled the protection.

blakeblackshear commented 2 years ago

Try changing the log level for the one camera where you have hwaccel:

mqtt:
  host: 192.168.0.130
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: <USERNAME>
  password: <PASSWORD>
  stats_interval: 60

detectors:
  coral:
    type: edgetpu
    device: usb

detect:
  width: 640
  height: 360
  fps: 5
  enabled: True
  max_disappeared: 25

record:
  enabled: True
  retain_days: 0
  events:
    retain:
      default: 10

snapshots:
  enabled: true
  timestamp: false
  bounding_box: true
  retain:
    default: 10

# 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: 31
  # 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: objects

cameras:
## Living Room Low Camera
  Living_Room_Low:
    ffmpeg:
      global_args: -hide_banner -loglevel info
      hwaccel_args:
        - -c:v
        - h264_v4l2m2m
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.206:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.206:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.75
          min_score: 0.70
    motion:
      mask:
        - 0,75,209,61,209,0,0,0
        - 380,74,482,74,487,24,382,21
## Living Room High Camera
  Living_Room_High:
    ffmpeg:
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.205:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.205:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.75
          min_score: 0.70
    motion:
      mask:
        - 0,18,155,18,155,0,0,0
  ## Patio camera
  Patio:
    ffmpeg:
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.203:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.203:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.75
          min_score: 0.70
    motion:
      mask:
        - 0,108,640,108,640,0,0,0
  ## Kitchen Camera
  Kitchen:
    ffmpeg:
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.204:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.204:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.65
          min_score: 0.60
    motion:
      mask:
        - 0,18,155,18,155,0,0,0
    zones:
      Cam_Zone_Back_Door:
        coordinates: 365,243,452,257,471,165,388,154
  ## Bedroom Camera
  Bedroom:
    ffmpeg:
      inputs:
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.207:554/av_stream/ch1
          roles:
            - detect
        - path: rtsp://rtsp:<PASSWORD>@192.168.0.207:554/av_stream/ch0
          roles:
            - record
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.75
          min_score: 0.70
        dog:
          threshold: 0.75
          min_score: 0.70
    motion:
      mask:
        - 0,18,155,18,155,0,0,0
neildotwilliams commented 2 years ago

I noticed that viewing the single camera 'live' shows a white page, debug shows the green square and the fps number changes.

I've added log level info, here's what I get:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] done. [services.d] starting services [services.d] done. [2021-10-16 17:19:16] frigate.app INFO : Starting Frigate (0.9.1-800f33e) [2021-10-16 17:19:16] frigate.app INFO : Creating directory: /tmp/cache [2021-10-16 17:19:16] frigate.app WARNING : Camera Living_Room_Low has rtmp enabled, but rtmp is not assigned to an input. [2021-10-16 17:19:16] frigate.app WARNING : Camera Living_Room_High has rtmp enabled, but rtmp is not assigned to an input. [2021-10-16 17:19:16] frigate.app WARNING : Camera Patio has rtmp enabled, but rtmp is not assigned to an input. [2021-10-16 17:19:16] frigate.app WARNING : Camera Kitchen has rtmp enabled, but rtmp is not assigned to an input. [2021-10-16 17:19:16] frigate.app WARNING : Camera Bedroom has rtmp enabled, but rtmp is not assigned to an input. Starting migrations [2021-10-16 17:19:16] peewee_migrate INFO : Starting migrations There is nothing to migrate [2021-10-16 17:19:16] peewee_migrate INFO : There is nothing to migrate [2021-10-16 17:19:16] frigate.mqtt INFO : MQTT connected [2021-10-16 17:19:16] frigate.app INFO : Output process started: 218 [2021-10-16 17:19:16] detector.coral INFO : Starting detection process: 217 [2021-10-16 17:19:16] ws4py INFO : Using epoll [2021-10-16 17:19:16] frigate.edgetpu INFO : Attempting to load TPU as usb [2021-10-16 17:19:16] frigate.app INFO : Camera processor started for Living_Room_Low: 222 [2021-10-16 17:19:16] frigate.app INFO : Camera processor started for Living_Room_High: 226 [2021-10-16 17:19:16] frigate.app INFO : Camera processor started for Patio: 229 [2021-10-16 17:19:16] frigate.app INFO : Camera processor started for Kitchen: 232 [2021-10-16 17:19:16] frigate.app INFO : Camera processor started for Bedroom: 234 [2021-10-16 17:19:16] frigate.app INFO : Capture process started for Living_Room_Low: 235 [2021-10-16 17:19:16] frigate.app INFO : Capture process started for Living_Room_High: 239 [2021-10-16 17:19:16] frigate.app INFO : Capture process started for Patio: 247 [2021-10-16 17:19:17] frigate.app INFO : Capture process started for Kitchen: 259 [2021-10-16 17:19:17] frigate.app INFO : Capture process started for Bedroom: 263 [2021-10-16 17:19:17] ws4py INFO : Using epoll [2021-10-16 17:19:19] frigate.edgetpu INFO : TPU found [2021-10-16 17:19:36] watchdog.Living_Room_Low INFO : No frames received from Living_Room_Low in 20 seconds. Exiting ffmpeg... [2021-10-16 17:19:36] watchdog.Living_Room_Low INFO : Waiting for ffmpeg to exit gracefully... [2021-10-16 17:20:06] watchdog.Living_Room_Low INFO : FFmpeg didnt exit. Force killing... [2021-10-16 17:20:06] frigate.video INFO : Living_Room_Low: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures [2021-10-16 17:20:06] frigate.video INFO : Living_Room_Low: ffmpeg process is not running. exiting capture thread... [2021-10-16 17:20:16] watchdog.Living_Room_Low ERROR : FFMPEG process crashed unexpectedly for Living_Room_Low. [2021-10-16 17:20:16] watchdog.Living_Room_Low ERROR : The following ffmpeg logs include the last 100 lines prior to exit. [2021-10-16 17:20:16] watchdog.Living_Room_Low ERROR : You may have invalid args defined for this camera. [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Guessed Channel Layout for Input Stream #0.1 : mono [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Input #0, rtsp, from 'rtsp://username:password@192.168.0.206:554/av_stream/ch1': [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Metadata: [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : title : DYrtpsion [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Duration: N/A, start: 1634401157.829900, bitrate: N/A [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Stream #0:0: Video: h264, yuv420p(progressive), 640x360, 10 fps, 10 tbr, 90k tbn, 20 tbc [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : [h264_v4l2m2m @ 0x5588efd740] Using device /dev/video10 [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : [h264_v4l2m2m @ 0x5588efd740] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : [h264_v4l2m2m @ 0x5588efd740] requesting formats: output=H264 capture=YU12 [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Stream mapping: [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native)) [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : Press [q] to stop, [?] for help [2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:16] ffmpeg.Living_Room_Low.detect ERROR : frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[2021-10-16 17:20:37] watchdog.Living_Room_Low INFO : No frames received from Living_Room_Low in 20 seconds. Exiting ffmpeg... [2021-10-16 17:20:37] watchdog.Living_Room_Low INFO : Waiting for ffmpeg to exit gracefully...

blakeblackshear commented 2 years ago

Strange. Ffmpeg runs, but no frames ever make it through to Frigate. I don't know why that's happening.

neildotwilliams commented 2 years ago

I really don't have a clue what's going on to be honest. I'm happy to do any extra diagnostics suggested.

Papadoma commented 2 years ago

Similar situation here Green frame, ffmpeg crashing

Seems to me there a bug was introduced in the latest version

neildotwilliams commented 2 years ago

I think it was failing on the previous version also. I've only recently started using HA and Frigate, this was my first update to Frigate since install. While I was in the config file changing other things (clips, recordings, etc) I tried hardware accel again.

jonandel commented 2 years ago

I had a similar issue on one of my cameras. The hardware accel wouldn't work unless I modified the frame height and width to be consistent with the detect frame size...BUT crucially not the stream framesize, but the size reported as 'Buffer'. I used onvif manager to show this as VLC etc would not.... In my case the buffer was 640x368 when stream was reporting 640x360. I guessed it he hardware encoder is a little more picky....although I have no idea what buffer size is...

neildotwilliams commented 2 years ago

I had a similar issue on one of my cameras. The hardware accel wouldn't work unless I modified the frame height and width to be consistent with the detect frame size...BUT crucially not the stream framesize, but the size reported as 'Buffer'. I used onvif manager to show this as VLC etc would not.... In my case the buffer was 640x368 when stream was reporting 640x360. I guessed it he hardware encoder is a little more picky....although I have no idea what buffer size is...

I'm going to try and look at this tonight. I initially used VLC to check the streams so I'll give them onvif manager a go 👍🏻

neildotwilliams commented 2 years ago

I tried all combinations, it took hours :-( I was drinking alcohol :-) My results are attached but the end result was a fail whenever I enabled hardware accelerations Frigate Testing.txt .

jonandel commented 2 years ago

@neildotwilliams I see your hardware accel settings are only included under/for one camera, whereas in my configuration they're globally set (ie section before the cameras). Tried that ?

neildotwilliams commented 2 years ago

@neildotwilliams I see your hardware accel settings are only included under/for one camera, whereas in my configuration they're globally set (ie section before the cameras). Tried that ?

Hi @jonandel yep, tried that. I removed all other cameras and set it as a global option with just one camera. All of my cameras are the same.

neildotwilliams commented 2 years ago

I couldn't get onvif manager to work with rtsp streams. I looked at VLC again and it did add 8 to the width on both streams in the buffer dimensions. Tried those as options in frigate.yml but didn't work :-(

neildotwilliams commented 2 years ago

image

neildotwilliams commented 2 years ago

image

healeydave commented 2 years ago

I'm having exactly the same problem.

Been running Frigate for ages with exactly the same setup without any problems. I recently upgraded Home Assistant and Frigate. Don't know which one broke my system as they were both done around the same time.

Now I can't run with Hardware Acceleration anymore otherwise I get green screen and ffmpeg errors. Without HW acceleration, I'm not sure how long my Pi will last because Ive gone from negligible CPU to 80-90%

blakeblackshear commented 2 years ago

@healeydave did you change the log level and check your logs to make sure you see the same as I suggested above? Also, nobody has posted the specific version of HassOS, etc either.

neildotwilliams commented 2 years ago

Apologies. I'm on the latest version of production:

Operating System Home Assistant OS 6.5 production core-2021.10.6 supervisor-2021.10.0

healeydave commented 2 years ago

@blakeblackshear Will add the following now to my setup and report back 👍 global_args: -hide_banner -loglevel info

FYI: I'm running: Home Assistant core-2021.10.6 , supervisor-2021.10.0 , OS 6.5 Frigate reports 2.0 on the supervisor information page but when I start Frigate, it reports "Starting Frigate (0.9.1-800f33e)" in the log!?

healeydave commented 2 years ago

Sorry to hijack your case Neil, but I think we're having the same issue and reporting in one place save's us having to flip between cases and discussions to reach our unified goal :)

Ok, I removed all my camera's from my config apart from one and added the loglevel to it. This is what I got from a startup:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-24 13:00:37] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-24 13:00:37] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-10-24 13:00:37] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-24 13:00:37] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-24 13:00:37] frigate.mqtt                   INFO    : MQTT connected
[2021-10-24 13:00:37] detector.coral                 INFO    : Starting detection process: 217
[2021-10-24 13:00:37] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-24 13:00:37] frigate.app                    INFO    : Output process started: 219
[2021-10-24 13:00:37] frigate.app                    INFO    : Camera processor started for Driveway_Bottom: 222
[2021-10-24 13:00:37] frigate.app                    INFO    : Capture process started for Driveway_Bottom: 225
[2021-10-24 13:00:37] ws4py                          INFO    : Using epoll
[2021-10-24 13:00:37] ws4py                          INFO    : Using epoll
[2021-10-24 13:00:40] frigate.edgetpu                INFO    : TPU found
[2021-10-24 13:00:55] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 13:00:55] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 13:00:57] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 13:00:57] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 13:00:57] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : Input #0, rtsp, from 'rtsp://admin:PW@192.168.1.15:554/Streaming/channels/201':
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :   Duration: N/A, start: 1635076838.142856, bitrate: N/A
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 20 fps, 24.17 tbr, 90k tbn, 40 tbc
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : Output #0, flv, to 'rtmp://127.0.0.1/live/Driveway_Bottom':
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     encoder         : Lavf58.45.100
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 20 fps, 24.17 tbr, 1k tbn, 90k tbc
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : Stream mapping:
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #0:0 (copy)
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #1:0 (h264 (native) -> rawvideo (native))
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : Press [q] to stop, [?] for help
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : [swscaler @ 0x5593f5e5e0] deprecated pixel format used, make sure you did set range correctly
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : Output #1, rawvideo, to 'pipe:':
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     encoder         : Lavf58.45.100
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480 [SAR 4:3 DAR 16:9], q=2-31, 18432 kb/s, 5 fps, 5 tbn, 5 tbc
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :     Metadata:
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   :       encoder         : Lavc58.91.100 rawvideo
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    6 fps=0.0 q=-1.0 q=-0.0 size=    1008kB time=00:00:01.12 bitrate=7343.4kbits/s speed=1.69x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   16 fps= 13 q=-1.0 q=-0.0 size=    1090kB time=00:00:01.60 bitrate=5581.6kbits/s dup=0 drop=5 speed=1.34x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   26 fps= 15 q=-1.0 q=-0.0 size=    1207kB time=00:00:03.00 bitrate=3294.8kbits/s dup=4 drop=13 speed=1.74x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   36 fps= 16 q=-1.0 q=-0.0 size=    1334kB time=00:00:03.60 bitrate=3036.6kbits/s dup=4 drop=19 speed=1.62x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   47 fps= 17 q=-1.0 q=-0.0 size=    1515kB time=00:00:04.20 bitrate=2955.6kbits/s dup=4 drop=27 speed=1.51x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   56 fps= 17 q=-1.0 q=-0.0 size=    2701kB time=00:00:04.60 bitrate=4810.6kbits/s dup=4 drop=34 speed=1.37x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   65 fps= 17 q=-1.0 q=-0.0 size=    2801kB time=00:00:05.20 bitrate=4413.0kbits/s dup=4 drop=40 speed=1.34x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   73 fps= 17 q=-1.0 q=-0.0 size=    3032kB time=00:00:05.80 bitrate=4282.8kbits/s dup=4 drop=46 speed=1.32x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   83 fps= 17 q=-1.0 q=-0.0 size=    3226kB time=00:00:06.20 bitrate=4262.6kbits/s dup=4 drop=53 speed=1.26x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   94 fps= 17 q=-1.0 q=-0.0 size=    3450kB time=00:00:06.80 bitrate=4156.3kbits/s dup=4 drop=61 speed=1.25x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  104 fps= 17 q=-1.0 q=-0.0 size=    5075kB time=00:00:07.40 bitrate=5618.6kbits/s dup=4 drop=68 speed=1.23x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  112 fps= 17 q=-1.0 q=-0.0 size=    5115kB time=00:00:08.00 bitrate=5238.0kbits/s dup=4 drop=74 speed=1.22x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  122 fps= 17 q=-1.0 q=-0.0 size=    5253kB time=00:00:08.40 bitrate=5123.4kbits/s dup=4 drop=81 speed=1.19x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  132 fps= 17 q=-1.0 q=-0.0 size=    5403kB time=00:00:09.00 bitrate=4918.0kbits/s dup=4 drop=88 speed=1.19x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  142 fps= 18 q=-1.0 q=-0.0 size=    5594kB time=00:00:09.40 bitrate=4875.3kbits/s dup=4 drop=96 speed=1.16x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  152 fps= 18 q=-1.0 q=-0.0 size=    6953kB time=00:00:10.00 bitrate=5695.6kbits/s dup=4 drop=103 speed=1.16x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  158 fps= 17 q=-1.0 q=-0.0 size=    7020kB time=00:00:10.40 bitrate=5529.7kbits/s dup=4 drop=108 speed=1.13x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  168 fps= 17 q=-1.0 q=-0.0 size=    7197kB time=00:00:11.00 bitrate=5359.6kbits/s dup=4 drop=114 speed=1.13x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  178 fps= 17 q=-1.0 q=-0.0 size=    7407kB time=00:00:11.60 bitrate=5230.9kbits/s dup=4 drop=121 speed=1.13x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  188 fps= 17 q=-1.0 q=-0.0 size=    7587kB time=00:00:12.20 bitrate=5094.2kbits/s dup=4 drop=129 speed=1.13x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  198 fps= 18 q=-1.0 q=-0.0 size=    7805kB time=00:00:12.60 bitrate=5074.3kbits/s dup=4 drop=136 speed=1.11x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  206 fps= 17 q=-1.0 q=-0.0 size=    9376kB time=00:00:13.20 bitrate=5818.9kbits/s dup=4 drop=142 speed=1.11x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  217 fps= 17 q=-1.0 q=-0.0 size=    9511kB time=00:00:13.80 bitrate=5646.2kbits/s dup=4 drop=149 speed=1.11x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  227 fps= 17 q=-1.0 q=-0.0 size=    9705kB time=00:00:14.40 bitrate=5520.9kbits/s dup=4 drop=156 speed=1.11x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264 @ 0x5593ab5e40] concealing 15031 DC, 15031 AC, 15031 MV errors in P frame
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  237 fps= 17 q=-1.0 q=-0.0 size=    9859kB time=00:00:15.00 bitrate=5384.2kbits/s dup=4 drop=164 speed=1.08x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : rtsp://admin:PW@192.168.1.15:554/Streaming/channels/201: corrupt decoded frame in stream 0
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  252 fps= 17 q=-1.0 q=-0.0 size=   10083kB time=00:00:15.68 bitrate=5265.4kbits/s dup=4 drop=164 speed=1.09x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  266 fps= 18 q=-1.0 q=-0.0 size=   10334kB time=00:00:16.20 bitrate=5225.7kbits/s dup=7 drop=164 speed=1.08x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  275 fps= 18 q=-1.0 q=-0.0 size=   10511kB time=00:00:16.80 bitrate=5125.1kbits/s dup=7 drop=169 speed=1.08x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : av_interleaved_write_frame(): Connection reset by peer
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : [flv @ 0x5593aaa870] Failed to update header with correct duration.
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : [flv @ 0x5593aaa870] Failed to update header with correct filesize.
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : Error writing trailer of rtmp://127.0.0.1/live/Driveway_Bottom: Connection reset by peer
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=  282 fps= 17 q=-1.0 Lq=-0.0 size=   12183kB time=00:00:17.20 bitrate=5802.5kbits/s dup=7 drop=174 speed=1.06x    
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : video:49979kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[2021-10-24 13:00:57] ffmpeg.Driveway_Bottom.detect  ERROR   : Conversion failed!
[2021-10-24 13:01:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 13:01:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
healeydave commented 2 years ago

Oh, and I just noticed that's without HW acceleration because I forgot to uncomment the lines :) I do have live view and CPU is hovering around 20% but that's because I only have 1 camera in the config now.

healeydave commented 2 years ago

Frigate startup with hwaccel enabled and green screen:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-24 13:18:09] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-24 13:18:10] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-10-24 13:18:10] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-24 13:18:11] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-24 13:18:11] frigate.mqtt                   INFO    : MQTT connected
[2021-10-24 13:18:11] frigate.app                    INFO    : Output process started: 219
[2021-10-24 13:18:11] frigate.app                    INFO    : Camera processor started for Driveway_Bottom: 222
[2021-10-24 13:18:11] ws4py                          INFO    : Using epoll
[2021-10-24 13:18:11] frigate.app                    INFO    : Capture process started for Driveway_Bottom: 225
[2021-10-24 13:18:11] ws4py                          INFO    : Using epoll
[2021-10-24 13:18:11] detector.coral                 INFO    : Starting detection process: 218
[2021-10-24 13:18:11] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-24 13:18:14] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 13:18:14] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 13:18:15] frigate.edgetpu                INFO    : TPU found
[2021-10-24 13:18:31] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 13:18:31] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 13:18:31] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   : Input #0, rtsp, from 'rtsp://admin:PW@192.168.1.15:554/Streaming/channels/201':
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   :   Duration: N/A, start: 1635077893.656111, bitrate: N/A
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 20 fps, 20 tbr, 90k tbn, 40 tbc
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x5597484bb0] Could not find a valid device
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x5597484bb0] can't configure decoder
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   : Stream mapping:
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #0:0 (copy)
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #1:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
[2021-10-24 13:18:31] ffmpeg.Driveway_Bottom.detect  ERROR   : Error while opening decoder for input stream #0:0 : Operation not permitted
[2021-10-24 13:18:33] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 13:18:33] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 13:18:41] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 13:18:41] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 13:18:41] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   : Input #0, rtsp, from 'rtsp://admin:PW@192.168.1.15:554/Streaming/channels/201':
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   :   Duration: N/A, start: 1635077912.282689, bitrate: N/A
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 20 fps, 23.58 tbr, 90k tbn, 40 tbc
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x55a86afeb0] Could not find a valid device
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x55a86afeb0] can't configure decoder
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   : Stream mapping:
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #0:0 (copy)
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #1:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
[2021-10-24 13:18:41] ffmpeg.Driveway_Bottom.detect  ERROR   : Error while opening decoder for input stream #0:0 : Operation not permitted
[2021-10-24 13:18:43] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 13:18:43] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
neildotwilliams commented 2 years ago

@healeydave I'm just glad I'm not alone 👍🏻

healeydave commented 2 years ago

@neildotwilliams It looks like we are both running up-to-date Home Assistant versions, maybe this is the common denominator. Perhaps they put a new build of FFMPEG in it that is causing the problem??

blakeblackshear commented 2 years ago

So this message means that ffmpeg doesnt see the hardware needed for video acceleration:

[h264_v4l2m2m @ 0x5597484bb0] Could not find a valid device

Are both of you using the "Full Access" version of the addon with protection mode disabled?

healeydave commented 2 years ago

I have Protection Mode disabled but according to the add-on store I have the Frigate NVR installed, not the Full Access version. What is the Full Access version? There seems to be quite a few versions in the add-on store now.

blakeblackshear commented 2 years ago

Can you try the full access one? I was expecting the switch to be gone for the non-Full Access version.

healeydave commented 2 years ago

Do we need to remove the other version first?

healeydave commented 2 years ago

Still getting green screen with hwaccel enabled in full access version:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Matplotlib is building the font cache; this may take a moment.
[2021-10-24 13:53:20] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-24 13:53:20] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-10-24 13:53:20] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-24 13:53:20] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-24 13:53:20] frigate.mqtt                   INFO    : MQTT connected
[2021-10-24 13:53:20] detector.coral                 INFO    : Starting detection process: 218
[2021-10-24 13:53:20] frigate.app                    INFO    : Output process started: 219
[2021-10-24 13:53:20] ws4py                          INFO    : Using epoll
[2021-10-24 13:53:20] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-24 13:53:20] frigate.app                    INFO    : Camera processor started for Driveway_Bottom: 225
[2021-10-24 13:53:20] frigate.app                    INFO    : Capture process started for Driveway_Bottom: 231
[2021-10-24 13:53:20] ws4py                          INFO    : Using epoll
[2021-10-24 13:53:23] frigate.edgetpu                INFO    : TPU found
[2021-10-24 13:53:40] watchdog.Driveway_Bottom       INFO    : No frames received from Driveway_Bottom in 20 seconds. Exiting ffmpeg...
[2021-10-24 13:53:40] watchdog.Driveway_Bottom       INFO    : Waiting for ffmpeg to exit gracefully...
[2021-10-24 13:54:10] watchdog.Driveway_Bottom       INFO    : FFmpeg didnt exit. Force killing...
[2021-10-24 13:54:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 13:54:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. PyMemoryView_FromBuffer(): info->buf must not be NULL
[2021-10-24 13:54:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 13:54:19] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:37690]
[2021-10-24 13:54:20] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 13:54:20] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 13:54:20] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   : Input #0, rtsp, from 'rtsp://admin:PW@192.168.1.15:554/Streaming/channels/201':
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :   Duration: N/A, start: 1635080000.966644, bitrate: N/A
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 20 fps, 24.92 tbr, 90k tbn, 40 tbc
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x55c5162490] Using device /dev/video10
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x55c5162490] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x55c5162490] requesting formats: output=H264 capture=YU12
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   : Output #0, flv, to 'rtmp://127.0.0.1/live/Driveway_Bottom':
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :     encoder         : Lavf58.45.100
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 20 fps, 24.92 tbr, 1k tbn, 90k tbc
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   : Stream mapping:
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #0:0 (copy)
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #1:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   : Press [q] to stop, [?] for help
[2021-10-24 13:54:20] ffmpeg.Driveway_Bottom.detect  ERROR   : av_interleaved_write_frame(): Connection reset by peer
[2021-10-24 13:54:24] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:54320]
[2021-10-24 13:54:26] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:54320]
[2021-10-24 13:54:30] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:54334]
[2021-10-24 13:54:31] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:54334]
[2021-10-24 13:54:32] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:37690]
blakeblackshear commented 2 years ago

At least the logs show its finding the device now:

[h264_v4l2m2m @ 0x55c5162490] Using device /dev/video10

Try updating your hwaccel_args to this:

hwaccel_args:
  - -c:v
  - h264_v4l2m2m   
  - -pix_fmt
  - yuv420p
healeydave commented 2 years ago

With above:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-24 14:10:09] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-24 14:10:09] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-10-24 14:10:09] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-24 14:10:09] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-24 14:10:09] frigate.app                    INFO    : Output process started: 219
[2021-10-24 14:10:09] frigate.mqtt                   INFO    : MQTT connected
[2021-10-24 14:10:09] detector.coral                 INFO    : Starting detection process: 218
[2021-10-24 14:10:09] frigate.app                    INFO    : Camera processor started for Driveway_Bottom: 222
[2021-10-24 14:10:09] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-24 14:10:09] frigate.app                    INFO    : Capture process started for Driveway_Bottom: 226
[2021-10-24 14:10:09] ws4py                          INFO    : Using epoll
[2021-10-24 14:10:09] ws4py                          INFO    : Using epoll
[2021-10-24 14:10:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 14:10:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 14:10:12] frigate.edgetpu                INFO    : TPU found
[2021-10-24 14:10:29] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 14:10:29] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 14:10:29] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 14:10:29] ffmpeg.Driveway_Bottom.detect  ERROR   : Option pixel_format not found.
[2021-10-24 14:10:29] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 14:10:29] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 14:10:39] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 14:10:39] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 14:10:39] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 14:10:39] ffmpeg.Driveway_Bottom.detect  ERROR   : Option pixel_format not found.
[2021-10-24 14:10:39] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 14:10:39] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 14:10:49] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 14:10:49] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 14:10:49] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 14:10:49] ffmpeg.Driveway_Bottom.detect  ERROR   : Option pixel_format not found.
[2021-10-24 14:10:50] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 14:10:50] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 14:10:59] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 14:10:59] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 14:10:59] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 14:10:59] ffmpeg.Driveway_Bottom.detect  ERROR   : Option pixel_format not found.
[2021-10-24 14:11:00] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 14:11:00] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 14:11:02] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:38832]
[2021-10-24 14:11:04] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:55452]
[2021-10-24 14:11:08] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:55452]
[2021-10-24 14:11:08] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:38832]
[2021-10-24 14:11:09] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 14:11:09] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 14:11:09] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 14:11:09] ffmpeg.Driveway_Bottom.detect  ERROR   : Option pixel_format not found.
[2021-10-24 14:11:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 14:11:10] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 14:11:19] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 14:11:19] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 14:11:19] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 14:11:19] ffmpeg.Driveway_Bottom.detect  ERROR   : Option pixel_format not found.
[2021-10-24 14:11:20] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 14:11:20] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
blakeblackshear commented 2 years ago

That didn't help. Let's remove those and increase the ffmpeg logs to verbose instead of info.

healeydave commented 2 years ago

with reversion to original hwaccel settings but with verbose logging:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Matplotlib is building the font cache; this may take a moment.
[2021-10-24 14:34:41] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-24 14:34:42] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-10-24 14:34:42] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-24 14:34:42] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-24 14:34:42] frigate.app                    INFO    : Output process started: 219
[2021-10-24 14:34:42] frigate.mqtt                   INFO    : MQTT connected
[2021-10-24 14:34:42] frigate.app                    INFO    : Camera processor started for Driveway_Bottom: 221
[2021-10-24 14:34:42] ws4py                          INFO    : Using epoll
[2021-10-24 14:34:42] frigate.app                    INFO    : Capture process started for Driveway_Bottom: 224
[2021-10-24 14:34:42] detector.coral                 INFO    : Starting detection process: 218
[2021-10-24 14:34:42] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-24 14:34:42] ws4py                          INFO    : Using epoll
[2021-10-24 14:34:45] frigate.edgetpu                INFO    : TPU found
[2021-10-24 14:35:02] watchdog.Driveway_Bottom       INFO    : No frames received from Driveway_Bottom in 20 seconds. Exiting ffmpeg...
[2021-10-24 14:35:02] watchdog.Driveway_Bottom       INFO    : Waiting for ffmpeg to exit gracefully...
[2021-10-24 14:35:32] watchdog.Driveway_Bottom       INFO    : FFmpeg didnt exit. Force killing...
[2021-10-24 14:35:32] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 14:35:32] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 14:35:42] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 14:35:42] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 14:35:42] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [tcp @ 0x558576af80] Starting connection attempt to 192.168.1.15 port 554
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [tcp @ 0x558576af80] Successfully connected to 192.168.1.15 port 554
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x5585768ad0] SDP:
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : v=0
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : o=- 1109162014219182 0 IN IP4 0.0.0.0
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : s=HIK Media Server V4.40.017
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : i=HIK Media Server Session Description : standard
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : e=NONE
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : c=IN IP4 0.0.0.0
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : t=0 0
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : a=control:*
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : b=AS:8202
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : a=range:npt=now-
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : m=video 0 RTP/AVP 96
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : i=Video Media
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : a=rtpmap:96 H264/90000
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : a=fmtp:96 profile-level-id=4D0014;packetization-mode=0;sprop-parameter-sets=Z01AM42NQB4AIf/gLcBAQFAAAD6AAAnEDoYAHp8AAA5OHC7y40MAD0+AAAcnDhd5cKA=,aO44gA==
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : a=control:trackID=video
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : b=AS:8192
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : a=Media_header:MEDIAINFO=494D4B48020100000400000100000000000000000000000000000000000000000000000000000000;
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : a=appversion:1.0
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : 
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x5585768ad0] setting jitter buffer size to 0
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264 @ 0x558576bfd0] Reinit context to 3840x2160, pix_fmt: yuvj420p
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : Input #0, rtsp, from 'rtsp://admin:PW@192.168.1.15:554/Streaming/channels/201':
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :   Duration: N/A, start: 1635082482.896289, bitrate: N/A
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264, 1 reference frame, yuvj420p(pc, bt709, progressive, left), 3840x2160 [SAR 1:1 DAR 16:9], 20 fps, 24.42 tbr, 90k tbn, 40 tbc
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [tcp @ 0x558578a420] Starting connection attempt to 127.0.0.1 port 1935
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [tcp @ 0x558578a420] Successfully connected to 127.0.0.1 port 1935
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_mp4toannexb @ 0x5585768680] The input looks like it is Annex B already
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x5585a4c290] Using device /dev/video10
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x5585a4c290] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x5585a4c290] requesting formats: output=H264 capture=YU12
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : Output #0, flv, to 'rtmp://127.0.0.1/live/Driveway_Bottom':
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :     encoder         : Lavf58.45.100
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264, 1 reference frame ([7][0][0][0] / 0x0007), yuvj420p(pc, bt709, progressive, left), 3840x2160 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 20 fps, 24.42 tbr, 1k tbn, 90k tbc
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : Stream mapping:
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #0:0 (copy)
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #1:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : Press [q] to stop, [?] for help
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   35 fps=0.0 q=-1.0 q=0.0 size=    1744kB time=00:00:01.63 bitrate=8764.3kbits/s speed= 3.2x    
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=   46 fps= 44 q=-1.0 q=0.0 size=    1937kB time=00:00:02.17 bitrate=7311.3kbits/s speed=2.07x    
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : av_interleaved_write_frame(): Connection reset by peer
[2021-10-24 14:35:42] ffmpeg.Driveway_Bottom.detect  ERROR   : No more output streams to write to, finishing.
blakeblackshear commented 2 years ago

This message is supposed to be a network issue:

av_interleaved_write_frame(): Connection reset by peer

Let's simplify by disabling rtmp for the camera:

rtmp:
  enabled: False
healeydave commented 2 years ago

WIth rtmp disabled:

[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-24 15:26:55] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-24 15:26:55] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-10-24 15:26:55] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-24 15:26:55] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-24 15:26:55] frigate.mqtt                   INFO    : MQTT connected
[2021-10-24 15:26:55] frigate.app                    INFO    : Output process started: 219
[2021-10-24 15:26:55] ws4py                          INFO    : Using epoll
[2021-10-24 15:26:55] frigate.app                    INFO    : Camera processor started for Driveway_Bottom: 221
[2021-10-24 15:26:55] detector.coral                 INFO    : Starting detection process: 218
[2021-10-24 15:26:55] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-24 15:26:55] frigate.app                    INFO    : Capture process started for Driveway_Bottom: 225
[2021-10-24 15:26:56] ws4py                          INFO    : Using epoll
[2021-10-24 15:26:58] frigate.edgetpu                INFO    : TPU found
[2021-10-24 15:27:15] watchdog.Driveway_Bottom       INFO    : No frames received from Driveway_Bottom in 20 seconds. Exiting ffmpeg...
[2021-10-24 15:27:15] watchdog.Driveway_Bottom       INFO    : Waiting for ffmpeg to exit gracefully...
[2021-10-24 15:27:27] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:43208]
[2021-10-24 15:27:30] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:59846]
[2021-10-24 15:27:34] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:59846]
[2021-10-24 15:27:34] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:43208]
[2021-10-24 15:27:45] watchdog.Driveway_Bottom       INFO    : FFmpeg didnt exit. Force killing...
[2021-10-24 15:27:45] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 15:27:45] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 15:27:55] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 15:27:55] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 15:27:55] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [tcp @ 0x5590ae2e70] Starting connection attempt to 192.168.1.15 port 554
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [tcp @ 0x5590ae2e70] Successfully connected to 192.168.1.15 port 554
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x5590ae0970] SDP:
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : v=0
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : o=- 1109162014219182 0 IN IP4 0.0.0.0
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : s=HIK Media Server V4.40.017
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : i=HIK Media Server Session Description : standard
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : e=NONE
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : c=IN IP4 0.0.0.0
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : t=0 0
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : a=control:*
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : b=AS:8202
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : a=range:npt=now-
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : m=video 0 RTP/AVP 96
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : i=Video Media
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : a=rtpmap:96 H264/90000
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : a=fmtp:96 profile-level-id=4D0014;packetization-mode=0;sprop-parameter-sets=Z01AM42NQB4AIf/gLcBAQFAAAD6AAAnEDoYAHp8AAA5OHC7y40MAD0+AAAcnDhd5cKA=,aO44gA==
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : a=control:trackID=video
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : b=AS:8192
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : a=Media_header:MEDIAINFO=494D4B48020100000400000100000000000000000000000000000000000000000000000000000000;
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : a=appversion:1.0
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : 
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x5590ae0970] setting jitter buffer size to 0
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264 @ 0x5590ae3ec0] Reinit context to 3840x2160, pix_fmt: yuvj420p
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : Input #0, rtsp, from 'rtsp://admin:PW@192.168.1.15:554/Streaming/channels/201':
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   :   Duration: N/A, start: 1635085616.289389, bitrate: N/A
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264, 1 reference frame, yuvj420p(pc, bt709, progressive, left), 3840x2160 [SAR 1:1 DAR 16:9], 20 fps, 20.50 tbr, 90k tbn, 40 tbc
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_mp4toannexb @ 0x5590ae0680] The input looks like it is Annex B already
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x5590b01380] Using device /dev/video10
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x5590b01380] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x5590b01380] requesting formats: output=H264 capture=YU12
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : Stream mapping:
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : Press [q] to stop, [?] for help
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:55] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 15:27:56] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
healeydave commented 2 years ago

Oooo, 2.1 Full Access Update has shown up 🤔😀

healeydave commented 2 years ago

Frigate 2.1 Full Access with hwaccel enabled, green screen cameras, verbose logging:

[2021-10-24 16:13:52] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-10-24 16:13:52] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-24 16:13:52] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-24 16:13:52] frigate.mqtt                   INFO    : MQTT connected
[2021-10-24 16:13:52] frigate.app                    INFO    : Output process started: 219
[2021-10-24 16:13:52] detector.coral                 INFO    : Starting detection process: 218
[2021-10-24 16:13:52] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-24 16:13:52] ws4py                          INFO    : Using epoll
[2021-10-24 16:13:52] frigate.app                    INFO    : Camera processor started for Driveway_Bottom: 223
[2021-10-24 16:13:52] frigate.app                    INFO    : Capture process started for Driveway_Bottom: 225
[2021-10-24 16:13:53] ws4py                          INFO    : Using epoll
[2021-10-24 16:13:55] frigate.edgetpu                INFO    : TPU found
[2021-10-24 16:14:13] watchdog.Driveway_Bottom       INFO    : No frames received from Driveway_Bottom in 20 seconds. Exiting ffmpeg...
[2021-10-24 16:14:13] watchdog.Driveway_Bottom       INFO    : Waiting for ffmpeg to exit gracefully...
[2021-10-24 16:14:35] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46018]
[2021-10-24 16:14:37] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:34406]
[2021-10-24 16:14:38] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:34406]
[2021-10-24 16:14:43] watchdog.Driveway_Bottom       INFO    : FFmpeg didnt exit. Force killing...
[2021-10-24 16:14:43] frigate.video                  INFO    : Driveway_Bottom: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-24 16:14:43] frigate.video                  INFO    : Driveway_Bottom: ffmpeg process is not running. exiting capture thread...
[2021-10-24 16:14:44] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:34408]
[2021-10-24 16:14:45] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:34408]
[2021-10-24 16:14:46] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46018]
[2021-10-24 16:14:53] watchdog.Driveway_Bottom       ERROR   : FFMPEG process crashed unexpectedly for Driveway_Bottom.
[2021-10-24 16:14:53] watchdog.Driveway_Bottom       ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-24 16:14:53] watchdog.Driveway_Bottom       ERROR   : You may have invalid args defined for this camera.
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [tcp @ 0x559e829e70] Starting connection attempt to 192.168.1.15 port 554
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [tcp @ 0x559e829e70] Successfully connected to 192.168.1.15 port 554
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559e827970] SDP:
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : v=0
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : o=- 1109162014219182 0 IN IP4 0.0.0.0
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : s=HIK Media Server V4.40.017
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : i=HIK Media Server Session Description : standard
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : e=NONE
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : c=IN IP4 0.0.0.0
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : t=0 0
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : a=control:*
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : b=AS:8202
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : a=range:npt=now-
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : m=video 0 RTP/AVP 96
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : i=Video Media
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : a=rtpmap:96 H264/90000
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : a=fmtp:96 profile-level-id=4D0014;packetization-mode=0;sprop-parameter-sets=Z01AM42NQB4AIf/gLcBAQFAAAD6AAAnEDoYAHp8AAA5OHC7y40MAD0+AAAcnDhd5cKA=,aO44gA==
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : a=control:trackID=video
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : b=AS:8192
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : a=Media_header:MEDIAINFO=494D4B48020100000400000100000000000000000000000000000000000000000000000000000000;
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : a=appversion:1.0
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : 
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559e827970] setting jitter buffer size to 0
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264 @ 0x559e82aec0] Reinit context to 3840x2160, pix_fmt: yuvj420p
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : Input #0, rtsp, from 'rtsp://admin:PW@192.168.1.15:554/Streaming/channels/201':
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   :   Metadata:
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   :     title           : HIK Media Server V4.40.017
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   :     comment         : HIK Media Server Session Description : standard
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   :   Duration: N/A, start: 1635088433.392144, bitrate: N/A
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   :     Stream #0:0: Video: h264, 1 reference frame, yuvj420p(pc, bt709, progressive, left), 3840x2160 [SAR 1:1 DAR 16:9], 20 fps, 20.33 tbr, 90k tbn, 40 tbc
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_mp4toannexb @ 0x559e827680] The input looks like it is Annex B already
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x559e848540] Using device /dev/video10
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x559e848540] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : [h264_v4l2m2m @ 0x559e848540] requesting formats: output=H264 capture=YU12
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : Stream mapping:
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   :   Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : Press [q] to stop, [?] for help
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:14:53] ffmpeg.Driveway_Bottom.detect  ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[2021-10-24 16:15:13] watchdog.Driveway_Bottom       INFO    : No frames received from Driveway_Bottom in 20 seconds. Exiting ffmpeg...
[2021-10-24 16:15:13] watchdog.Driveway_Bottom       INFO    : Waiting for ffmpeg to exit gracefully...
alevike commented 2 years ago

Same issue here - Pi4//latest HA//latest frigate

blakeblackshear commented 2 years ago

Strange. You can clearly see that no frames are coming through. Try changing the log to trace instead of verbose.

healeydave commented 2 years ago

Hmmm, with trace, there's not a lot to see because of the amount of lines of error, this is all that I can cut & paste from the log screen:

[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1040
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=428
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=100
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1376
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=1336
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] tcp_read_packet:
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] ret=1 c=24 [$]
[2021-10-24 19:41:00] ffmpeg.Driveway_Bottom.detect  ERROR   : [rtsp @ 0x559cc5c970] id=0 len=64
healeydave commented 2 years ago

If I turn off hwaccel, I can see a picture in the frigate UI as opposed to a green screen, so that proves everything is working without hwaccel enabled. CPU is up around 75% with just one camera and of-course now the logs don't really show anything because it working.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-10-24 19:45:41] frigate.app                    INFO    : Starting Frigate (0.9.3-5e692ac)
[2021-10-24 19:45:42] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-10-24 19:45:42] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-24 19:45:42] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-24 19:45:42] frigate.app                    INFO    : Output process started: 218
[2021-10-24 19:45:42] frigate.mqtt                   INFO    : MQTT connected
[2021-10-24 19:45:42] ws4py                          INFO    : Using epoll
[2021-10-24 19:45:42] frigate.app                    INFO    : Camera processor started for Driveway_Bottom: 220
[2021-10-24 19:45:42] detector.coral                 INFO    : Starting detection process: 217
[2021-10-24 19:45:42] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-24 19:45:42] frigate.app                    INFO    : Capture process started for Driveway_Bottom: 223
[2021-10-24 19:45:42] ws4py                          INFO    : Using epoll
[2021-10-24 19:45:45] frigate.edgetpu                INFO    : TPU found
[2021-10-24 19:45:46] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:57218]
[2021-10-24 19:45:51] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:57218]
[2021-10-24 19:47:46] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:57380]
[2021-10-24 19:47:48] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:45766]
[2021-10-24 19:47:52] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:45766]
[2021-10-24 19:47:53] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:57380]
healeydave commented 2 years ago

Would it be as simple as putting an older version of FFMPEG back on to the Home Assistant OS to prove a point of failure or is it not that simple?

blakeblackshear commented 2 years ago

Frigate doesn't use ffmpeg from Home Assistant OS. It bundles it's own and it's the same binary as the previous version. It may be that the new version of Home Assistant OS has some kernel updates that aren't compatible with the way ffmpeg was built. These things are often difficult to track down.

Hmmm, with trace, there's not a lot to see

I feared that would be the case.

healeydave commented 2 years ago

Ah, ok, maybe Frenck can shed some light on HA changes, I can't pinpoint a particular version of HA but its definitely one of the most recent that's broke it for me.

I'm guessing its not affecting everyone either just RPi users?

blakeblackshear commented 2 years ago

I haven't seen any reported issues like this other than RPi users.

healeydave commented 2 years ago

I reached out to Frenck, he said, "I'm not closely involved in the OS development. For anything that causes issues, opening issues in the right issues tracker is always the best route"

jonandel commented 2 years ago

Ive been using Frigate since about Feb 2021 - always suspected the HW accelleration on my Rpi 4 hasnt worked. but only due to CPU usage. No errors otherwise (apart from those Ive reported here) - which suggest something is rather 'fickle'.

In fact, Ive just done some testing on 0.9.4, Rpi 4, 64 bit; Current Hassos, three cameras :

Papadoma commented 2 years ago

Frigate (0.9.4-26ae608) addon version 2.3 HASS core-2021.10.6 RPi4, 32bit

This is what I get with hardware accel on

[2021-10-25 11:10:59] frigate.video INFO : Parking_Cam_NVR: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures [2021-10-25 11:10:59] frigate.video INFO : Parking_Cam_NVR: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures [2021-10-25 11:10:59] frigate.video INFO : Parking_Cam_NVR: ffmpeg process is not running. exiting capture thread... [2021-10-25 11:11:07] watchdog.Parking_Cam_NVR ERROR : FFMPEG process crashed unexpectedly for Parking_Cam_NVR. [2021-10-25 11:11:07] watchdog.Parking_Cam_NVR ERROR : The following ffmpeg logs include the last 100 lines prior to exit. [2021-10-25 11:11:07] watchdog.Parking_Cam_NVR ERROR : You may have invalid args defined for this camera. [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Guessed Channel Layout for Input Stream #0.1 : mono [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Input #0, rtsp, from 'rtsp://192.168.1.16:8554/unicast': [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Metadata: [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : title : LIVE555 Streaming Media v2020.05.15 [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : comment : LIVE555 Streaming Media v2020.05.15 [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Duration: N/A, start: 1635156657.411500, bitrate: N/A [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Stream #0:0: Video: h264, yuv420p(progressive), 1920x1080, 25 fps, 25 tbr, 90k tbn, 50 tbc [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : mmal: mmal_vc_shm_init: could not initialize vc shared memory service [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : mmal: mmal_vc_component_create: failed to initialise shm for 'vc.ril.video_decode' (7:EIO) [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : mmal: mmal_component_create_core: could not create component 'vc.ril.video_decode' (7) [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Stream mapping: [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Stream #0:0 -> #0:0 (copy) [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Stream #0:0 -> #1:0 (h264 (h264_mmal) -> rawvideo (native)) [2021-10-25 11:11:07] ffmpeg.Parking_Cam_NVR.detect ERROR : Error while opening decoder for input stream #0:0 : Unknown error occurred

blakeblackshear commented 2 years ago

@Papadoma this is an error stating that the hardware for 32bit OS can't be found. Are you certain you are running the full access addon version with protection mode disabled?