From 4ea827076df39935375d66fffb5e1e27e667111e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 Feb 2023 10:59:33 +0100 Subject: Fix audio out of synced on studio cut --- server/helpers/ffmpeg/ffmpeg-edition.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/helpers') diff --git a/server/helpers/ffmpeg/ffmpeg-edition.ts b/server/helpers/ffmpeg/ffmpeg-edition.ts index a5baa7ef1..78de8f3b3 100644 --- a/server/helpers/ffmpeg/ffmpeg-edition.ts +++ b/server/helpers/ffmpeg/ffmpeg-edition.ts @@ -23,7 +23,10 @@ async function cutVideo (options: { command = presetCopy(command) - if (options.start) command.inputOption('-ss ' + options.start) + if (options.start) { + // Using -ss as output option is more precise than using it as input option + command.outputOption('-ss ' + options.start) + } if (options.end) { const endSeeking = options.end - (options.start || 0) -- cgit v1.2.3