aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/ffmpeg-utils.ts
diff options
context:
space:
mode:
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