Skip to content

Commit

Permalink
(ffmpeg) B-adapt 1 and B-frames 16 (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha authored and rigelk committed Jul 9, 2018
1 parent 78e6df5 commit 602a81a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/helpers/ffmpeg-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 602a81a

Please sign in to comment.