diff --git a/homeassistant/components/stream/__init__.py b/homeassistant/components/stream/__init__.py index 2d115c6978d..c2bf63063e5 100644 --- a/homeassistant/components/stream/__init__.py +++ b/homeassistant/components/stream/__init__.py @@ -258,6 +258,7 @@ class Stream: recorder.video_path = video_path self.start() + _LOGGER.debug("Started a stream recording of %s seconds", duration) # Take advantage of lookback hls = self.outputs().get("hls") diff --git a/homeassistant/components/stream/worker.py b/homeassistant/components/stream/worker.py index d5760877c43..773170449e1 100644 --- a/homeassistant/components/stream/worker.py +++ b/homeassistant/components/stream/worker.py @@ -25,7 +25,7 @@ def create_stream_buffer(video_stream, audio_stream, sequence): segment = io.BytesIO() container_options = { # Removed skip_sidx - see https://github.com/home-assistant/core/pull/39970 - "movflags": "frag_custom+empty_moov+default_base_moof+frag_discont", + "movflags": "frag_custom+empty_moov+default_base_moof+frag_discont+negative_cts_offsets", "avoid_negative_ts": "disabled", "fragment_index": str(sequence), }