diff --git a/src/lib/ffmpeg.worker.ts b/src/lib/ffmpeg.worker.ts index f72ef583..bf2a5f9e 100644 --- a/src/lib/ffmpeg.worker.ts +++ b/src/lib/ffmpeg.worker.ts @@ -312,7 +312,9 @@ interface PositionCoords { const outputDuration = sourceDuration / recipe.speed; args.push("-t", outputDuration.toFixed(6)); } - + if (hasMusicTrack) { + args.push("-shortest"); + } args.push(outputName); return args; }