Fix HLS audio only transcoding
This commit is contained in:
parent
7139845894
commit
1c32067367
3 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue