Use fragmented mp4 for streamable output while rendering

This commit is contained in:
giles
2026-02-03 00:41:07 +00:00
parent 82599eff1e
commit 8f4d6d12bc

View File

@@ -181,6 +181,10 @@ class FileOutput(Output):
if audio_source:
cmd.extend(["-c:a", "aac", "-b:a", "192k", "-shortest"])
# Use fragmented mp4 for streamable output while writing
if str(self.path).endswith('.mp4'):
cmd.extend(["-movflags", "frag_keyframe+empty_moov+default_base_moof"])
cmd.append(str(self.path))
import sys