mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Improve transcoding quality
I'm an idiot
This commit is contained in:
parent
4937996095
commit
a6218a0b8f
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user