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?= <[email protected]>
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 <[email protected]>
---
 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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to