aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-14 10:59:33 +0100
committerChocobozzz <me@florianbigard.com>2023-02-14 11:00:24 +0100
commit4ea827076df39935375d66fffb5e1e27e667111e (patch)
tree057d44b3817c612d2b14a899eaa8d76e4c984fad
parent4de99f22dfc4f00587eeac5bc929f462437315e4 (diff)
downloadPeerTube-4ea827076df39935375d66fffb5e1e27e667111e.tar.gz
PeerTube-4ea827076df39935375d66fffb5e1e27e667111e.tar.zst
PeerTube-4ea827076df39935375d66fffb5e1e27e667111e.zip
Fix audio out of synced on studio cut
-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)