[FFmpeg-devel] [PATCH] lavc/vaapi_encode_h264: disable B frame in baseline profile

Moritz Barsnick barsnick at gmx.net
Fri Jan 6 17:19:19 EET 2017


Since Michael mentioned it:

On Fri, Dec 16, 2016 at 10:21:25 +0800, Jun Zhao wrote:

> +        if (avctx->max_b_frames != 0) {
> +            avctx->max_b_frames = 0;
> +            av_log(avctx, AV_LOG_WARNING, "H.264 constrained baseline "
> +                   "profile don't support encode B frame.\n");
> +        }

"H.264 constrained baseline profile doesn't support encoding with B
frames, disabling them.\n".

> +        if (avctx->max_b_frames != 0) {
> +            avctx->max_b_frames = 0;
> +            av_log(avctx, AV_LOG_WARNING, "H.264 baseline "
> +                   "profile don't support encode B frame.\n");
> +        }

"H.264 baseline profile doesn't support encoding with B frames,
disabling them.\n".

(I like stating the consequent action, otherwise the uneducated user
may believe ffmpeg continues to do something which isn't valid.)

Moritz


More information about the ffmpeg-devel mailing list