[bugfix]: keep the full audio track when saving through the ffmpeg pipe (#1910)

This commit is contained in:
Kyle Hu
2026-10-01 22:22:17 -07:00
committed by GitHub
parent 6809a751fb
commit 9491c8638a
+2 -2
View File
@@ -1256,10 +1256,10 @@ class VideoGenerator:
envs.FASTVIDEO_OUTPUT_PIX_FMT.get(),
# Audio and video decoders may produce different durations.
# Preserve every video frame and pad/trim audio to match.
# No -frames:v: ffmpeg 4.4 closes every stream once the video
# reaches that count, which cuts the padded audio short.
"-af",
"apad",
"-frames:v",
str(len(frames)),
"-t",
str(len(frames) / fps),
"-movflags",