projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78e6df5
)
(ffmpeg) B-adapt 1 and B-frames 16 (#774)
author
Anton Latukha
<anton.latukha@gmail.com>
Mon, 9 Jul 2018 22:27:59 +0000
(
01:27
+0300)
committer
Rigel Kent
<par@rigelk.eu>
Mon, 9 Jul 2018 22:27:59 +0000
(
00:27
+0200)
server/helpers/ffmpeg-utils.ts
patch
|
blob
|
history
diff --git
a/server/helpers/ffmpeg-utils.ts
b/server/helpers/ffmpeg-utils.ts
index 4086335d7b31465110ef06debb1a25154367a3b0..f0623c88bd25cb82e9ed3b98adb4e79161e82c5b 100644
(file)
--- a/
server/helpers/ffmpeg-utils.ts
+++ b/
server/helpers/ffmpeg-utils.ts
@@
-88,6
+88,8
@@
function transcode (options: TranscodeOptions) {
.videoCodec('libx264')
.outputOption('-threads ' + CONFIG.TRANSCODING.THREADS)
.outputOption('-movflags faststart')
+ .outputOption('-b_strategy 1') // NOTE: b-strategy 1 - heuristic algorythm, 16 is optimal B-frames for it
+ .outputOption('-bf 16') // NOTE: Why 16: https://github.com/Chocobozzz/PeerTube/pull/774. b-strategy 2 -> B-frames<16
// .outputOption('-crf 18')
let fps = await getVideoFileFPS(options.inputPath)