mirror of https://github.com/Chocobozzz/PeerTube
Fix audio out of synced on studio cut
parent
4de99f22df
commit
4ea827076d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue