[FFmpeg-trac] #9231(avcodec:new): B-frames parameter is ignored in videotoolboxenc

FFmpeg trac at avcodec.org
Mon May 10 00:49:25 EEST 2021

#9231: B-frames parameter is ignored in videotoolboxenc
             Reporter:  _08          |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avcodec      |                  Version:  git-
             Keywords:               |  master
  videotoolbox                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 When using videotoolbox encoder will use B-frames even if -bf is set to
 How to reproduce:
 % ffmpeg -i input.mkv -c:v hevc_videotoolbox -bf 0 -g 60 output.mkv
 (-g may be necessary because it used to do intra-only encodes by default
 on Intel, though it seems to be fixed in macOS 11.3)
 % ffprobe -show_frames output.mkv
 ffprobe reports existence of B-frames (pict_type=B)

 The bug was apparently introduced in commit
 efece4442f3f583f7d04f98ef5168dfd08eaca5c. avctx->max_b_frames is
 unconditionally set to 16 in vtenc_configure_encoder, user-set value is
 ignored. The only way to disable B-frames is using baseline profile in
Ticket URL: <https://trac.ffmpeg.org/ticket/9231>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list