[Config Support]: #20382
-
Describe the problem you are havingI am using Frigate 0.16.1 as a Home Assistant OS add-on. My HA version is currently 2025.9.4. Somewhat recently, the detection clips that Frigate displays in the HA media browser have become very short, to the point where they are unusable because the subject of the detection has often nearly left the frame of the camera by the time the clip displayed in the media browser begins. I have tried setting the Version0.16.1-e664cb2 Frigate config filemqtt:
host: redacted
port: 1883
client_id: redacted
user: redacted
password: redacted
detectors:
coral:
type: edgetpu
device: pci
cameras:
cam1:
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://redacted
input_args: preset-rtsp-restream
roles:
- record
- detect
zones:
zone1:
coordinates:
0.192,0.813,0.019,0.96,0,1,0.783,1,0.807,0.873,0.758,0.828,0.65,0.796,0.447,0.797
inertia: 3
loitering_time: 0
objects: person
objects:
filters:
person:
mask:
- 0,0.157,0.246,0.328,0.224,0.765,0.002,0.949
- 0.608,0.375,0.614,0.584,0.763,0.569,0.757,0.381
cam2:
ffmpeg:
hwaccel_args: preset-vaapi
retry_interval: 30
inputs:
- path: redacted
input_args: preset-rtsp-restream
roles:
- record
- detect
detect:
width: 704
height: 480
zones:
zone1:
coordinates:
0.421,0.281,0.422,0.448,0.288,0.888,0.489,0.925,0.708,0.929,0.926,0.898,0.995,0.892,0.995,0.34,0.85,0.305
loitering_time: 0
objects: person
cam3:
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: redacted
input_args: preset-rtsp-restream
roles:
- record
- detect
detect:
width: 704
height: 480
objects:
filters:
person: {}
zones:
zone2:
coordinates: 0.414,0.72,0.605,0.759,0.576,1,0.305,0.996
loitering_time: 0
objects: person
record:
enabled: true
alerts:
pre_capture: 10
post_capture: 10
retain:
days: 14
detections:
pre_capture: 10
post_capture: 10
retain:
days: 14
objects:
track:
- person
- cat
- dog
ui:
time_format: 12hour
version: 0.16-0
detect:
enabled: true Relevant Frigate log outputNo relevant logs found Relevant go2rtc log outputNo relevant logs found Frigate stats{"cameras":{"cam1":{"camera_fps":5.0,"process_fps":5.1,"skipped_fps":0.0,"detection_fps":13.1,"detection_enabled":true,"pid":667,"capture_pid":702,"ffmpeg_pid":2685725,"audio_rms":0.0,"audio_dBFS":0.0},"cam2":{"camera_fps":5.0,"process_fps":5.0,"skipped_fps":0.0,"detection_fps":7.6,"detection_enabled":true,"pid":669,"capture_pid":712,"ffmpeg_pid":2025365,"audio_rms":0.0,"audio_dBFS":0.0},"cam3":{"camera_fps":5.0,"process_fps":5.0,"skipped_fps":0.0,"detection_fps":0.0,"detection_enabled":true,"pid":687,"capture_pid":722,"ffmpeg_pid":729,"audio_rms":0.0,"audio_dBFS":0.0}},"detectors":{"coral":{"inference_speed":7.8,"detection_start":0.0,"pid":616}},"detection_fps":20.7,"embeddings":{},"gpu_usages":{"intel-vaapi":{"gpu":"3.6%","mem":"-%","clients":{"2025365":"11.36%","2685725":"8.78%","729":"16.02%"}}},"cpu_usages":{"frigate.full_system":{"cpu":"11.6","mem":"29.8"},"1":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"/package/admin/s6/command/s6-svscan -d4 -- /run/service"},"17":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise s6-linux-init-shutdownd"},"18":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -d3 -c /run/s6/basedir -g 3000 -C -B"},"27":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise frigate-log"},"28":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise certsync-log"},"29":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise certsync"},"30":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise nginx"},"31":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise nginx-log"},"32":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise s6rc-oneshot-runner"},"33":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise frigate"},"34":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise go2rtc-healthcheck"},"35":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise s6rc-fdholder"},"36":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise go2rtc-log"},"37":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-supervise go2rtc"},"48":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"/package/admin/s6-2.13.2.0/command/s6-fdholderd -1 -n 256 -i data/rules"},"49":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --"},"97":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc"},"99":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx"},"102":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate"},"104":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/certsync"},"128":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml"},"136":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"bash ./run.user go2rtc-healthcheck"},"137":{"cpu":"2.6","cpu_average":"2","mem":"5.5","cmdline":"python3 -u -m frigate"},"143":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"nginx: master process nginx"},"248":{"cpu":"0.0","cpu_average":"0","mem":"0.1","cmdline":"nginx: worker process"},"249":{"cpu":"0.0","cpu_average":"0","mem":"0.1","cmdline":"nginx: worker process"},"250":{"cpu":"0.0","cpu_average":"0","mem":"0.1","cmdline":"nginx: worker process"},"251":{"cpu":"0.0","cpu_average":"0","mem":"0.1","cmdline":"nginx: worker process"},"252":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"nginx: cache manager process"},"386":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"bash ./run.user certsync"},"434":{"cpu":"0.0","cpu_average":"0","mem":"0.5","cmdline":"python3 -u -m frigate"},"591":{"cpu":"1.3","cpu_average":"1","mem":"1.3","cmdline":"frigate.recording_manager"},"600":{"cpu":"0.5","cpu_average":"0","mem":"0.7","cmdline":"frigate.review_segment_manager"},"616":{"cpu":"6.6","cpu_average":"4","mem":"0.7","cmdline":"frigate.detector.coral"},"646":{"cpu":"3.7","cpu_average":"2","mem":"1.5","cmdline":"frigate.output "},"667":{"cpu":"31.8","cpu_average":"17","mem":"1.6","cmdline":"frigate.process:cam1"},"669":{"cpu":"11.5","cpu_average":"10","mem":"0.9","cmdline":"frigate.process:cam2"},"687":{"cpu":"1.5","cpu_average":"1","mem":"0.8","cmdline":"frigate.process:cam3"},"702":{"cpu":"2.6","cpu_average":"2","mem":"0.8","cmdline":"frigate.capture:cam1"},"712":{"cpu":"0.6","cpu_average":"0","mem":"0.7","cmdline":"frigate.capture:cam2"},"722":{"cpu":"0.8","cpu_average":"0","mem":"0.7","cmdline":"frigate.capture:cam3"},"729":{"cpu":"3.1","cpu_average":"2","mem":"0.3","cmdline":"/usr/lib/ffmpeg/7.0/bin/ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.16.1-e664cb2 -rtsp_transport tcp -timeout 10000000 -i rtsp://redacted -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/cam3@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=704:h=480,hwdownload,format=nv12,eq=gamma=1.4:gamma_weight=0.5 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:"},"733":{"cpu":"0.0","cpu_average":"0","mem":"0.2","cmdline":"/usr/lib/ffmpeg/7.0/bin/ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 1600x1200 -i pipe: -threads 1 -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:"},"740":{"cpu":"0.1","cpu_average":"0","mem":"0.2","cmdline":"/usr/lib/ffmpeg/7.0/bin/ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 704x480 -i pipe: -threads 1 -f mpegts -s 1056x720 -codec:v mpeg1video -q 8 -bf 0 pipe:"},"747":{"cpu":"0.0","cpu_average":"0","mem":"0.1","cmdline":"/usr/lib/ffmpeg/7.0/bin/ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 704x480 -i pipe: -threads 1 -f mpegts -s 1056x720 -codec:v mpeg1video -q 8 -bf 0 pipe:"},"754":{"cpu":"0.0","cpu_average":"0","mem":"0.2","cmdline":"/usr/lib/ffmpeg/7.0/bin/ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -threads 1 -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:"},"2025365":{"cpu":"5.8","cpu_average":"5","mem":"0.4","cmdline":"/usr/lib/ffmpeg/7.0/bin/ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.16.1-e664cb2 -rtsp_transport tcp -timeout 10000000 -i rtsp://redacted -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/cam2@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=704:h=480,hwdownload,format=nv12,eq=gamma=1.4:gamma_weight=0.5 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:"},"2685725":{"cpu":"12.8","cpu_average":"10","mem":"0.5","cmdline":"/usr/lib/ffmpeg/7.0/bin/ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.16.1-e664cb2 -rtsp_transport tcp -timeout 10000000 -i rtsp://redacted -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/cam1@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1600:h=1200,hwdownload,format=nv12,eq=gamma=1.4:gamma_weight=0.5 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:"},"2812071":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"sleep 60"},"2812292":{"cpu":"0.0","cpu_average":"0","mem":"0.0","cmdline":"sleep 30s"}},"service":{"uptime":624606,"version":"0.16.1-e664cb2","latest_version":"0.16.1","storage":{"/media/frigate/recordings":{"total":3651993.6,"used":2222676.6,"free":1429317.0,"mount_type":"nfs4"},"/media/frigate/clips":{"total":3651993.6,"used":2222676.6,"free":1429317.0,"mount_type":"nfs4"},"/tmp/cache":{"total":7841.4,"used":96.4,"free":7745.0,"mount_type":"tmpfs"},"/dev/shm":{"total":7841.4,"used":193.0,"free":7648.4,"mount_type":"tmpfs"}},"temperatures":{"apex_0":60.55},"last_updated":1759873282},"processes":{"recording":{"pid":591},"review_segment":{"pid":600},"go2rtc":{"pid":128}}} Operating systemHome Assistant OS Install methodHome Assistant Add-on docker-compose file or Docker CLI commandN/A Object DetectorCoral Screenshots of the Frigate UI's System metrics pagesNo response Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Your configuration looks correct - you have The issue you're experiencing with short clips in Home Assistant's media browser is likely related to how the clips are generated and stored rather than your configuration. The Looking at your configuration, you have recording enabled with proper retention settings(1)(2): record:
enabled: true
alerts:
pre_capture: 10
post_capture: 10
retain:
days: 14
detections:
pre_capture: 10
post_capture: 10
retain:
days: 14 Since you mentioned the clips in the Frigate UI itself are fine but the Home Assistant media browser clips are short, this suggests the issue may be with how Home Assistant is accessing or displaying the clips rather than with your Frigate configuration. You might want to check if there are any specific Home Assistant integration settings that could be affecting clip duration, or consider accessing clips directly through the Frigate UI for the full duration you've configured. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
There is an open issue on the integration, that is where the fix needs to happen |
Beta Was this translation helpful? Give feedback.
For reference, this is the issue that can be followed: blakeblackshear/frigate-hass-integration#946