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.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts
index d462fbf33..95e1e66cf 100755
--- a/scripts/create-transcoding-job.ts
+++ b/scripts/create-transcoding-job.ts
@@ -60,7 +60,11 @@ async function run () {
60 type: 'new-resolution-to-hls', 60 type: 'new-resolution-to-hls',
61 videoUUID: video.uuid, 61 videoUUID: video.uuid,
62 resolution, 62 resolution,
63
64 // FIXME: check the file has audio and is not in portrait mode
63 isPortraitMode: false, 65 isPortraitMode: false,
66 hasAudio: true,
67
64 copyCodecs: false, 68 copyCodecs: false,
65 isNewVideo: false, 69 isNewVideo: false,
66 isMaxQuality: maxResolution === resolution, 70 isMaxQuality: maxResolution === resolution,
@@ -72,6 +76,10 @@ async function run () {
72 dataInput.push({ 76 dataInput.push({
73 type: 'new-resolution-to-webtorrent', 77 type: 'new-resolution-to-webtorrent',
74 videoUUID: video.uuid, 78 videoUUID: video.uuid,
79
80 // FIXME: check the file has audio
81 hasAudio: true,
82
75 isNewVideo: false, 83 isNewVideo: false,
76 resolution: parseInt(options.resolution) 84 resolution: parseInt(options.resolution)
77 }) 85 })