diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-06 17:55:37 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-06 17:55:37 +0100 |
commit | cbe2f36d93c779ca08424336be7e3988e57be01d (patch) | |
tree | 49b46f450d6cabbd3b3b86dc25d0e3f3a2b4ab94 /scripts | |
parent | 78a5dd9c69af1b1fcae48a25053b569aa0eae626 (diff) | |
download | PeerTube-cbe2f36d93c779ca08424336be7e3988e57be01d.tar.gz PeerTube-cbe2f36d93c779ca08424336be7e3988e57be01d.tar.zst PeerTube-cbe2f36d93c779ca08424336be7e3988e57be01d.zip |
Fix audio transcoding with video only file
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-transcoding-job.ts | 8 |
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 | }) |