diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-29 15:31:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-29 15:31:31 +0100 |
commit | a8537c622ed8ff58b26a74a8d86e7c5b890f8af2 (patch) | |
tree | 6681cdbba4975135377f93932671e8a96c2055de /server/lib | |
parent | b87b606a65c9baa30742d74dd470945b08e17601 (diff) | |
download | PeerTube-a8537c622ed8ff58b26a74a8d86e7c5b890f8af2.tar.gz PeerTube-a8537c622ed8ff58b26a74a8d86e7c5b890f8af2.tar.zst PeerTube-a8537c622ed8ff58b26a74a8d86e7c5b890f8af2.zip |
Use veryfast preset for default transcoding profile
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/video-transcoding-profiles.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/video-transcoding-profiles.ts b/server/lib/video-transcoding-profiles.ts index 76d38b6ca..b7f9178c4 100644 --- a/server/lib/video-transcoding-profiles.ts +++ b/server/lib/video-transcoding-profiles.ts | |||
@@ -28,6 +28,7 @@ const defaultX264VODOptionsBuilder: EncoderOptionsBuilder = async ({ input, reso | |||
28 | 28 | ||
29 | return { | 29 | return { |
30 | outputOptions: [ | 30 | outputOptions: [ |
31 | `-preset veryfast`, | ||
31 | `-r ${fps}`, | 32 | `-r ${fps}`, |
32 | `-maxrate ${targetBitrate}`, | 33 | `-maxrate ${targetBitrate}`, |
33 | `-bufsize ${targetBitrate * 2}` | 34 | `-bufsize ${targetBitrate * 2}` |
@@ -40,6 +41,7 @@ const defaultX264LiveOptionsBuilder: EncoderOptionsBuilder = async ({ resolution | |||
40 | 41 | ||
41 | return { | 42 | return { |
42 | outputOptions: [ | 43 | outputOptions: [ |
44 | `-preset veryfast`, | ||
43 | `${buildStreamSuffix('-r:v', streamNum)} ${fps}`, | 45 | `${buildStreamSuffix('-r:v', streamNum)} ${fps}`, |
44 | `${buildStreamSuffix('-b:v', streamNum)} ${targetBitrate}`, | 46 | `${buildStreamSuffix('-b:v', streamNum)} ${targetBitrate}`, |
45 | `-maxrate ${targetBitrate}`, | 47 | `-maxrate ${targetBitrate}`, |