1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Prevent broken transcoding with audio only input

This commit is contained in:
Chocobozzz 2022-11-14 11:39:01 +01:00
parent 4efa5535cc
commit 44e702ded4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 12 additions and 2 deletions

View file

@ -49,6 +49,8 @@ async function createTranscoding (req: express.Request, res: express.Response) {
const childrenResolutions = resolutions.filter(r => r !== maxResolution)
logger.info('Manually creating transcoding jobs for %s.', body.transcodingType, { childrenResolutions, maxResolution })
const children = await Bluebird.mapSeries(childrenResolutions, resolution => {
if (body.transcodingType === 'hls') {
return buildHLSJobOption({