Fix audio desync regression

This commit is contained in:
Chocobozzz 2024-12-20 10:47:28 +01:00
parent 91606c0e2d
commit 8a1d90dc70
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 0 deletions

View File

@ -207,9 +207,13 @@ export class FFmpegVOD {
withVideo: !options.separatedAudio || !!options.resolution
})
} else {
// If we cannot copy codecs, we do not copy them at all to prevent issues like audio desync
// See for example https://github.com/Chocobozzz/PeerTube/issues/6438
await this.buildVODCommand({
...options,
canCopyAudio: false,
canCopyVideo: false,
videoStreamOnly: options.separatedAudio && !!options.resolution
})
}