aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/helpers/ffmpeg/ffmpeg-edition.ts5
1 files changed, 4 insertions, 1 deletions
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: {
23 23
24 command = presetCopy(command) 24 command = presetCopy(command)
25 25
26 if (options.start) command.inputOption('-ss ' + options.start) 26 if (options.start) {
27 // Using -ss as output option is more precise than using it as input option
28 command.outputOption('-ss ' + options.start)
29 }
27 30
28 if (options.end) { 31 if (options.end) {
29 const endSeeking = options.end - (options.start || 0) 32 const endSeeking = options.end - (options.start || 0)