frigate icon indicating copy to clipboard operation
frigate copied to clipboard

[Config Support]: Green Screen when hwaccel and vaapi enabled at version 0.11.0

Open Tuatop opened this issue 2 years ago • 12 comments

Describe the problem you are having

Hi there, I'm an add-on user and I got green screen when hwaccel and vaapi enabled even added LIBVA_DRIVER_NAME: i965 or LIBVA_DRIVER_NAME_JELLYFIN: i965 in the frigate.yml file. There is no problem with version 0.10.0

It's running on Intel NUC (NUC5CPYH) Processor : Celeron Processor N3060

Version

0.11.0

Frigate config file

mqtt:
  # Required: host name
  host: mqtt_ip
  # Optional: port (default: shown below)
  port: mqtt_port
  # Optional: topic prefix (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  topic_prefix: frigate
  # Optional: client id (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  client_id: frigate
  # Optional: user
  user: username
  # Optional: password
  # NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
  #       eg. password: '{FRIGATE_MQTT_PASSWORD}'
  password: password
  # Optional: interval in seconds for publishing stats (default: shown below)
  stats_interval: 60

cameras:
  front_door: # Name of your camera
    ffmpeg:
      inputs:
        - path: rtsp://user:password@ip:port/cam/realmonitor?channel=1&subtype=0?
          roles:
            - detect
            - record
            - rtmp

    detect:
      enabled: True
      fps: 5
      width: 2560
      height: 1440
      max_disappeared: 50
      
    record:
      enabled: true
      expire_interval: 60
      retain:
        days: 2
        mode: all
      events:
        pre_capture: 5
        post_capture: 5
        retain:
          default: 2
          mode: active_objects
          objects:
            person: 2
            cat: 1
            dog: 1
    
    rtmp:
      enabled: True
      
    snapshots:
      enabled: True
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: True
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: shown below)
      #height: 270
      retain:
        # Required: Default retention days (default: shown below)
        default: 2
        # Optional: Per object retention days
        objects:
          person: 2
          cat: 1
          dog: 1
    mqtt:
      # Optional: Enable publishing snapshot via mqtt for camera (default: shown below)
      # NOTE: Only applies to publishing image data to MQTT via 'frigate/<camera_name>/<object_name>/snapshot'.
      # All other messages will still be published.
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: True
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: shown below)
      #height: 270
    objects:
      track:
        - person
        - cat
        - dog   
    
objects:
  # Optional: list of objects to track from labelmap.txt (default: shown below)
  track:
    - person
    - cat
    - dog
  # Optional: filters to reduce false positives for specific object types
  filters:
    person:
      # Optional: minimum width*height of the bounding box for the detected object (default: 0)
      #min_area: 5000
      # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
      #max_area: 100000
      # Optional: minimum score for the object to initiate tracking (default: shown below)
      min_score: 0.65
      # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
      threshold: 0.73
    cat:
      min_score: 0.5
      threshold: 0.7
    dog:
      min_score: 0.5
      threshold: 0.7
      
detectors:
#  cpu1:
#    type: cpu
#  cpu2:
#    type: cpu
#  coral1:
#    type: edgetpu
#    device: usb:0
#  coral2:
#    type: edgetpu
#    device: usb:1

  coral:
    type: edgetpu
    device: usb
    
ffmpeg:
  # Optional: global ffmpeg args (default: shown below)
  global_args: -hide_banner -loglevel warning
  # Optional: global hwaccel args (default: shown below)
  # NOTE: See hardware acceleration docs for your specific device
  hwaccel_args:
    - -hwaccel
    - vaapi
    - -hwaccel_device
    - /dev/dri/renderD128
    - -hwaccel_output_format
    - yuv420p
  # Optional: global input args (default: shown below)
  input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1
  # Optional: global output args
  output_args:
    # Optional: output args for detect streams (default: shown below)
    detect: -f rawvideo -pix_fmt yuv420p
    # Optional: output args for record streams (default: shown below)
    record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
    # Optional: output args for rtmp streams (default: shown below)
    rtmp: -c copy -f flv

