blakeblackshear.frigate/frigate
Andrew Reiter f30ba25444
Reduce framerate before downscaling (#7022)
* Reduce framerate before downscaling

It is cheaper to drop frames and downscale those that remain than it is
to downscale all frames and then drop some of them. This is achieved
with the filter chain `-cv fps=FPS,scale=W:H`, and perhaps was the
original intention. The plain `-r` and `-s` flags do not execute in
order though - they each put themselves at the *end* of the filterchain,
so `-r FPS -s WxH` actually applies the scale filter first, and then the
rate filter.

This fix can halve the CPU used by the detect ffmpeg process.

* Bring back hard rate limits
2023-07-06 07:31:17 -05:00
..
comms Fix small audio events details (#6978) 2023-07-01 11:19:14 -05:00
detectors Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
events Use pre capture for custom events (#7038) 2023-07-06 07:26:53 -05:00
images Replace green screen with error message and force camera_fps to 0 (#4544) 2022-11-28 21:47:20 -06:00
motion use a different method for blur and contrast to reduce CPU (#6940) 2023-06-30 07:27:31 -05:00
record Audio events (#6848) 2023-07-01 08:18:33 -05:00
test use clahe for contrast improvement (#6835) 2023-06-18 11:56:41 -05:00
track Fix max_frames, improve stationary objects in masked areas (#6815) 2023-06-16 07:32:43 -05:00
__init__.py
__main__.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
app.py UI: add audio process stats to System page (#6993) 2023-07-03 09:48:29 -05:00
config.py Audio events (#6848) 2023-07-01 08:18:33 -05:00
const.py Audio events (#6848) 2023-07-01 08:18:33 -05:00
ffmpeg_presets.py Reduce framerate before downscaling (#7022) 2023-07-06 07:31:17 -05:00
http.py Add designator when events are from the api (#6997) 2023-07-03 09:48:00 -05:00
log.py Performance: multiprocessing improvement (#6936) 2023-06-28 05:39:39 -05:00
models.py Optimization of Sync Records: Implementing Pagination and Temporary Table (#6585) 2023-06-11 08:01:50 -05:00
mypy.ini update deps (#6093) 2023-04-15 14:17:59 -05:00
object_detection.py Fix max_frames, improve stationary objects in masked areas (#6815) 2023-06-16 07:32:43 -05:00
object_processing.py Apply zone filter before inertia (#6854) 2023-06-30 07:15:55 -05:00
output.py Force birdseye cameras into standard aspect ratios (#7026) 2023-07-06 07:30:05 -05:00
plus.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
ptz.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
stats.py update deps (#6973) 2023-07-01 07:47:16 -05:00
storage.py Refactor storage stats calculation to use powers of 2 for more accurate values (#6765) 2023-06-11 14:49:13 -05:00
timeline.py Performance: multiprocessing improvement (#6936) 2023-06-28 05:39:39 -05:00
types.py Audio events (#6848) 2023-07-01 08:18:33 -05:00
util.py optimize frame-per-second calculations (#6887) 2023-06-28 05:55:53 -05:00
video.py Fix min region size not being divisible by 4 (#7040) 2023-07-06 07:25:37 -05:00
watchdog.py update deps (#6973) 2023-07-01 07:47:16 -05:00