From cbe2f36d93c779ca08424336be7e3988e57be01d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 6 Jan 2022 17:55:37 +0100 Subject: Fix audio transcoding with video only file --- scripts/create-transcoding-job.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts') 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 () { type: 'new-resolution-to-hls', videoUUID: video.uuid, resolution, + + // FIXME: check the file has audio and is not in portrait mode isPortraitMode: false, + hasAudio: true, + copyCodecs: false, isNewVideo: false, isMaxQuality: maxResolution === resolution, @@ -72,6 +76,10 @@ async function run () { dataInput.push({ type: 'new-resolution-to-webtorrent', videoUUID: video.uuid, + + // FIXME: check the file has audio + hasAudio: true, + isNewVideo: false, resolution: parseInt(options.resolution) }) -- cgit v1.2.3