1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Fix audio issues with live replay

This commit is contained in:
Chocobozzz 2020-12-04 15:10:13 +01:00
parent 49bcdb0d66
commit 3851e732c4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 49 additions and 68 deletions

View file

@ -455,11 +455,10 @@ async function buildHLSVODCommand (command: ffmpeg.FfmpegCommand, options: HLSTr
async function buildHLSVODFromTSCommand (command: ffmpeg.FfmpegCommand, options: HLSFromTSTranscodeOptions) {
const videoPath = getHLSVideoPath(options)
command.inputOption('-safe 0')
command.inputOption('-f concat')
command.outputOption('-c:v copy')
command.audioFilter('aresample=async=1:first_pts=0')
command.outputOption('-c copy')
// Required for example when copying an AAC stream from an MPEG-TS
// Since it's a bitstream filter, we don't need to reencode the audio
command.outputOption('-bsf:a aac_adtstoasc')
addCommonHLSVODCommandOptions(command, videoPath)