diff --git a/homeassistant/components/stream/recorder.py b/homeassistant/components/stream/recorder.py index 3bda8acfa7b..3910a2d2fed 100644 --- a/homeassistant/components/stream/recorder.py +++ b/homeassistant/components/stream/recorder.py @@ -104,7 +104,11 @@ class RecorderOutput(StreamOutput): "w", format=RECORDER_CONTAINER_FORMAT, container_options={ - "video_track_timescale": str(int(1 / source_v.time_base)) + "video_track_timescale": str(int(1 / source_v.time_base)), + "movflags": "frag_keyframe", + "min_frag_duration": str( + self.stream_settings.min_segment_duration + ), }, )