Hardware acceleration is not working #10121
Answered
by
renaatdb
renaatdb
asked this question in
Config Support
-
Describe the problem you are havingHardware acceleration is not working. Home Assistant is installed in VitualBox VersionVersie core-2024.2.4 Frigate config filemqtt:
host: core-mosquitto
user: MQTT-user
password: *********
detectors:
coral:
type: edgetpu
device: usb
birdseye:
enabled: true
mode: objects
snapshots:
enabled: true
retain:
default: 2
environment_vars:
LIBVA_DRIVER_NAME: i965
ffmpeg:
hwaccel_args: preset-vaapi
cameras:
Oprit:
ffmpeg:
inputs:
- path: rtsp:https://root:*********@192.168.68.93:554/axis-media/media.amp
roles:
- detect
objects:
track:
- person
- car
- truck
- bicycle
- motorcycle
- dog
- cat
- license_plate
motion:
mask:
- 376,192,851,508,808,513,1386,565,3840,305,3818,0,681,0,43,0,57,197
- 927,38,3840,0,3840,292,989,570
zones:
zone_0:
coordinates: 24,992,1221,859,619,438,57,459
Garagedeur:
ffmpeg:
inputs:
- path: rtsp:https://root:**********@192.168.68.91:554/axis-media/media.amp
roles:
- detect
objects:
track:
- person
- car
- truck
- bicycle
- motorcycle
- dog
- cat
- license_plate
motion:
mask:
- 0,0,726,0,736,122,0,316 Relevant log output2024-02-27 19:25:47.014018161 [INFO] Preparing Frigate...
2024-02-27 19:25:47.119275876 [INFO] Starting Frigate...
2024-02-27 19:25:49.516457170 [2024-02-27 20:25:49] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
2024-02-27 19:25:49.517493579 [2024-02-27 20:25:49] frigate.app INFO : Creating directory: /tmp/cache
2024-02-27 19:25:50.859930636 [tcp @ 0x28d7f00] Port missing in uri
2024-02-27 19:25:50.859934759 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-02-27 19:25:50.859938872
2024-02-27 19:25:50.859942651 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): rtsp:https://root:*********@192.168.68.91:554/axis-media/media.amp in function 'icvExtractPattern'
2024-02-27 19:25:50.859944450
2024-02-27 19:25:50.859945785
2024-02-27 19:25:50.904174376 [2024-02-27 20:25:50] peewee_migrate.logs INFO : Starting migrations
2024-02-27 19:25:50.929472308 [2024-02-27 20:25:50] peewee_migrate.logs INFO : There is nothing to migrate
2024-02-27 19:25:50.929475778 [2024-02-27 20:25:50] frigate.app INFO : Recording process started: 234
2024-02-27 19:25:50.945308827 [2024-02-27 20:25:50] frigate.app INFO : go2rtc process pid: 88
2024-02-27 19:25:51.072853350 [2024-02-27 20:25:51] detector.coral INFO : Starting detection process: 244
2024-02-27 19:25:51.123041983 [2024-02-27 20:25:51] frigate.app INFO : Output process started: 245
2024-02-27 19:25:51.197482574 [2024-02-27 20:25:51] frigate.app INFO : Camera processor started for Oprit: 256
2024-02-27 19:25:51.202418091 [2024-02-27 20:25:51] frigate.app INFO : Camera processor started for Garagedeur: 258
2024-02-27 19:25:51.202422085 [2024-02-27 20:25:51] frigate.app INFO : Capture process started for Oprit: 265
2024-02-27 19:25:51.222247053 [2024-02-27 20:25:51] frigate.app INFO : Capture process started for Garagedeur: 270
2024-02-27 19:25:52.295588074 [2024-02-27 20:25:52] frigate.video ERROR : Oprit: Unable to read frames from ffmpeg process.
2024-02-27 19:25:52.298533484 [2024-02-27 20:25:52] frigate.video ERROR : Oprit: ffmpeg process is not running. exiting capture thread...
2024-02-27 19:25:52.632027163 [2024-02-27 20:25:52] frigate.video ERROR : Garagedeur: Unable to read frames from ffmpeg process.
2024-02-27 19:25:52.632140295 [2024-02-27 20:25:52] frigate.video ERROR : Garagedeur: ffmpeg process is not running. exiting capture thread...
2024-02-27 19:25:52.868773650 [2024-02-27 20:25:52] frigate.util.services ERROR : Unable to poll intel GPU stats: No device filter specified and no discrete/integrated i915 devices found
2024-02-27 19:25:52.868777455
2024-02-27 19:25:54.876709255 [2024-02-27 20:25:51] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2024-02-27 19:25:54.883023789 [2024-02-27 20:25:54] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found Frigate statsError GPU
{"return_code":3,"stderr":"error:XDG_RUNTIME_DIRisinvalidornotsetintheenvironment.nerror:can'tconnecttoXserver!nlibvainfo:VA-APIversion1.17.0nlibvainfo:Userenvironmentvariablerequesteddriver'i965'nlibvainfo:Tryingtoopen/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.sonlibvainfo:Foundinitfunction__vaDriverInit_1_8nDRM_IOCTL_I915_GEM_APERTUREfailed:InvalidargumentnAssuming131072kBavailableaperturesize.nMayleadtoreducedperformanceorincorrectrendering.ngetchipidfailed:-1[22]nparam:4,val:0nlibvaerror:/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.soinitfailednlibvainfo:va_openDriver()returns-1nvaInitializefailedwitherrorcode-1(unknownlibvaerror),exit","stdout":""} Operating systemWindows Install methodHassOS Addon Coral versionUSB Any other information that may be helpful |
Beta Was this translation helpful? Give feedback.
Answered by
renaatdb
Feb 28, 2024
Replies: 1 comment 6 replies
-
what is the vainfo output on the system page |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You mean passthrough the GPU in Windows 10 VirtualMachine (virtualBox)?