Improve transcoding quality

I'm an idiot
pull/108/head
Chocobozzz 2017-10-17 14:46:09 +02:00
parent 4937996095
commit a6218a0b8f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}