Fix HLS audio only transcoding

This commit is contained in:
Chocobozzz 2020-05-05 16:27:46 +02:00
parent 7139845894
commit 1c32067367
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 3 additions and 1 deletions

View file

@ -423,6 +423,7 @@ async function buildHLSCommand (command: ffmpeg.FfmpegCommand, options: HLSTrans
const videoPath = getHLSVideoPath(options)
if (options.copyCodecs) command = presetCopy(command)
else if (options.resolution === VideoResolution.H_NOVIDEO) command = presetOnlyAudio(command)
else command = await buildx264Command(command, options)
command = command.outputOption('-hls_time 4')