diff --git a/streaming/output.py b/streaming/output.py index 41df5f1..1fb5648 100644 --- a/streaming/output.py +++ b/streaming/output.py @@ -548,7 +548,7 @@ class HLSOutput(Output): # Add audio codec if we have audio if audio_source: - cmd.extend(["-c:a", "aac", "-b:a", "128k"]) + cmd.extend(["-c:a", "aac", "-b:a", "128k", "-shortest"]) # HLS specific options for smooth live streaming cmd.extend([ @@ -704,7 +704,7 @@ class IPFSHLSOutput(Output): # Add audio codec if we have audio if audio_source: - cmd.extend(["-c:a", "aac", "-b:a", "128k"]) + cmd.extend(["-c:a", "aac", "-b:a", "128k", "-shortest"]) # HLS options cmd.extend([