Skip to content

Commit

Permalink
adding B-frames and B-adapt options to standard preset
Browse files Browse the repository at this point in the history
  • Loading branch information
rigelk committed Jul 7, 2018
1 parent 88d5bf1 commit e0e2bed
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 @@ -236,6 +236,8 @@ async function standard (ffmpeg) {
.videoCodec('libx264')
.outputOption('-level 3.1') // 3.1 is the minimal ressource allocation for our highest supported resolution
.outputOption('-movflags faststart')
.outputOption('-b_strategy 1') // use B-frames <= 16 on '-b_strategy 2', see https://github.com/Chocobozzz/PeerTube/pull/774
.outputOption('-bf 16')
let _audio = audio.get(_ffmpeg)

if (!_audio) return _ffmpeg.noAudio()
Expand Down

0 comments on commit e0e2bed

Please sign in to comment.