Which hardware acceleration config?[Config Support]:
See original GitHub issueDescribe the problem you are having
Now that I have my 10 cameras set up and working, I’m down to the fine performance tuning.
I’m confused as to which hardware acceleration setting to use
I am running Frigate as an HA add-on on a Dell Optiplex 3040, and HA reports it as a X86-64.
Which hwaccel settings should I be using?
BTW, this is such an awesome asset!
Version
0.10.1-83481AF
Frigate config file
mqtt:
host: 10.0.1.105
port: 1883
topic_prefix: frigate
client_id: frigate
user: ashscott
password: brillig269
stats_interval: 60
database:
path: /media/frigate/clips/frigate.db
timestamp_style:
position: "tl"
format: "%m/%d/%Y %H:%M:%S"
color:
red: 255
green: 255
blue: 255
thickness: 2
effect: shadow
detectors:
# cpu1:
# type: cpu
coral:
type: edgetpu
device: usb
# resolution was 640x352 changed to 1920x1080
cameras:
driveway: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://admin:******@10.0.1.109:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://admin:******@10.0.1.109:554/11 # <----- Update for your camera
roles:
- record
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
objects:
track:
- person
- car
- horse
filters:
person:
threshold: 0.5
min_score: 0.75
car:
threshold: 0.5
min_score: 0.85
motion:
mask:
- 0,332,1920,453,1920,0,0,0
threshold: 15
zones:
driving:
coordinates: 0,488,0,382,650,435,1782,525,1783,568
objects:
- person
- car
horses:
coordinates: 0,1075,1915,1080,1920,685,1220,738,372,695,2,680
objects:
- horse
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
turning_circle: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://admin:******@10.0.1.119:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://admin:******@10.0.1.119:554/11 # <----- Update for your camera
roles:
- record
# - rtmp
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
objects:
track:
- person
- car
- dog
filters:
person:
threshold: 0.5
min_score: 0.75
car:
threshold: 0.5
min_score: 0.85
dog:
threshold: 0.5
min_score: 0.7
motion:
mask:
- 10,0,1920,0,1908,37,988,33,995,92,935,97,860,90,868,40,655,13
# zones:
# circle:
# coordinates: 0,23,0,137,0,352,640,352,640,107,640,24,470,17,336,3,332,33,288,28,290,4
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
car_park: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://10.0.1.118:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://10.0.1.118:554/11 # <----- Update for your camera
roles:
- record
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
objects:
track:
- person
- car
- dog
filters:
person:
threshold: 0.5
min_score: 0.7
car:
threshold: 0.5
min_score: 0.85
dog:
threshold: 0.5
min_score: 0.7
motion:
mask:
- 0,110,147,98,312,73,723,92,1080,93,1918,45,1913,3,358,0,0,0
zones:
carpark:
coordinates: 1025,367,1070,267,1510,228,1612,277,1838,427,1377,745,1212,657,1105,592,1068,528,1068,472
record:
enabled: True
retain:
days: 2
mode: all
events:
# required_zones:
# - arriving
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
south_terrace: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://admin:******@10.0.1.125:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://admin:******@10.0.1.125:554/11 # <----- Update for your camera
roles:
- record
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
objects:
track:
- person
- dog
filters:
person:
threshold: 0.5
min_score: 0.75
dog:
threshold: 0.5
min_score: 0.7
motion:
mask:
- 1920,0,1920,488,1018,378,0,365,0,0
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
garage_south_east: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://admin:******@10.0.1.42:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://admin:******@10.0.1.42:554/11 # <----- Update for your camera
roles:
- record
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
objects:
track:
- person
- dog
filters:
person:
threshold: 0.5
min_score: 0.75
dog:
threshold: 0.5
min_score: 0.7
motion:
mask:
- 1920,0,1920,275,0,518,0,0
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
garage_south_west: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://admin:******@10.0.1.22:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://admin:******@10.0.1.22:554/11 # <----- Update for your camera
roles:
- record
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
objects:
track:
- person
- dog
filters:
person:
threshold: 0.6
min_score: 0.75
dog:
threshold: 0.5
min_score: 0.7
motion:
mask:
- 430,498,592,475,542,317,470,295
- 952,478,832,467,845,317,907,340
- 0,233,593,157,1440,220,1760,385,1543,1080,1920,1080,1920,0,0,0
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
east: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://admin:******@10.0.1.54:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://admin:******@10.0.1.54:554/11 # <----- Update for your camera
roles:
- record
# - rtmp
rtmp:
enabled: false # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
objects:
track:
- person
- dog
filters:
person:
threshold: 0.5
min_score: 0.75
dog:
threshold: 0.5
min_score: 0.7
motion:
mask:
- 1920,210,1920,0,833,0,833,35
# threshold: 15
# zones:
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
east_terrace: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://admin:******@10.0.1.108:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://admin:******@10.0.1.108:554/11 # <----- Update for your camera
roles:
- record
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
objects:
track:
- person
- dog
filters:
person:
threshold: 0.5
min_score: 0.75
dog:
threshold: 0.5
min_score: 0.7
motion:
mask:
- 0,478,0,0,441,0,1920,0,1920,387,793,472
# threshold: 15
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
# courtyard: # <------ Name the camera
# ffmpeg:
# inputs:
# - path: rtsp://admin:******@10.0.1.51:554/12 # <----- Update for your camera
# roles:
# - detect
# - path: rtsp://admin:******@10.0.1.51:554/11 # <----- Update for your camera
# roles:
# - record
# rtmp:
# enabled: False # <-- RTMP should be disabled if your stream is not H264
# detect:
# width: 1920 # <---- update for your camera's resolution
# height: 1080 # <---- update for your camera's resolution
# fps: 5
# # objects:
# # track:
# # - person
# # - car
# # filters:
# # person:
# # threshold: 0.8
# # min_score: 0.75
# # car:
# # # threshold: 0.5
# # min_score: 0.3
# # motion:
# # mask:
# # - 0,129,640,141,640,0,0,0
# # - 0,352,562,352,640,350,640,200,319,205,0,205
# # threshold: 15
# # zones:
# # # approaching:
# # # coordinates: 0,170,237,165,239,143,0,136
# # driving:
# # coordinates: 0,184,0,136,623,141,638,144,637,186
# # # leaving:
# # # coordinates: 432,166,576,170,575,148,435,141
# record:
# enabled: True
# retain:
# days: 2
# mode: all
# events:
# retain:
# default: 5
# mode: motion
# pre_capture: 3
# post_capture: 15
# snapshots:
# enabled: true
# timestamp: false
# bounding_box: false
# crop: true
# height: 500
# retain:
# default: 5
# mqtt:
# timestamp: False
# bounding_box: False
# crop: True
# height: 500
# quality: 100
greenhouse: # <------ Name the camera
ffmpeg:
inputs:
- path: rtsp://admin:******@10.0.1.140:554/12 # <----- Update for your camera
roles:
- detect
- path: rtsp://admin:******@10.0.1.140:554/11 # <----- Update for your camera
roles:
- record
rtmp:
enabled: False # <-- RTMP should be disabled if your stream is not H264
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 5
# objects:
# track:
# - person
# - car
# filters:
# person:
# threshold: 0.8
# min_score: 0.75
# car:
# # threshold: 0.5
# min_score: 0.3
# motion:
# mask:
# - 0,129,640,141,640,0,0,0
# - 0,352,562,352,640,350,640,200,319,205,0,205
# threshold: 15
# zones:
# # approaching:
# # coordinates: 0,170,237,165,239,143,0,136
# driving:
# coordinates: 0,184,0,136,623,141,638,144,637,186
# # leaving:
# # coordinates: 432,166,576,170,575,148,435,141
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 15
snapshots:
enabled: true
timestamp: false
bounding_box: false
crop: true
height: 500
retain:
default: 5
mqtt:
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
Relevant log output
N/A
Frigate stats
No response
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Any other information that may be helpful
No response
Issue Analytics
- State:
- Created a year ago
- Comments:23 (1 by maintainers)
Top Results From Across the Web
Configure hardware acceleration for the Android Emulator
Configure hardware acceleration for the Android Emulator ... The emulator runs best if it can use your machine's hardware, such as the CPU,...
Read more >Hardware Acceleration - Frigate Docs
Hardware Acceleration. It is recommended to update your configuration to enable hardware accelerated decoding in ffmpeg. Depending on your system, these ...
Read more >To adjust 3D hardware acceleration - Nvidia
To adjust 3D hardware acceleration. From the NVIDIA Control Panel navigation tree pane, under 3D Settings, select Manage 3D Settings to open the...
Read more >Hardware video acceleration - ArchWiki
Hardware video acceleration makes it possible for the video card to decode/encode video, thus offloading the CPU and saving power.
Read more >Upgrade your graphics drivers to use hardware acceleration ...
Firefox and some plugins use your graphics card to help speed up the display of web content. ... Select Control Panel from the...
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
I have similar “problems” with my Dell-OptiPlex-3040M-DM-i3-6100T-8-120SSD.
Try
docker exec -it addon_ccab4aaf_frigate-fa ffprobe
That gave some info for me…ffprobe version 4.3.1 Copyright (c) 2007-2020 the 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 --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmfx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-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 Simple multimedia streams analyzer usage: ffprobe [OPTIONS] [INPUT_FILE]
There’s not really a straightforward answer, still ironing out a couple small bugs, once it seems totally stable it’ll go to RC, then full release sometime after.