From 44e702ded455c118f9908b70d25e7c7e5512abe9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 14 Nov 2022 11:39:01 +0100 Subject: Prevent broken transcoding with audio only input --- server/controllers/api/videos/transcoding.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/controllers') diff --git a/server/controllers/api/videos/transcoding.ts b/server/controllers/api/videos/transcoding.ts index a39e47dfe..8c9a5322b 100644 --- a/server/controllers/api/videos/transcoding.ts +++ b/server/controllers/api/videos/transcoding.ts @@ -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({ -- cgit v1.2.3