Fix HLS audio duration to match video with -shortest flag
Some checks are pending
GPU Worker CI/CD / test (push) Waiting to run
GPU Worker CI/CD / deploy (push) Blocked by required conditions

HLS outputs were including full audio track instead of trimming
to match video duration, causing video to freeze while audio
continued playing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-03 22:13:08 +00:00
parent 9096824444
commit b49d109a51

View File

@@ -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([