X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fcreate-transcoding-job.ts;h=95e1e66cfdf2307da2a8ef56527b5dc484b19268;hb=cbe2f36d93c779ca08424336be7e3988e57be01d;hp=d462fbf33471b73ec9fb32394ae73c60f28662b3;hpb=78a5dd9c69af1b1fcae48a25053b569aa0eae626;p=github%2FChocobozzz%2FPeerTube.git 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) })