aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/create-transcoding-job.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/create-transcoding-job.ts')
-rwxr-xr-xscripts/create-transcoding-job.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts
index 2eed53f42..ca9e2a99a 100755
--- a/scripts/create-transcoding-job.ts
+++ b/scripts/create-transcoding-job.ts
@@ -47,7 +47,7 @@ async function run () {
47 47
48 for (const resolution of resolutionsEnabled) { 48 for (const resolution of resolutionsEnabled) {
49 dataInput.push({ 49 dataInput.push({
50 type: 'hls', 50 type: 'new-resolution-to-hls',
51 videoUUID: video.uuid, 51 videoUUID: video.uuid,
52 resolution, 52 resolution,
53 isPortraitMode: false, 53 isPortraitMode: false,
@@ -56,14 +56,14 @@ async function run () {
56 } 56 }
57 } else if (program.resolution !== undefined) { 57 } else if (program.resolution !== undefined) {
58 dataInput.push({ 58 dataInput.push({
59 type: 'new-resolution' as 'new-resolution', 59 type: 'new-resolution-to-webtorrent',
60 videoUUID: video.uuid, 60 videoUUID: video.uuid,
61 isNewVideo: false, 61 isNewVideo: false,
62 resolution: program.resolution 62 resolution: program.resolution
63 }) 63 })
64 } else { 64 } else {
65 dataInput.push({ 65 dataInput.push({
66 type: 'optimize' as 'optimize', 66 type: 'optimize-to-webtorrent',
67 videoUUID: video.uuid, 67 videoUUID: video.uuid,
68 isNewVideo: false 68 isNewVideo: false
69 }) 69 })