Don't catch presets (#4653)

This commit is contained in:
Nicolas Mowen 2022-12-09 07:35:28 -07:00 committed by GitHub
parent ba3fbc99ba
commit 739a267462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -850,6 +850,10 @@ def verify_recording_segments_setup_with_reasonable_time(
record_args: list[str] = get_ffmpeg_arg_list(
camera_config.ffmpeg.output_args.record
)
if record_args[0].startswith("preset"):
return
seg_arg_index = record_args.index("-segment_time")
if seg_arg_index < 0: