aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorAnton Latukha <anton.latukha@gmail.com>2018-07-10 01:27:59 +0300
committerRigel Kent <par@rigelk.eu>2018-07-10 00:27:59 +0200
commit602a81a2137afcb5ca12341329199fbea2f08bd8 (patch)
treebe1ee6d9f20014939984d7a54722a9a41a1c7e83 /server
parent78e6df5d9cae55a1c872c1a67f9d37032d9f4b20 (diff)
downloadPeerTube-602a81a2137afcb5ca12341329199fbea2f08bd8.tar.gz
PeerTube-602a81a2137afcb5ca12341329199fbea2f08bd8.tar.zst
PeerTube-602a81a2137afcb5ca12341329199fbea2f08bd8.zip
(ffmpeg) B-adapt 1 and B-frames 16 (#774)
Diffstat (limited to 'server')
-rw-r--r--server/helpers/ffmpeg-utils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 4086335d7..f0623c88b 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -88,6 +88,8 @@ function transcode (options: TranscodeOptions) {
88 .videoCodec('libx264') 88 .videoCodec('libx264')
89 .outputOption('-threads ' + CONFIG.TRANSCODING.THREADS) 89 .outputOption('-threads ' + CONFIG.TRANSCODING.THREADS)
90 .outputOption('-movflags faststart') 90 .outputOption('-movflags faststart')
91 .outputOption('-b_strategy 1') // NOTE: b-strategy 1 - heuristic algorythm, 16 is optimal B-frames for it
92 .outputOption('-bf 16') // NOTE: Why 16: https://github.com/Chocobozzz/PeerTube/pull/774. b-strategy 2 -> B-frames<16
91 // .outputOption('-crf 18') 93 // .outputOption('-crf 18')
92 94
93 let fps = await getVideoFileFPS(options.inputPath) 95 let fps = await getVideoFileFPS(options.inputPath)