Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: derrod via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: derrod <code@ffmpeg.org>
Subject: [FFmpeg-devel] [PATCH] avcodec/libaomenc: Update cpu-used range to 0..12 (PR #21041)
Date: Fri, 28 Nov 2025 17:10:55 -0000
Message-ID: <176434985628.39.1663149742656361818@2cb04c0e5124> (raw)

PR #21041 opened by derrod
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21041
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21041.patch

The range of `cpu-used` has been increased to `[0, 12]` a while ago, see aom help text for example: https://aomedia.googlesource.com/aom/+/refs/heads/main/av1/arg_defs.c#311



From 49a06a633fcd9a59247c12e1e16be077c29e0f2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20S=C3=A4dtler?= <dennis@obsproject.com>
Date: Fri, 28 Nov 2025 18:05:21 +0100
Subject: [PATCH] avcodec/libaomenc: Update cpu-used range to 0..12
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Dennis Sädtler <dennis@obsproject.com>
---
 doc/encoders.texi      | 2 +-
 libavcodec/libaomenc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/encoders.texi b/doc/encoders.texi
index f29086df2d..a6e829a441 100644
--- a/doc/encoders.texi
+++ b/doc/encoders.texi
@@ -1661,7 +1661,7 @@ The wrapper also has some specific options:
 @table @option
 
 @item cpu-used
-Set the quality/encoding speed tradeoff.  Valid range is from 0 to 8,
+Set the quality/encoding speed tradeoff.  Valid range is from 0 to 12,
 higher numbers indicating greater speed and lower quality.  The default
 value is 1, which will be slow and high quality.
 
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index 1e5db4ad8c..5e29686fa5 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -1492,7 +1492,7 @@ static av_cold int av1_init(AVCodecContext *avctx)
 
 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption options[] = {
-    { "cpu-used",        "Quality/Speed ratio modifier",           OFFSET(cpu_used),        AV_OPT_TYPE_INT, {.i64 = 1}, 0, 8, VE},
+    { "cpu-used",        "Quality/Speed ratio modifier",           OFFSET(cpu_used),        AV_OPT_TYPE_INT, {.i64 = 1}, 0, 12, VE},
     { "auto-alt-ref",    "Enable use of alternate reference "
                          "frames (2-pass only)",                   OFFSET(auto_alt_ref),    AV_OPT_TYPE_INT, {.i64 = -1},      -1,      2,       VE},
     { "lag-in-frames",   "Number of frames to look ahead at for "
-- 
2.49.1

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

                 reply	other threads:[~2025-11-28 17:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=176434985628.39.1663149742656361818@2cb04c0e5124 \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=code@ffmpeg.org \
    /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