[FFmpeg-devel] [PATCH v2] avcodec/libaomenc: Add unmet target level warning

Bohan Li bohanli at google.com
Wed May 25 19:23:12 EEST 2022


Thanks for the reply, James!

This is indeed not the intended behaviour, but it is due to libaom not
initializing all the indices correctly. I've submitted a patch for review
in libaom that fixes this, and after that patch the levels are only logged
when a target level is given with this ffmpeg patch.

Best,
Bohan

On Tue, May 24, 2022 at 5:43 PM James Zern <jzern at google.com> wrote:

> On Tue, May 17, 2022 at 12:45 PM James Zern <jzern at google.com> wrote:
> >
> > On Tue, Apr 19, 2022 at 11:20 AM Bohan Li
> > <bohanli-at-google.com at ffmpeg.org> wrote:
> > >
> > > When target levels are set, this patch checks whether they are
> > > satisfied by libaom. If not, a warning is shown. Otherwise the output
> > > levels are also logged.
> > >
> > > This patch applies basically the same approach used for libvpx.
> > >
> > > Signed-off-by: Bohan Li <bohanli at google.com>
> > > ---
> > >  libavcodec/libaomenc.c | 64 ++++++++++++++++++++++++++++++++++++++++++
> > >  1 file changed, 64 insertions(+)
> > >
> >
> > lgtm.
>
> > +                } else if (target_levels[i] < 31) {
> > +                    // Log the encoded level if a target level was given
> > +                    av_log(avctx, AV_LOG_INFO,
> > +                           "Output level for operating point %d is
> %d.%d.",
> > +                           i, 2 + (levels[i] >> 2), levels[i] & 3);
> > +                }
>
> Actually this is a bit spammy. If there's only one operating point set
> then I'd expect a single line output, but this seems to print all 32
> regardless. Is that expected?
>


More information about the ffmpeg-devel mailing list