From: Bohan Li <bohanli-at-google.com@ffmpeg.org>
To: James Zern <jzern@google.com>
Cc: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v2] avcodec/libaomenc: Add unmet target level warning
Date: Wed, 25 May 2022 09:23:12 -0700
Message-ID: <CAC6_SihN2WE7Og9ezr87VMu0kvu7w0RdOtOTt9=7V3eaq7fFLA@mail.gmail.com> (raw)
In-Reply-To: <CABWgkXLa-_nn5=vZXuCZXYEZzzDhyFygNCG4_Btfs0uRYdRO5A@mail.gmail.com>
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@google.com> wrote:
> On Tue, May 17, 2022 at 12:45 PM James Zern <jzern@google.com> wrote:
> >
> > On Tue, Apr 19, 2022 at 11:20 AM Bohan Li
> > <bohanli-at-google.com@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@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?
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-05-25 16:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-18 19:59 [FFmpeg-devel] [PATCH] Add unmet target level warning to libaom encoding Bohan Li
2022-04-19 17:03 ` [FFmpeg-devel] [PATCH] avcodec/libaomenc: Add unmet target level warning Bohan Li
2022-04-19 18:18 ` [FFmpeg-devel] [PATCH v2] " Bohan Li
2022-04-29 21:46 ` Bohan Li
2022-05-16 20:48 ` Bohan Li
2022-05-17 19:45 ` James Zern
2022-05-25 0:43 ` James Zern
2022-05-25 16:23 ` Bohan Li [this message]
2022-05-27 20:41 ` James Zern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAC6_SihN2WE7Og9ezr87VMu0kvu7w0RdOtOTt9=7V3eaq7fFLA@mail.gmail.com' \
--to=bohanli-at-google.com@ffmpeg.org \
--cc=ffmpeg-devel@ffmpeg.org \
--cc=jzern@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git