[HW Accel Support]: Beginners question - seem that hwaccel isnt't working on my system #15997
-
Describe the problem you are havingDear All, I set up frigate for the first time. I try to enable hwaccel_args: preset-rpi-64-h264 in the config.yml. Overal there isn't any change in the CPU consumption. In case I comment the hwaccel statement or not - always the same load Any idea what is happen here or is it quite normal that there is no change if the hwaccel statement is in/out? Version0.14.1-f4f3cfa Frigate config filemqtt:
host: xx.xx.xx.xx
topic_prefix: frigate
client_id: frigate
stats_interval: 300
ffmpeg:
hwaccel_args: preset-rpi-64-h264
detectors:
coral:
type: edgetpu
device: usb
detect:
fps: 5
cameras:
garage:
ffmpeg:
inputs:
- path: rtsp://XXX.XXX.XXX.XX:554/s2 #The Stream you want to monitor
roles:
- detect
- record
detect:
enabled: True
width: 1024
height: 576
motion:
threshold: 21
contour_area: 10
improve_contrast: 'true'
zones:
Eingang:
coordinates: 0.236,0,0.002,0.345,0.002,0.995,0.998,0.997,0.996,0.006
loitering_time: 0
review:
alerts:
required_zones: Eingang
snapshots:
enabled: true
timestamp: true
bounding_box: false
retain:
default: 90
mode: active_objects
record:
enabled: true
retain:
days: 3
mode: motion
events:
retain:
default: 30
mode: motion
version: 0.14docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:0.14.1-standard-arm64
shm_size: "128mb"
devices:
- /dev/video11:/dev/video11 #Map the Pi hardware acceleration
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config.yml:/config/config.yml
- ./storage:/media/frigate
- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
- type: tmpfs #Remove this if using a Pi with 2GB or Less RAM
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "xxx.xxx.xxx.xxx:8971:8971"
- "xxx.xxx.xxx.xxx:554:554" # RTSP feeds
- "xxx.xxx.xxx.xxx:8555:8555/tcp" # WebRTC over tcp
- "xxx.xxx.xxx.xxx:8555:8555/udp" # WebRTC over udp
- "xxx.xxx.xxx.xxx:1883:1883/tcp" # Mqtt
environment:
FRIGATE_RTSP_PASSWORD: "XXXXXXXX"Relevant Frigate log output2025-01-15 16:18:58.742461974 [INFO] Preparing Frigate...
2025-01-15 16:18:59.150288844 [INFO] Starting Frigate...
2025-01-15 16:19:09.476492653 [2025-01-15 16:19:09] frigate.app INFO : Starting Frigate (0.14.1-f4f3cfa)
2025-01-15 16:19:09.478063023 [2025-01-15 16:19:09] frigate.util.config INFO : Checking if frigate config needs migration...
2025-01-15 16:19:09.551406079 [2025-01-15 16:19:09] frigate.util.config INFO : frigate config does not need migration...
2025-01-15 16:19:09.731372523 [2025-01-15 16:19:09] peewee_migrate.logs INFO : Starting migrations
2025-01-15 16:19:09.731822097 [2025-01-15 16:19:09] peewee_migrate.logs INFO : There is nothing to migrate
2025-01-15 16:19:09.756873190 [2025-01-15 16:19:09] frigate.app INFO : Recording process started: 357
2025-01-15 16:19:09.780326245 [2025-01-15 16:19:09] frigate.app INFO : Recording process started: 358
2025-01-15 16:19:09.796986153 [2025-01-15 16:19:09] frigate.app INFO : go2rtc process pid: 98
2025-01-15 16:19:09.973170856 [2025-01-15 16:19:09] frigate.app INFO : Output process started: 388
2025-01-15 16:19:10.017189856 [2025-01-15 16:19:09] detector.coral INFO : Starting detection process: 386
2025-01-15 16:19:10.017206449 [2025-01-15 16:19:09] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2025-01-15 16:19:10.147714504 [2025-01-15 16:19:10] frigate.app INFO : Camera processor started for garage: 406
2025-01-15 16:19:10.153010504 [2025-01-15 16:19:10] frigate.app INFO : Capture process started for garage: 407
2025-01-15 16:19:14.170300335 [2025-01-15 16:19:14] frigate.detectors.plugins.edgetpu_tfl INFO : TPU foundRelevant go2rtc log outputI'm not sure how I can get this. Is it needed here for the question?FFprobe output from your cameraInput #0, rtsp, from 'rtsp://10.0.110.10:554/s2':
Metadata:
title : s2
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: aac (LC), 11025 Hz, mono, fltp
Stream #0:1: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1024x576 [SAR 189:190 DAR 168:95], 30 fps, 30 tbr, 90k tbn, 60 tbcInstall methodDocker Compose Object DetectorCoral Network connectionWired Camera make and modelUVC G3 Bullet Unifi Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfuluname -r: 6.6.62+rpt-rpi-v8 my stats screen in UI shows nothing for the GPU graph |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
is the wrong image to use for RPi, you should just be using the default image |
Beta Was this translation helpful? Give feedback.
-
|
Dear Forum, at the end of the day, I was able to figure it out. I play a few hours with a native ffmpeg installation to find the problem
Both activities brought the load down from 90% (high resolution) through 20%. Afterwards I changed the gpu_mem. Based on the information this is not needed anymore and also this is no longer possible in raspi-config (at least in my system). In case I leave this untouched and check it with vcgencmd get_mem gpu => it shows 76MB. I changed it manually in the firmware/config.txt to 512MB (highest possible value in my config). This gives me another 9% of load. As a next step I try to reduce the parameter in the detect clause through: Maybe this helps somebody in the future to not waste time. By the way: System: PI4, Debian Bookworm with Google Coral for detection |
Beta Was this translation helpful? Give feedback.

Dear Forum, at the end of the day, I was able to figure it out. I play a few hours with a native ffmpeg installation to find the problem
devices:
hwaccel_args:
I try auto and also preset-rpi-64-h264, both of them lead to software compression. This depends maybe on the type of the camera. So it makes sense to play with the values
Both activities brought the load down from 90% (high resolution) through 20%. Afterwar…