Fix audio out of synced on studio cut

pull/5615/head
Chocobozzz 2023-02-14 10:59:33 +01:00
parent 4de99f22df
commit 4ea827076d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ async function cutVideo (options: {
command = presetCopy(command) 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) { if (options.end) {
const endSeeking = options.end - (options.start || 0) const endSeeking = options.end - (options.start || 0)