mirror of https://github.com/Chocobozzz/PeerTube
Fix HLS audio only transcoding
parent
7139845894
commit
1c32067367
|
@ -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')
|
||||
|
|
|
@ -92,6 +92,7 @@ async function onVideoFileOptimizerSuccess (videoArg: MVideoWithFile, payload: O
|
|||
|
||||
let videoPublished = false
|
||||
|
||||
// Generate HLS version of the max quality file
|
||||
const hlsPayload = Object.assign({}, payload, { resolution: videoDatabase.getMaxQualityFile().resolution })
|
||||
await createHlsJobIfEnabled(hlsPayload)
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ export class VideoPlaylistModel extends Model<VideoPlaylistModel> {
|
|||
|
||||
@AllowNull(true)
|
||||
@Is('VideoPlaylistDescription', value => throwIfNotValid(value, isVideoPlaylistDescriptionValid, 'description', true))
|
||||
@Column
|
||||
@Column(DataType.STRING(CONSTRAINTS_FIELDS.VIDEO_PLAYLISTS.DESCRIPTION.max))
|
||||
description: string
|
||||
|
||||
@AllowNull(false)
|
||||
|
|
Loading…
Reference in New Issue