X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fcreate-transcoding-job.ts;h=2eed53f424a1dbe478c1f645f802277e1f02c67e;hb=68f6c87a27bd3616644368154914a683001f8aa6;hp=7ee0050e39e5837857203612fb9259cbf77eadf7;hpb=80fdaf064562aff968f4c9cea1cf220bc12a70da;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index 7ee0050e3..2eed53f42 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts @@ -5,7 +5,7 @@ import * as program from 'commander' import { VideoModel } from '../server/models/video/video' import { initDatabaseModels } from '../server/initializers/database' import { JobQueue } from '../server/lib/job-queue' -import { computeResolutionsToTranscode } from '@server/helpers/ffmpeg-utils' +import { computeResolutionsToTranscode } from '@server/helpers/ffprobe-utils' import { VideoTranscodingPayload } from '@shared/models' program @@ -43,7 +43,7 @@ async function run () { if (program.generateHls) { const resolutionsEnabled = program.resolution ? [ program.resolution ] - : computeResolutionsToTranscode(videoFileResolution).concat([ videoFileResolution ]) + : computeResolutionsToTranscode(videoFileResolution, 'vod').concat([ videoFileResolution ]) for (const resolution of resolutionsEnabled) { dataInput.push({