aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/ffmpeg-utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-04 15:10:13 +0100
committerChocobozzz <me@florianbigard.com>2020-12-04 15:10:13 +0100
commit3851e732c4b1da0bc0c40a46ed5a89d93cdc5389 (patch)
tree67ccc78a4f695fe9eb682b8056368ca9de6b1306 /server/helpers/ffmpeg-utils.ts
parent49bcdb0d6699f19d359f40e974cdffd93a4b34c7 (diff)
downloadPeerTube-3851e732c4b1da0bc0c40a46ed5a89d93cdc5389.tar.gz
PeerTube-3851e732c4b1da0bc0c40a46ed5a89d93cdc5389.tar.zst
PeerTube-3851e732c4b1da0bc0c40a46ed5a89d93cdc5389.zip
Fix audio issues with live replay
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r--server/helpers/ffmpeg-utils.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 1093cb483..9d6fe76cb 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -455,11 +455,10 @@ async function buildHLSVODCommand (command: ffmpeg.FfmpegCommand, options: HLSTr
455async function buildHLSVODFromTSCommand (command: ffmpeg.FfmpegCommand, options: HLSFromTSTranscodeOptions) { 455async function buildHLSVODFromTSCommand (command: ffmpeg.FfmpegCommand, options: HLSFromTSTranscodeOptions) {
456 const videoPath = getHLSVideoPath(options) 456 const videoPath = getHLSVideoPath(options)
457 457
458 command.inputOption('-safe 0') 458 command.outputOption('-c copy')
459 command.inputOption('-f concat') 459 // Required for example when copying an AAC stream from an MPEG-TS
460 460 // Since it's a bitstream filter, we don't need to reencode the audio
461 command.outputOption('-c:v copy') 461 command.outputOption('-bsf:a aac_adtstoasc')
462 command.audioFilter('aresample=async=1:first_pts=0')
463 462
464 addCommonHLSVODCommandOptions(command, videoPath) 463 addCommonHLSVODCommandOptions(command, videoPath)
465 464