frigate: [Support]: Beta7 fails on startup due to ffmpeg errors

Describe the problem you are having

Upgraded from beta4 to beta7. Startup fails since ffmpeg fails. Cameras cannot read frames from ffmpeg process.

I checked my config for any refs to stimeout as noted in the release notes - I dont have any

Version

0.11 beta 7 [2022-07-20 10:33:04] frigate.app INFO : Starting Frigate (0.11.0-3c46a33)

Frigate config file

n/a

Relevant log output

All cameras fail with identical logs:

[2022-07-20 10:33:06] frigate.video                  ERROR   : basement: ffmpeg process is not running. exiting capture thread...
[2022-07-20 10:33:07] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:34688]
[2022-07-20 10:33:25] watchdog.outdoor_front         ERROR   : Ffmpeg process crashed unexpectedly for outdoor_front.
[2022-07-20 10:33:25] watchdog.outdoor_front         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : Assuming 131072kB available aperture size.
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : May lead to reduced performance or incorrect rendering.
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : get chip id failed: -1 [12]
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : param: 4, val: 0
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : [AVHWDeviceContext @ 0x5570a598da80] libva: /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so init failed
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : [AVHWDeviceContext @ 0x5570a598da80] Failed to initialise VAAPI connection: 18 (invalid parameter).
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : Device creation failed: -5.
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : Failed to set value '/dev/dri/card0' for option 'qsv_device': Input/output error
[2022-07-20 10:33:25] ffmpeg.outdoor_front.detect    ERROR   : Error parsing global options: Input/output error

FFprobe output from your camera

all cameras are failing - Reolink, Axis, Amcrest - dont think this is camera specific.

Frigate stats

No response

Operating system

Other Linux

Install method

Docker Compose

Coral version

PCIe

Network connection

Wired

Camera make and model

Reolink, Amcrest, Axis

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24

Most upvoted comments

from https://github.com/blakeblackshear/frigate/issues/3500#issuecomment-1190406196

LIBVA_DRIVER_NAME_JELLYFIN=i965

I have not. In docker-compose?

Yes right under the FRIGATE_RTSP_PASSWORD

in RC1 my ffmpeg is broken, while without changes it was running in beta5 perfectly. (edit: unchanged config is running fine also in beta7, but massive ffmpeg-errors in rc1. seems totally broken)

now i am trying lots of things and got unsure about the syntax to use the environment-var for yellyfin in the docker-compose. the new docs have also no example. what i found is two versions, which one is the correct one?

(edit: some post mentioned to “rebuild” the image after setting the VAR. maybe some hints on this too?)

environment:
    LIBVA_DRIVER_NAME_JELLYFIN: "i965"
    FRIGATE_RTSP_PASSWORD: "hidden"
environment:
    - 'FRIGATE_RTSP_PASSWORD=hidden'
    - 'LIBVA_DRIVER_NAME_JELLYFIN=i965'

thanks for your time…

[EDIT: now running RC1. changed logleve for ffmpeg from panic to warning and saw, that -stimeout had to be changed to -timeout. after that global change my green images for all cams were gone and all running normaly. with log-level panic the log was too fast and short to see anything. also disabled that enviroment-var again, and RC1 still running. thanks]

~/docker$ ls -la /dev/dri
total 0
drwxr-xr-x  3 root root      80 Jul 19 13:00 .
drwxr-xr-x 20 root root    4040 Jul 19 13:00 ..
drwxr-xr-x  2 root root      60 Jul 19 13:00 by-path
crw-rw----  1 root video 226, 0 Jul 19 13:00 card0

LIBVA_DRIVER_NAME_JELLYFIN=i965

I have not. In docker-compose?