(ffmpeg) B-adapt 1 and B-frames 16 (#774)
This commit is contained in:
parent
78e6df5d9c
commit
602a81a213
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue