1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Load video in permanent live after last one ended

This commit is contained in:
Chocobozzz 2020-12-04 15:29:18 +01:00
parent 3851e732c4
commit e772bdf14c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 38 additions and 13 deletions

View file

@ -137,6 +137,8 @@ interface HLSTranscodeOptions extends BaseTranscodeOptions {
interface HLSFromTSTranscodeOptions extends BaseTranscodeOptions {
type: 'hls-from-ts'
isAAC: boolean
hlsPlaylist: {
videoFilename: string
}
@ -456,9 +458,12 @@ async function buildHLSVODFromTSCommand (command: ffmpeg.FfmpegCommand, options:
const videoPath = getHLSVideoPath(options)
command.outputOption('-c copy')
// Required for example when copying an AAC stream from an MPEG-TS
// Since it's a bitstream filter, we don't need to reencode the audio
command.outputOption('-bsf:a aac_adtstoasc')
if (options.isAAC) {
// Required for example when copying an AAC stream from an MPEG-TS
// Since it's a bitstream filter, we don't need to reencode the audio
command.outputOption('-bsf:a aac_adtstoasc')
}
addCommonHLSVODCommandOptions(command, videoPath)