environment_vars:
#  LIBVA_DRIVER_NAME_JELLYFIN: i965
  LIBVA_DRIVER_NAME: i965

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.
[2022-10-07 09:42:28] frigate.app                    INFO    : Starting Frigate (0.11.0-3846a13)
[2022-10-07 09:42:29] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2022-10-07 09:42:29] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2022-10-07 09:42:29] peewee_migrate                 INFO    : There is nothing to migrate
[2022-10-07 09:42:29] frigate.app                    INFO    : Output process started: 214
[2022-10-07 09:42:29] detector.coral                 INFO    : Starting detection process: 213
[2022-10-07 09:42:29] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2022-10-07 09:42:29] frigate.app                    INFO    : Camera processor started for front_door: 217
[2022-10-07 09:42:29] ws4py                          INFO    : Using epoll
[2022-10-07 09:42:29] frigate.app                    INFO    : Capture process started for front_door: 219
[2022-10-07 09:42:29] ws4py                          INFO    : Using epoll
[2022-10-07 09:42:30] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:42:30] frigate.video                  ERROR   : front_door: ffmpeg process is not running. exiting capture thread...
[2022-10-07 09:42:31] frigate.edgetpu                INFO    : TPU found
[2022-10-07 09:42:34] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
[2022-10-07 09:42:34] frigate.record                 ERROR   : could not convert string to float: ''
[2022-10-07 09:42:39] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
[2022-10-07 09:42:39] frigate.record                 ERROR   : could not convert string to float: ''
[2022-10-07 09:42:42] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:54798]
[2022-10-07 09:42:43] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:47436]
[2022-10-07 09:42:44] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
[2022-10-07 09:42:44] frigate.record                 ERROR   : could not convert string to float: ''
[2022-10-07 09:42:45] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:47436]
[2022-10-07 09:42:45] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:54798]
[2022-10-07 09:42:49] watchdog.front_door            ERROR   : Ffmpeg process crashed unexpectedly for front_door.
[2022-10-07 09:42:49] watchdog.front_door            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-07 09:42:49] ffmpeg.front_door.detect       ERROR   : [segment @ 0x556b6936fbc0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-10-07 09:42:49] ffmpeg.front_door.detect       ERROR   : [flv @ 0x556b6936e000] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-10-07 09:42:49] ffmpeg.front_door.detect       ERROR   : [AVHWFramesContext @ 0x7f878c059140] Failed to read image from surface 0x4000016: 20 (the requested function is not implemented).
[2022-10-07 09:42:49] ffmpeg.front_door.detect       ERROR   : [h264 @ 0x556b6936a840] Failed to transfer data to output frame: -5.
[2022-10-07 09:42:49] ffmpeg.front_door.detect       ERROR   : Error while processing the decoded data for stream #0:0
[2022-10-07 09:42:49] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
[2022-10-07 09:42:49] frigate.record                 ERROR   : could not convert string to float: ''
[2022-10-07 09:42:50] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:42:50] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:42:50] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:42:50] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:42:50] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:42:50] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:42:50] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:42:50] frigate.video                  ERROR   : front_door: ffmpeg process is not running. exiting capture thread...
[2022-10-07 09:42:54] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
[2022-10-07 09:42:54] frigate.record                 ERROR   : could not convert string to float: ''
[2022-10-07 09:42:59] watchdog.front_door            ERROR   : Ffmpeg process crashed unexpectedly for front_door.
[2022-10-07 09:42:59] watchdog.front_door            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-07 09:42:59] ffmpeg.front_door.detect       ERROR   : [segment @ 0x555c78a6ef40] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-10-07 09:42:59] ffmpeg.front_door.detect       ERROR   : [flv @ 0x555c78a75480] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-10-07 09:42:59] ffmpeg.front_door.detect       ERROR   : [AVHWFramesContext @ 0x7f54a0062840] Failed to read image from surface 0x4000016: 20 (the requested function is not implemented).
[2022-10-07 09:42:59] ffmpeg.front_door.detect       ERROR   : [h264 @ 0x555c788d36c0] Failed to transfer data to output frame: -5.
[2022-10-07 09:42:59] ffmpeg.front_door.detect       ERROR   : Error while processing the decoded data for stream #0:0
[2022-10-07 09:42:59] frigate.record                 ERROR   : Error occurred when attempting to maintain recording cache
[2022-10-07 09:42:59] frigate.record                 ERROR   : could not convert string to float: ''
[2022-10-07 09:43:00] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:43:00] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:43:00] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:43:00] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:43:00] frigate.video                  ERROR   : front_door: Unable to read frames from ffmpeg process.
[2022-10-07 09:43:00] frigate.video                  ERROR   : front_door: ffmpeg process is not running. exiting capture thread...

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Any other information that may be helpful

No response

Tuatop avatar Oct 07 '22 02:10 Tuatop

Are the logs with or without i965

Please also try disabling RTMP

NickM-27 avatar Oct 07 '22 03:10 NickM-27

Are the logs with or without i965

Please also try disabling RTMP

The logs is with i965, hwaccel and vaapi enabled. Also try to disable RTMP but still get the same error.

Tuatop avatar Oct 07 '22 04:10 Tuatop

Same issue here. RTMP disabled. No i965

removing hwaccel and vaapi will allow application to start without issue.

Homeassistant add-on

THland83 avatar Oct 07 '22 04:10 THland83

Same issue here, n3060 processor, running in the haos supervisor. works without -hwaccel and -vaapi but doesn't seem like acceleration is working. Gonna be replacing the host soon though.

colinwinslow avatar Oct 14 '22 18:10 colinwinslow

I might have a similar issue. I can only have hwaccel enabled on one camera. if I set hwaccel global all camera threads dies. Also i965 and vaapi

Sdahl1234 avatar Oct 25 '22 20:10 Sdahl1234

Same issue after upgrading to v0.11.1. Output log is near identical to OP.

sclaflin avatar Nov 10 '22 02:11 sclaflin

Same issue after upgrading to v0.11.1. Output log is near identical to OP.

Need more info like CPU, hwaccel args, driver_name you're using, etc.

NickM-27 avatar Nov 10 '22 02:11 NickM-27

Apologies!

11th Gen Intel® Core™ i7-11700 @ 2.50GHz × 16

Per documentation for intel quicksync >= gen 10:

ffmpeg:
  hwaccel_args: -c:v h264_qsv

Not using the LIBVA_DRIVER_NAME environment variable, if that's what you were referring to.

Logs:

frigate    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate    | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate    | [fix-attrs.d] applying ownership & permissions fixes...
frigate    | [fix-attrs.d] done.
frigate    | [cont-init.d] executing container initialization scripts...
frigate    | [cont-init.d] done.
frigate    | [services.d] starting services
frigate    | [services.d] done.
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | [2022-11-09 21:08:51] frigate.config                 WARNING : The 'retain_days' config option has been DEPRECATED and will be removed in a future version. Please use the 'days' setting under 'retain'
frigate    | Starting migrations
frigate    | [2022-11-09 21:08:51] peewee_migrate                 INFO    : Starting migrations
frigate    | There is nothing to migrate
frigate    | [2022-11-09 21:08:51] peewee_migrate                 INFO    : There is nothing to migrate
frigate    | [2022-11-09 21:08:51] detector.coral1                INFO    : Starting detection process: 239
frigate    | [2022-11-09 21:08:51] detector.coral2                INFO    : Starting detection process: 241
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Output process started: 244
frigate    | [2022-11-09 21:08:51] ws4py                          INFO    : Using epoll
frigate    | [2022-11-09 21:08:51] frigate.edgetpu                INFO    : Attempting to load TPU as pci:0
frigate    | [2022-11-09 21:08:51] frigate.edgetpu                INFO    : Attempting to load TPU as pci:1
frigate    | [2022-11-09 21:08:51] frigate.edgetpu                INFO    : TPU found
frigate    | [2022-11-09 21:08:51] frigate.edgetpu                INFO    : TPU found
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for kitchen: 252
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for dining_room: 267
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for living_room: 277
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for living_room2: 282
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for office: 284
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for laundry: 285
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for sitting_room: 287
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for garage_east: 288
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for garage_north: 290
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for garage_inside: 291
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for basement_north: 297
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Camera processor started for basement_south: 299
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for kitchen: 300
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for dining_room: 304
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for living_room: 308
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for living_room2: 314
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for office: 333
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for laundry: 338
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for sitting_room: 343
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for garage_east: 348
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for garage_north: 353
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for garage_inside: 358
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for basement_north: 363
frigate    | [2022-11-09 21:08:51] frigate.app                    INFO    : Capture process started for basement_south: 368
frigate    | [2022-11-09 21:08:51] ws4py                          INFO    : Using epoll
frigate    | [2022-11-09 21:09:11] watchdog.office                INFO    : No frames received from office in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.laundry               INFO    : No frames received from laundry in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.kitchen               INFO    : No frames received from kitchen in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.kitchen               INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] watchdog.laundry               INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] watchdog.office                INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] watchdog.dining_room           INFO    : No frames received from dining_room in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.dining_room           INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : kitchen: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : kitchen: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] watchdog.living_room           INFO    : No frames received from living_room in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.living_room           INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] watchdog.living_room2          INFO    : No frames received from living_room2 in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.living_room2          INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] watchdog.sitting_room          INFO    : No frames received from sitting_room in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.sitting_room          INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : living_room2: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : living_room2: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] watchdog.garage_east           INFO    : No frames received from garage_east in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.garage_east           INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] watchdog.garage_north          INFO    : No frames received from garage_north in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.garage_inside         INFO    : No frames received from garage_inside in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.garage_north          INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] watchdog.garage_inside         INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] watchdog.basement_north        INFO    : No frames received from basement_north in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.basement_north        INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : laundry: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : laundry: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] watchdog.basement_south        INFO    : No frames received from basement_south in 20 seconds. Exiting ffmpeg...
frigate    | [2022-11-09 21:09:11] watchdog.basement_south        INFO    : Waiting for ffmpeg to exit gracefully...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : dining_room: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : dining_room: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : living_room: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : living_room: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : office: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : office: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : sitting_room: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : sitting_room: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : garage_east: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : garage_east: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : basement_north: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : basement_north: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : basement_south: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : basement_south: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : garage_inside: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : garage_inside: ffmpeg process is not running. exiting capture thread...
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : garage_north: Unable to read frames from ffmpeg process.
frigate    | [2022-11-09 21:09:11] frigate.video                  ERROR   : garage_north: ffmpeg process is not running. exiting capture thread...

