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({
import { ffprobe, FfprobeData } from 'fluent-ffmpeg'
-import { VideoFileMetadata } from '@shared/models/videos'
+import { VideoFileMetadata, VideoResolution } from '@shared/models/videos'
/**
*
async function getVideoStreamDimensionsInfo (path: string, existingProbe?: FfprobeData) {
const videoStream = await getVideoStream(path, existingProbe)
- if (!videoStream) return undefined
+ if (!videoStream) {
+ return {
+ width: 0,
+ height: 0,
+ ratio: 0,
+ resolution: VideoResolution.H_NOVIDEO,
+ isPortraitMode: false
+ }
+ }
return {
width: videoStream.width,