[Support]: Hardware acceleration in I5 8269U
See original GitHub issueDescribe the problem you are having
Can anyone tell me how I know if hardware accelerator is working?. I have an i5 8269U (8th generation) and I wrote this configuration for QuickSync:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
It didn’t work. Camera was green.
Then I put this one:
ffmpeg:
hwaccel_args:
- -hwaccel
- qsv
- -qsv_device
- /dev/dri/renderD128
And it worked, but neither my processor is 10th generation nor my log shows anything related to hardware acceleration.
about my config:
cameras:
test_camera:
ffmpeg:
hwaccel_args:
- -hwaccel
- qsv
- -qsv_device
- /dev/dri/renderD128
inputs:
- path: <RTSP_STREAM_PATH>
roles:
- detect
- rtmp
detect:
width: 1920
height: 1080
fps: 5
As you see is quite simple, due to I’m testing frigate.
Thanks in advance.
Version
0.9.1-800F33E
Frigate config file
mqtt:
host: 192.168.1.100
user: user
password: password
cameras:
# Required: name of the camera
videoportero:
# Required: ffmpeg settings for the camera
ffmpeg:
hwaccel_args:
- -hwaccel
- qsv
- -qsv_device
- /dev/dri/renderD128
# Required: A list of input streams for the camera. See documentation for more information.
inputs:
# Required: the path to the stream
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}
- path: rtsp://user:password@192.168.1.101:554/cam/realmonitor?channel=1&subtype=0
# Required: list of roles for this stream. valid values are: detect,record,clips,rtmp
# NOTICE: In addition to assigning the record, clips, and rtmp roles,
# they must also be enabled in the camera config.
roles:
- detect
- rtmp
detect:
width: 1920
# Required: height of the frame for the input with the detect role
height: 1080
# Optional: desired fps for your camera for the input with the detect role
# NOTE: Recommended value of 5. Ideally, try and reduce your FPS on the camera.
# Frigate will attempt to autodetect if not specified.
fps: 5
# Optional: RTMP re-stream configuration
Relevant log output
no relevant log
FFprobe output from your camera
root@69568b3b9cdb:/opt/frigate# ffprobe version 4.3.1 Copyright (c) 2007-2020 th e FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enab le-gpl --enable-libfreetype --enable-libvidstab --enable-libmfx --enable-libmp3l ame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --ena ble-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 - -enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable- small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg - -enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread - -enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg /lib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[rtsp @ 0x55ae8b7bbb80] method DESCRIBE failed: 404 Not Found
Frigate stats
{"detection_fps":3.1,"detectors":{"cpu":{"detection_start":1634059322.689492,"inference_speed":324.45,"pid":213}},"service":{"storage":{"/dev/shm":{"free":54.1,"mount_type":"tmpfs","total":67.1,"used":13.0},"/media/frigate/clips":{"free":13068.6,"mount_type":"ext4","total":21003.6,"used":6844.5},"/media/frigate/recordings":{"free":13068.6,"mount_type":"ext4","total":21003.6,"used":6844.5},"/tmp/cache":{"free":1000.0,"mount_type":"tmpfs","total":1000.0,"used":0.0}},"uptime":56450,"version":"0.9.1-800f33e"},"videoportero":{"camera_fps":5.0,"capture_pid":218,"detection_fps":3.1,"pid":217,"process_fps":3.1,"skipped_fps":0.0}}
Operating system
Other Linux
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
Dahua Villar door station (DHI-VTO2202F-P)
Any other information that may be helpful
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:18 (2 by maintainers)
Top Results From Across the Web
Intel® Core™ i5-8269U Processor
quick reference guide including specifications, features, pricing, compatibility, design documentation, ordering codes, spec codes and more.
Read more >Intel Core i5-1035G7
Intel Core i5-8269U vs Intel Core i5-1035G7 vs Intel Core i5-1038NG7 - Benchmarks, Tests and Comparisons.
Read more >Frigate on 12th intel : r/homeassistant
[Support]: Hardware acceleration in I5 8269U. edit update: the intel i915 driver worked out of the box for me on ubuntu 22.04, ...
Read more >How to optimize performance via hardware acceleration
Hardware acceleration helps to 'shift' processing from the CPU to other hardware units in your device such as your GPU (graphics card). When ......
Read more >Intel Hardware acceleration
Intel hardware acceleration is available on Intel® Core™ i3, i5, and i7 processor series. For a full list of processors that support integrated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If it helps anyone, I was looking at this issue https://github.com/blakeblackshear/frigate/issues/581 and tried running the ffmpeg test command. It worked and I saw activity in
intel_gpu_top
. So I added the following to each camera:Now I’m seeing activity in
intel_gpu_top
Here’s my full config.
This reduced my CPU usage by 50%.
This was very briefly mentioned in the docs here https://docs.frigate.video/guides/getting_started#step-5-configure-hardware-acceleration-optional but may need to be called out specifically?
Yes it still works… Think that you have some other issues… chekc your output_args… This is how mine looks like:
intel_gpu_top is easylly installed with
apt install intel_gpu_top