X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fcreate-transcoding-job.ts;h=c4b376431fff0cc6fecb66c446fd118af0013ea7;hb=49c800fc969c96eea4c3209ee79120505a240cd1;hp=d462fbf33471b73ec9fb32394ae73c60f28662b3;hpb=c3edc5b074aa4bb1861ed0a94d3713808e87170f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index d462fbf33..c4b376431 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,12 @@ async function run () { dataInput.push({ type: 'new-resolution-to-webtorrent', videoUUID: video.uuid, + + createHLSIfNeeded: true, + + // FIXME: check the file has audio + hasAudio: true, + isNewVideo: false, resolution: parseInt(options.resolution) })