Skip to content

Commit 36ae42a

Browse files
authored
fix: remove contradictory ffmpeg param and missing param (#11752)
1 parent 0181d1e commit 36ae42a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frigate/output/preview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(
7878
self.ffmpeg_cmd = parse_preset_hardware_acceleration_encode(
7979
config.ffmpeg.hwaccel_args,
8080
input="-f concat -y -protocol_whitelist pipe,file -safe 0 -i /dev/stdin",
81-
output=f"-g {PREVIEW_KEYFRAME_INTERVAL}{' -fpsmax 2' if int(os.getenv('LIBAVFORMAT_VERSION_MAJOR', '59')) >= 59 else ''} -bf 0 -b:v {PREVIEW_QUALITY_BIT_RATES[self.config.record.preview.quality]} {FPS_VFR_PARAM} -movflags +faststart -pix_fmt yuv420p {self.path}",
81+
output=f"-g {PREVIEW_KEYFRAME_INTERVAL} -bf 0 -b:v {PREVIEW_QUALITY_BIT_RATES[self.config.record.preview.quality]} {FPS_VFR_PARAM} -movflags +faststart -pix_fmt yuv420p {self.path}",
8282
type=EncodeTypeEnum.preview,
8383
)
8484

0 commit comments

Comments
 (0)