[FFmpeg-devel] [PATCH V5 2/2] avcodec/libx264: add support for ROI-based encoding

Moritz Barsnick barsnick at gmx.net
Fri Jan 4 13:58:09 EET 2019


On Fri, Jan 04, 2019 at 00:35:43 +0800, Guo, Yejun wrote:
> @@ -345,6 +350,50 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
[...]
> +        if (sd) {
> +            if (x4->params.rc.i_aq_mode == X264_AQ_NONE) {
> +                av_log(ctx, AV_LOG_WARNING, "Adaptive quantization must be enabled to use ROI encoding, skipping ROI.\n");
> +            } else {
> +                if (frame->interlaced_frame == 0) {
[...]
> +                } else {
> +                    av_log(ctx, AV_LOG_WARNING, "interlaced_frame not supported for ROI encoding yet, skipping ROI.\n");
> +                }

Are these warnings given on every frame, if applicable? If so, that may
give a lot of console spam.

Moritz


More information about the ffmpeg-devel mailing list