diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-05 16:27:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-05 16:27:46 +0200 |
commit | 1c3206736743646d41a667c03f3e499cc3e3373f (patch) | |
tree | 688fe935a0cdf6892b3f5211a950bc440fa2ccb1 /server/helpers | |
parent | 7139845894ae24af397989f85350471cc5b91e2a (diff) | |
download | PeerTube-1c3206736743646d41a667c03f3e499cc3e3373f.tar.gz PeerTube-1c3206736743646d41a667c03f3e499cc3e3373f.tar.zst PeerTube-1c3206736743646d41a667c03f3e499cc3e3373f.zip |
Fix HLS audio only transcoding
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/ffmpeg-utils.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index 9dac4448e..557fb5e3a 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts | |||
@@ -423,6 +423,7 @@ async function buildHLSCommand (command: ffmpeg.FfmpegCommand, options: HLSTrans | |||
423 | const videoPath = getHLSVideoPath(options) | 423 | const videoPath = getHLSVideoPath(options) |
424 | 424 | ||
425 | if (options.copyCodecs) command = presetCopy(command) | 425 | if (options.copyCodecs) command = presetCopy(command) |
426 | else if (options.resolution === VideoResolution.H_NOVIDEO) command = presetOnlyAudio(command) | ||
426 | else command = await buildx264Command(command, options) | 427 | else command = await buildx264Command(command, options) |
427 | 428 | ||
428 | command = command.outputOption('-hls_time 4') | 429 | command = command.outputOption('-hls_time 4') |