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:
parent
4efa5535cc
commit
44e702ded4
2 changed files with 12 additions and 2 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue