[HW Accel Support]: HW Accel not seems to be detected - N100 & preset-intel-qsv-h264 #18466
-
Describe the problem you are havingHi, I'm trying to set up hardware acceleration on my Beelink EQ12. Frigate is installed on Docker. When I first started Frigate a few days ago, I remember noticing something in the logs about hardware acceleration, and the percentage indicator on the GUI was reasonable. Now, a few days later, I cannot see the indication in the logs or any activity on the GUI (it's showing 0%). I've read other discussions complaining about this (#16609; #16438), but my scenario is slightly different, so I'm not sure how to approach it. Vainfo Output looks good, please found it below. I'm using preset-intel-qsv-h264 Version0.15.0-6cb5cfb Frigate config filemqtt:
enabled: false
ffmpeg:
hwaccel_args: preset-intel-qsv-h264
output_args:
record: preset-record-generic-audio-aac
go2rtc:
streams:
cam1:
- ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_main
cam1_sub:
- ffmpeg:rtsp://admin:[email protected]:554/h264Preview_01_sub
webrtc:
candidates:
- 192.168.1.16:8555
- stun:8555
cameras:
cam1:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam1
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/cam1_sub
input_args: preset-rtsp-restream
roles:
- detect
live:
stream_name: cam1_sub
detect:
width: 640
height: 480
fps: 7
record:
enabled: true
retain:
days: 2
mode: motion
motion:
threshold: 25
contour_area: 150
delta_alpha: 0.2
#logger:
# default: debug #info
version: 0.15-1 docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
image: ghcr.io/blakeblackshear/frigate:stable
privileged: true
shm_size: "512mb"
restart: unless-stopped
stop_grace_period: 30s # allow enough time to shut down the various services
devices:
- /dev/dri/renderD128:/dev/dri/renderD128 # For intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/andrea/frigate/:/config
- /home/andrea/frigate/storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "8971:8971"
# - "5000:5000" # Internal unauthenticated access. Expose carefully.
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "psw" Relevant Frigate log output2025-05-29 14:15:46.797208983 [INFO] Preparing Frigate...
2025-05-29 14:15:46.871997292 [INFO] Starting Frigate...
2025-05-29 14:15:49.298600486 [2025-05-29 14:15:49] frigate.util.config INFO : Checking if frigate config needs migration...
2025-05-29 14:15:49.316842990 [2025-05-29 14:15:49] frigate.util.config INFO : frigate config does not need migration...
2025-05-29 14:15:49.329539400 [2025-05-29 14:15:49] frigate.app INFO : Starting Frigate (0.15.0-6cb5cfb)
2025-05-29 14:15:49.334956543 [2025-05-29 14:15:49] peewee_migrate.logs INFO : Starting migrations
2025-05-29 14:15:49.335247283 [2025-05-29 14:15:49] peewee_migrate.logs INFO : There is nothing to migrate
2025-05-29 14:15:49.340271543 [2025-05-29 14:15:49] frigate.app INFO : Recording process started: 346
2025-05-29 14:15:49.345256515 [2025-05-29 14:15:49] frigate.app INFO : Review process started: 352
2025-05-29 14:15:49.347757118 [2025-05-29 14:15:49] frigate.app INFO : go2rtc process pid: 97
2025-05-29 14:15:49.357634589 [2025-05-29 14:15:49] detector.cpu INFO : Starting detection process: 362
2025-05-29 14:15:49.359706522 [2025-05-29 14:15:49] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2025-05-29 14:15:49.364974587 [2025-05-29 14:15:49] frigate.app INFO : Output process started: 377
2025-05-29 14:15:49.375515902 [2025-05-29 14:15:49] frigate.app INFO : Camera processor started for cam1: 392
2025-05-29 14:15:49.383815790 [2025-05-29 14:15:49] frigate.app INFO : Capture process started for cam1: 401
2025-05-29 14:15:49.501417936 [2025-05-29 14:15:49] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-05-29 14:15:49.606379702 [2025-05-29 14:15:49] frigate.api.fastapi_app INFO : FastAPI started
2025-05-29 14:15:54.549931528 [2025-05-29 14:15:54] frigate.video ERROR : cam1: Unable to read frames from ffmpeg process.
2025-05-29 14:15:54.549983440 [2025-05-29 14:15:54] frigate.video ERROR : cam1: ffmpeg process is not running. exiting capture thread...
2025-05-29 14:16:09.416843761 [2025-05-29 14:16:09] watchdog.cam1 ERROR : Ffmpeg process crashed unexpectedly for cam1.
2025-05-29 14:16:09.423496336 [2025-05-29 14:16:09] watchdog.cam1 ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-05-29 14:16:09.423500549 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : libva info: VA-API version 1.22.0
2025-05-29 14:16:09.423504637 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2025-05-29 14:16:09.423686269 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : libva info: Found init function __vaDriverInit_1_22
2025-05-29 14:16:09.423688956 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : libva info: va_openDriver() returns 0
2025-05-29 14:16:09.423690282 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : libva info: VA-API version 1.22.0
2025-05-29 14:16:09.423691577 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2025-05-29 14:16:09.423693883 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : libva info: Found init function __vaDriverInit_1_22
2025-05-29 14:16:09.423717202 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : libva info: va_openDriver() returns 0
2025-05-29 14:16:09.423727611 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : [in#0 @ 0x55de72e8a780] Error opening input: Invalid data found when processing input
2025-05-29 14:16:09.423766014 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : Error opening input file rtsp://127.0.0.1:8554/cam1_sub.
2025-05-29 14:16:09.423894864 [2025-05-29 14:16:09] ffmpeg.cam1.detect ERROR : Error opening input files: Invalid data found when processing input
2025-05-29 14:16:14.567916914 [2025-05-29 14:16:14] frigate.video ERROR : cam1: Unable to read frames from ffmpeg process.
2025-05-29 14:16:14.567955901 [2025-05-29 14:16:14] frigate.video ERROR : cam1: ffmpeg process is not running. exiting capture thread...
2025-05-29 14:16:19.428372540 [2025-05-29 14:16:19] watchdog.cam1 ERROR : Ffmpeg process crashed unexpectedly for cam1.
2025-05-29 14:16:19.431631875 [2025-05-29 14:16:19] watchdog.cam1 ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-05-29 14:16:19.431635274 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : libva info: VA-API version 1.22.0
2025-05-29 14:16:19.431636834 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2025-05-29 14:16:19.431638076 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : libva info: Found init function __vaDriverInit_1_22
2025-05-29 14:16:19.431639249 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : libva info: va_openDriver() returns 0
2025-05-29 14:16:19.431640423 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : libva info: VA-API version 1.22.0
2025-05-29 14:16:19.431641618 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2025-05-29 14:16:19.431679072 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : libva info: Found init function __vaDriverInit_1_22
2025-05-29 14:16:19.431680793 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : libva info: va_openDriver() returns 0
2025-05-29 14:16:19.431681951 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : [in#0 @ 0x563b61838c80] Error opening input: Invalid data found when processing input
2025-05-29 14:16:19.431697470 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : Error opening input file rtsp://127.0.0.1:8554/cam1_sub.
2025-05-29 14:16:19.431698710 [2025-05-29 14:16:19] ffmpeg.cam1.detect ERROR : Error opening input files: Invalid data found when processing input
2025-05-29 14:16:24.581499185 [2025-05-29 14:16:24] frigate.video ERROR : cam1: Unable to read frames from ffmpeg process.
2025-05-29 14:16:24.581623808 [2025-05-29 14:16:24] frigate.video ERROR : cam1: ffmpeg process is not running. exiting capture thread...
2025-05-29 14:16:29.439000600 [2025-05-29 14:16:29] watchdog.cam1 ERROR : Ffmpeg process crashed unexpectedly for cam1.
2025-05-29 14:16:29.443550496 [2025-05-29 14:16:29] watchdog.cam1 ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-05-29 14:16:29.443554601 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : libva info: VA-API version 1.22.0
2025-05-29 14:16:29.443556265 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2025-05-29 14:16:29.443557577 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : libva info: Found init function __vaDriverInit_1_22
2025-05-29 14:16:29.443558827 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : libva info: va_openDriver() returns 0
2025-05-29 14:16:29.443560020 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : libva info: VA-API version 1.22.0
2025-05-29 14:16:29.443759621 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2025-05-29 14:16:29.443762600 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : libva info: Found init function __vaDriverInit_1_22
2025-05-29 14:16:29.443763876 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : libva info: va_openDriver() returns 0
2025-05-29 14:16:29.443765358 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : [in#0 @ 0x564ba4085c80] Error opening input: Invalid data found when processing input
2025-05-29 14:16:29.443766707 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : Error opening input file rtsp://127.0.0.1:8554/cam1_sub.
2025-05-29 14:16:29.443768056 [2025-05-29 14:16:29] ffmpeg.cam1.detect ERROR : Error opening input files: Invalid data found when processing input
2025-05-29 14:16:34.592839172 [2025-05-29 14:16:34] frigate.video ERROR : cam1: Unable to read frames from ffmpeg process.
2025-05-29 14:16:34.593113021 [2025-05-29 14:16:34] frigate.video ERROR : cam1: ffmpeg process is not running. exiting capture thread...
2025-05-29 14:16:39.449614554 [2025-05-29 14:16:39] watchdog.cam1 ERROR : Ffmpeg process crashed unexpectedly for cam1.
2025-05-29 14:16:39.449618857 [2025-05-29 14:16:39] watchdog.cam1 ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-05-29 14:16:39.449620221 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : libva info: VA-API version 1.22.0
2025-05-29 14:16:39.449621544 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2025-05-29 14:16:39.449622641 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : libva info: Found init function __vaDriverInit_1_22
2025-05-29 14:16:39.449623748 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : libva info: va_openDriver() returns 0
2025-05-29 14:16:39.449624760 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : libva info: VA-API version 1.22.0
2025-05-29 14:16:39.449625934 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
2025-05-29 14:16:39.449626950 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : libva info: Found init function __vaDriverInit_1_22
2025-05-29 14:16:39.449628057 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : libva info: va_openDriver() returns 0
2025-05-29 14:16:39.449629357 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : [in#0 @ 0x556e3f2f5c80] Error opening input: Invalid data found when processing input
2025-05-29 14:16:39.449630472 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : Error opening input file rtsp://127.0.0.1:8554/cam1_sub.
2025-05-29 14:16:39.449631615 [2025-05-29 14:16:39] ffmpeg.cam1.detect ERROR : Error opening input files: Invalid data found when processing input
2025-05-29 15:22:04.938415208 [2025-05-29 15:22:04] frigate.api.auth ERROR : Error parsing jwt: bad_signature:
2025-05-29 15:22:04.939770575 [2025-05-29 15:22:04] frigate.api.auth ERROR : Error parsing jwt: bad_signature:
2025-05-29 15:22:04.965424346 [2025-05-29 15:22:04] frigate.api.auth ERROR : Error parsing jwt: bad_signature:
2025-05-29 15:22:04.984654342 [2025-05-29 15:22:04] frigate.api.auth ERROR : Error parsing jwt: bad_signature:
2025-05-29 15:22:05.056871745 [2025-05-29 15:22:05] frigate.api.auth ERROR : Error parsing jwt: bad_signature:
2025-05-29 15:49:14.106111371 [2025-05-29 15:49:14] frigate.comms.dispatcher INFO : Turning off recordings for cam1 Relevant go2rtc log output2025-05-29 14:15:46.795296456 [INFO] Preparing new go2rtc config...
2025-05-29 14:15:47.062502946 [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2025-05-29 14:15:47.183598441 [INFO] Starting go2rtc...
2025-05-29 14:15:47.388686649 14:15:47.388 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2025-05-29 14:15:47.389237119 14:15:47.389 INF config path=/dev/shm/go2rtc.yaml
2025-05-29 14:15:47.389694366 14:15:47.389 INF [rtsp] listen addr=:8554
2025-05-29 14:15:47.390608391 14:15:47.389 INF [api] listen addr=:1984
2025-05-29 14:15:47.390681691 14:15:47.390 INF [webrtc] listen addr=:8555
2025-05-29 14:15:56.798776767 [INFO] Starting go2rtc healthcheck service... FFprobe output from your cameraexecuted from the host:
andrea@debian:~$ ffprobe rtsp://127.0.0.1:8554/cam1_sub
ffprobe version 5.1.6-0+deb12u1 Copyright (c) 2007-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
[rtsp @ 0x563cee65a980] method SETUP failed: 461 Unsupported transport
Input #0, rtsp, from 'rtsp://127.0.0.1:8554/cam1_sub':
Metadata:
title : go2rtc/1.9.2
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(progressive), 640x480, 7 fps, 6.92 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp Install methodDocker Compose Object DetectorCPU (no coral) Network connectionWireless Camera make and modelReolink E1 Zoom Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpful{"return_code":0,"stderr":"","stdout":"vainfo: VA-API version: 1.22 (libva 2.10.0) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It looks like it is working correctly for video decoding, your main CPU problem is using cpu detector which is not recommended, you should be using openvino with the N100 GPU |
Beta Was this translation helpful? Give feedback.
-
Should also note that the GPU usage dropping to 0 after a while is just a bug in Intel GPU tools. |
Beta Was this translation helpful? Give feedback.
You need to add a model. You should follow the documentation for using OpenVINO: https://docs.frigate.video/configuration/object_detectors/#openvino-detector