[Config Support]: upscale low resolution sub stream for detect #19775
Replies: 1 comment
-
|
Frigate does not provide a built-in option in the configuration to apply ffmpeg scaling filters directly to the detect stream input. The configuration for camera inputs allows you to specify a detect resolution (width and height) in the detect section, but this only resizes frames after they are decoded, not during ffmpeg input processing(1). There is no documented way to insert custom ffmpeg filter arguments, such as If you want to experiment with ffmpeg upscaling filters, you would need to restream your substream through an external tool (like a separate ffmpeg process or go2rtc’s exec source) that performs the upscaling, and then point Frigate’s detect input to that restreamed/upscaled RTSP stream(2). An example of using go2rtc's exec source for a custom ffmpeg command is provided in the restream documentation: You would then use the resulting RTSP stream as the detect input in your Frigate camera config. Note that this approach is not natively managed by Frigate and requires external stream management. There is no official support for injecting custom ffmpeg filter arguments directly through the Frigate camera input config(1). 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
Hello all,
my system is a raspi5 with hailo8 and docker compose with frigate 0.16. Upgraded from 0.15,
so far everything works fine. Thanks to the whole team for all the work and improvement.
Since 0.15 I use 3 Reolink Lumus Pro cams without any issue in a stable wlan network.
Since some time high res main stream 3560x1440 works fine with hwaccel, but it is not possible to generate a detect stream from the main stream.
So I started to use the low res substream 640x360 for detection. The sensivity was very poor. With upscaling the substream
to 1920x1080 detection results are much better. The system is now able to detect also cats, which obviously depends on the model. I use now yolov11l. Does it makes sense to try to improve this with ffmpeg upscaling filters ?
I would like to do some trials but dont now how to get it in the config. Any help is appreciated.
Version
version: 0.16-0
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
Frigate stats
No response
Operating system
Debian
Install method
Docker Compose
docker-compose file or Docker CLI command
Object Detector
Other
Screenshots of the Frigate UI's System metrics pages
No response
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions