diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-17 14:46:09 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-17 14:46:09 +0200 |
commit | a6218a0b8f685078e6f7d21e9110b6418c5594fe (patch) | |
tree | e47fa8a59968d5e45168907a88c7c84201e19c0a /server/helpers/ffmpeg-utils.ts | |
parent | 493799609519c71a5f79b3e92444c5fed6f772dd (diff) | |
download | PeerTube-a6218a0b8f685078e6f7d21e9110b6418c5594fe.tar.gz PeerTube-a6218a0b8f685078e6f7d21e9110b6418c5594fe.tar.zst PeerTube-a6218a0b8f685078e6f7d21e9110b6418c5594fe.zip |
Improve transcoding quality
I'm an idiot
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r-- | server/helpers/ffmpeg-utils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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) { | |||
57 | .videoCodec('libx264') | 57 | .videoCodec('libx264') |
58 | .outputOption('-threads ' + CONFIG.TRANSCODING.THREADS) | 58 | .outputOption('-threads ' + CONFIG.TRANSCODING.THREADS) |
59 | .outputOption('-movflags faststart') | 59 | .outputOption('-movflags faststart') |
60 | // .outputOption('-crf 18') | ||
60 | 61 | ||
61 | if (options.resolution !== undefined) { | 62 | if (options.resolution !== undefined) { |
62 | const size = `${options.resolution}x?` // '720x?' for example | 63 | const size = `?x${options.resolution}` // '?x720' for example |
63 | command = command.size(size) | 64 | command = command.size(size) |
64 | } | 65 | } |
65 | 66 | ||