Skip to content

No HW Acceleration in ffmpeg/frigate since upgrade to HAOS 15.0 #3949

Description

@rober3847

Describe the issue you are experiencing

I'm running home assistant in a Proxmox VM with GPU passthrough, this has been working well for sometime with Frigate using
ffmpeg:
hwaccel_args: -qsv_device /dev/dri/renderD128

After upgraduing to OS 15.0 my camera streams failed to start in Frigate.
Running vainfo inside the frigate container shows (with OS15.0)

# vainfo
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Previously with OS 14.2 vainfo returned -

# vainfo 
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.10.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.3.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats

If i remove the ffmpeg hwaccel parameters from Frigate the streams start ok, but without GPU HW acceleration.
Reverting to OS 14.2 also works with the frigate HWACCEL parameters in place.

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

15.0

Did the problem occur after upgrading the Operating System?

Yes

Hardware details

Minisforum MS-01 Running Proxmox 8.3.5 using the integrated graphics
M.2 Coral TPU

Steps to reproduce the issue

  1. Upgrade to OS 15.0
  2. Check streams in Frigate

...

Anything in the Supervisor logs that might be useful for us?

2025-03-18 11:48:27.762 INFO (MainThread) [supervisor.store.git] Update add-on /data/addons/git/ccab4aaf repository from https://github.com/blakeblackshear/frigate-hass-addons
2025-03-18 11:48:30.815 WARNING (SyncWorker_5) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access) Beta
2025-03-18 11:48:30.818 WARNING (SyncWorker_5) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access)
2025-03-18 14:48:30.883 INFO (MainThread) [supervisor.store.git] Update add-on /data/addons/git/ccab4aaf repository from https://github.com/blakeblackshear/frigate-hass-addons
2025-03-18 14:48:42.937 WARNING (SyncWorker_9) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access) Beta
2025-03-18 14:48:42.941 WARNING (SyncWorker_9) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access)
2025-03-18 14:53:04.760 INFO (SyncWorker_4) [supervisor.docker.manager] Stopping addon_ccab4aaf_frigate-fa application
2025-03-18 14:53:15.201 INFO (SyncWorker_4) [supervisor.docker.manager] Cleaning addon_ccab4aaf_frigate-fa application
2025-03-18 14:54:56.325 WARNING (SyncWorker_3) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access) Beta
2025-03-18 14:54:56.329 WARNING (SyncWorker_3) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Frigate (Full Access)
2025-03-18 14:54:56.476 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/blakeblackshear/frigate with version 0.15.0
2025-03-18 14:56:27.615 WARNING (MainThread) [supervisor.docker.addon] Frigate (Full Access) running with disabled protected mode!
2025-03-18 14:56:27.835 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/blakeblackshear/frigate with version 0.15.0
2025-03-18 14:56:27.917 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/default/info access from ccab4aaf_frigate-fa
2025-03-18 15:01:52.900 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Frigate (Full Access) is failed, restarting...
2025-03-18 15:01:52.902 INFO (SyncWorker_1) [supervisor.docker.manager] Cleaning addon_ccab4aaf_frigate-fa application
2025-03-18 15:01:52.922 WARNING (MainThread) [supervisor.docker.addon] Frigate (Full Access) running with disabled protected mode!
2025-03-18 15:01:53.151 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/blakeblackshear/frigate with version 0.15.0
2025-03-18 15:01:53.193 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/default/info access from ccab4aaf_frigate-fa
2025-03-18 15:03:22.586 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Frigate (Full Access) is failed, restarting...
2025-03-18 15:03:22.589 INFO (SyncWorker_3) [supervisor.docker.manager] Cleaning addon_ccab4aaf_frigate-fa application
2025-03-18 15:03:22.619 WARNING (MainThread) [supervisor.docker.addon] Frigate (Full Access) running with disabled protected mode!
2025-03-18 15:03:22.843 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/blakeblackshear/frigate with version 0.15.0
2025-03-18 15:03:22.888 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/default/info access from ccab4aaf_frigate-fa
2025-03-18 15:46:29.806 INFO (SyncWorker_11) [supervisor.docker.manager] Stopping addon_ccab4aaf_frigate-fa application
2025-03-18 15:46:40.302 INFO (SyncWorker_11) [supervisor.docker.manager] Cleaning addon_ccab4aaf_frigate-fa application
2025-03-18 15:46:40.350 WARNING (MainThread) [supervisor.docker.addon] Frigate (Full Access) running with disabled protected mode!
2025-03-18 15:46:40.600 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/blakeblackshear/frigate with version 0.15.0
2025-03-18 15:46:40.649 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/default/info access from ccab4aaf_frigate-fa
2025-03-18 15:46:29.806 INFO (SyncWorker_11) [supervisor.docker.manager] Stopping addon_ccab4aaf_frigate-fa application
2025-03-18 15:46:40.302 INFO (SyncWorker_11) [supervisor.docker.manager] Cleaning addon_ccab4aaf_frigate-fa application
2025-03-18 15:46:40.350 WARNING (MainThread) [supervisor.docker.addon] Frigate (Full Access) running with disabled protected mode!
2025-03-18 15:46:40.600 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/blakeblackshear/frigate with version 0.15.0
2025-03-18 15:46:40.649 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/default/info access from ccab4aaf_frigate-fa

Anything in the Host logs that might be useful for us?

Frigate logs the following
[AVHWDeviceContext @ 0x556dd5ddc400] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
2025-03-18 15:47:14.545206612  [2025-03-18 15:47:14] ffmpeg.Back_Door.detect        ERROR   : [AVHWDeviceContext @ 0x556dd5ddc400] Failed to initialise VAAPI connection: 1 (operation failed).
2025-03-18 15:47:14.545324738  [2025-03-18 15:47:14] ffmpeg.Back_Door.detect        ERROR   : Device creation failed: -5.
2025-03-18 15:47:14.547785016  [2025-03-18 15:47:14] ffmpeg.Back_Door.detect        ERROR   : Failed to set value '/dev/dri/renderD128' for option 'qsv_device': Input/output error
2025-03-18 15:47:14.547787973  [2025-03-18 15:47:14] ffmpeg.Back_Door.detect        ERROR   : Error parsing global options: Input/output error
2025-03-18 15:47:14.560528310  [2025-03-18 15:47:14] frigate.video                  ERROR   : Kitchen_Door: Unable to read frames from ffmpeg process.
2025-03-18 15:47:14.561795638  [2025-03-18 15:47:14] frigate.video                  ERROR   : Kitchen_Door: ffmpeg process is not running. exiting capture thread...
2025-03-18 15:47:14.566535609  [2025-03-18 15:47:14] frigate.video                  ERROR   : Back_Door: Unable to read frames from ffmpeg process.
2025-03-18 15:47:14.566672301  [2025-03-18 15:47:14] frigate.video                  ERROR   : Back_Door: ffmpeg process is not running. exiting capture thread...

System information

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    board/ovaOpen Virtual Appliance (Virtual Machine)bug

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions