Skip to content

Commit

Permalink
Bring back hard rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
madsciencetist committed Jul 3, 2023
1 parent be1c72e commit e1639ab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frigate/ffmpeg_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ def get_selected_gpu(self) -> str:
}

PRESETS_HW_ACCEL_SCALE = {
"preset-rpi-32-h264": "-vf fps={0},scale={1}:{2}",
"preset-rpi-64-h264": "-vf fps={0},scale={1}:{2}",
"preset-vaapi": "-vf fps={0},scale_vaapi=w={1}:h={2},hwdownload,format=yuv420p",
"preset-intel-qsv-h264": "-vf vpp_qsv=framerate={0}:w={1}:h={2}:format=nv12,hwdownload,format=nv12,format=yuv420p",
"preset-intel-qsv-h265": "-vf vpp_qsv=framerate={0}:w={1}:h={2}:format=nv12,hwdownload,format=nv12,format=yuv420p",
"preset-nvidia-h264": "-vf fps={0},scale_cuda=w={1}:h={2}:format=nv12,hwdownload,format=nv12,format=yuv420p",
"preset-nvidia-h265": "-vf fps={0},scale_cuda=w={1}:h={2}:format=nv12,hwdownload,format=nv12,format=yuv420p",
"default": "-vf fps={0},scale={1}:{2}",
"preset-rpi-32-h264": "-r {0} -vf fps={0},scale={1}:{2}",
"preset-rpi-64-h264": "-r {0} -vf fps={0},scale={1}:{2}",
"preset-vaapi": "-r {0} -vf fps={0},scale_vaapi=w={1}:h={2},hwdownload,format=yuv420p",
"preset-intel-qsv-h264": "-r {0} -vf vpp_qsv=framerate={0}:w={1}:h={2}:format=nv12,hwdownload,format=nv12,format=yuv420p",
"preset-intel-qsv-h265": "-r {0} -vf vpp_qsv=framerate={0}:w={1}:h={2}:format=nv12,hwdownload,format=nv12,format=yuv420p",
"preset-nvidia-h264": "-r {0} -vf fps={0},scale_cuda=w={1}:h={2}:format=nv12,hwdownload,format=nv12,format=yuv420p",
"preset-nvidia-h265": "-r {0} -vf fps={0},scale_cuda=w={1}:h={2}:format=nv12,hwdownload,format=nv12,format=yuv420p",
"default": "-r {0} -vf fps={0},scale={1}:{2}",
}

PRESETS_HW_ACCEL_ENCODE_BIRDSEYE = {
Expand Down

0 comments on commit e1639ab

Please sign in to comment.