Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] avcodec/libaomenc: Update cpu-used range to 0..12 (PR #21041)
@ 2025-11-28 17:10 derrod via ffmpeg-devel
  0 siblings, 0 replies; only message in thread
From: derrod via ffmpeg-devel @ 2025-11-28 17:10 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: derrod

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-28 17:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-28 17:10 [FFmpeg-devel] [PATCH] avcodec/libaomenc: Update cpu-used range to 0..12 (PR #21041) derrod via ffmpeg-devel

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