X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=server%2Fhelpers%2Fffmpeg-utils.ts;h=f18b6bd9a12827918ad3626fe17480887481e1aa;hb=fd45e8f43c2638478599ca75632518054461da85;hp=913a909058e334490678ffb17a43029916272597;hpb=164174a6abac3e391e95d479a98749e20eb86f34;p=oweals%2Fpeertube.git diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index 913a90905..f18b6bd9a 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -57,9 +57,10 @@ function transcode (options: TranscodeOptions) { .videoCodec('libx264') .outputOption('-threads ' + CONFIG.TRANSCODING.THREADS) .outputOption('-movflags faststart') + // .outputOption('-crf 18') if (options.resolution !== undefined) { - const size = `${options.resolution}x?` // '720x?' for example + const size = `?x${options.resolution}` // '?x720' for example command = command.size(size) }