sclaflin avatar Nov 10 '22 03:11 sclaflin

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

github-actions[bot] avatar Jan 01 '23 00:01 github-actions[bot]

Hi there, I am having the same issue. Moved frigate to Debian NUC NUC5CPYH and I got a green screen. Revert back to 0.10.1 it works fine. intel_gpu_top shows hw accel is working.

weichenw avatar Jan 01 '23 11:01 weichenw

@weichenw read the 0.11 release notes you probably need to set the driver to i965

Either way green screen means nothing helpful and you need to make your own issue if the above doesn't help.

NickM-27 avatar Jan 01 '23 13:01 NickM-27

@weichenw read the 0.11 release notes you probably need to set the driver to i965

Either way green screen means nothing helpful and you need to make your own issue if the above doesn't help.

@NickM-27 yea I did set the driver as per 0.11. I will ooen my own issue with more details. Thanks

weichenw avatar Jan 02 '23 01:01 weichenw

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

github-actions[bot] avatar Feb 02 '23 00:02 github-actions[bot]

I also encountered this issue, and after setting LIBVA_DRIVER_NAME=i965 I needed to install the dependency to get it working:

apt-get update && apt-get install -y i965-va-driver-shaders Originally posted by @jurgenweber in https://github.com/blakeblackshear/frigate/issues/5012#issuecomment-1378497316

Could this be added to the docker images @blakeblackshear?

TimelessNL avatar Feb 04 '23 16:02 TimelessNL

Is this still an issue in the current beta?

blakeblackshear avatar Feb 04 '23 16:02 blakeblackshear

I've not tested the beta yet, but do you mean LIBVA_DRIVER_NAME=i965 is not required anymore or is i965-va-driver-shaders included?

TimelessNL avatar Feb 04 '23 17:02 TimelessNL

We are installing newer drivers in 0.12.0, so I'm not sure this is necessary anymore.

blakeblackshear avatar Feb 04 '23 17:02 blakeblackshear

Please be aware that the 'i965-va-driver-shaders' is non-free, so depending on the moral compass and ethos of the maintainer / level of 'open source' and if they want to adhere to Debian's concept of 'free' and 'non-free' may not wish to add it to the release and leave it at the users discretion.

That said, might not even need it in the new release coming. :)

jurgenweber avatar Feb 05 '23 09:02 jurgenweber

We are installing newer drivers in 0.12.0, so I'm not sure this is necessary anymore.

I've upgraded to 0.12.0 and the issue is indeed resolved 👍

TimelessNL avatar Apr 18 '23 19:04 TimelessNL