This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 431ceceac7 avcodec/amfenc: add high_quality quality preset
431ceceac7 is described below
commit 431ceceac76a087dece66e5d9d3993ac2d04e68b
Author: Araz Iusubov <[email protected]>
AuthorDate: Mon Jun 15 21:26:32 2026 +0200
Commit: ArazIusubov <[email protected]>
CommitDate: Fri Jun 19 08:44:30 2026 +0000
avcodec/amfenc: add high_quality quality preset
---
libavcodec/amfenc_h264.c | 5 +++--
libavcodec/amfenc_hevc.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/libavcodec/amfenc_h264.c b/libavcodec/amfenc_h264.c
index edd18167a9..650a9bc7e9 100644
--- a/libavcodec/amfenc_h264.c
+++ b/libavcodec/amfenc_h264.c
@@ -73,11 +73,12 @@ static const AVOption options[] = {
{ "latency", "enables low latency mode", OFFSET(latency),
AV_OPT_TYPE_BOOL, {.i64 = -1 }, -1, 1, VE },
/// Quality Preset
- { "quality", "Set the encoding quality preset", OFFSET(quality),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1,
AMF_VIDEO_ENCODER_QUALITY_PRESET_QUALITY, VE, .unit = "quality" },
- { "preset", "Set the encoding quality preset", OFFSET(quality),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1,
AMF_VIDEO_ENCODER_QUALITY_PRESET_QUALITY, VE, .unit = "quality" },
+ { "quality", "Set the encoding quality preset", OFFSET(quality),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1,
AMF_VIDEO_ENCODER_QUALITY_PRESET_HIGH_QUALITY, VE, .unit = "quality" },
+ { "preset", "Set the encoding quality preset", OFFSET(quality),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1,
AMF_VIDEO_ENCODER_QUALITY_PRESET_HIGH_QUALITY, VE, .unit = "quality" },
{ "balanced", "Balanced", 0,
AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_QUALITY_PRESET_BALANCED }, 0,
0, VE, .unit = "quality" },
{ "speed", "Prefer Speed", 0,
AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_QUALITY_PRESET_SPEED }, 0,
0, VE, .unit = "quality" },
{ "quality", "Prefer Quality", 0,
AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_QUALITY_PRESET_QUALITY }, 0,
0, VE, .unit = "quality" },
+ { "high_quality", "Prefer High Quality", 0,
AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_QUALITY_PRESET_HIGH_QUALITY },
0, 0, VE, .unit = "quality" },
// Dynamic
/// Rate Control Method
diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c
index 644cdb37a4..6fa20d172e 100644
--- a/libavcodec/amfenc_hevc.c
+++ b/libavcodec/amfenc_hevc.c
@@ -66,11 +66,12 @@ static const AVOption options[] = {
{ "6.1", "", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_LEVEL_6_1 }, 0,
0, VE, .unit = "level" },
{ "6.2", "", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_LEVEL_6_2 }, 0,
0, VE, .unit = "level" },
- { "quality", "Set the encoding quality preset", OFFSET(quality),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1,
AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_SPEED, VE, .unit = "quality" },
- { "preset", "Set the encoding quality preset", OFFSET(quality),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1,
AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_SPEED, VE, .unit = "quality" },
+ { "quality", "Set the encoding quality preset", OFFSET(quality),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1,
AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_HIGH_QUALITY, VE, .unit = "quality" },
+ { "preset", "Set the encoding quality preset", OFFSET(quality),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1,
AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_HIGH_QUALITY, VE, .unit = "quality" },
{ "quality", "", 0, AV_OPT_TYPE_CONST, { .i64 =
AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_QUALITY }, 0, 0, VE, .unit = "quality" },
{ "balanced", "", 0, AV_OPT_TYPE_CONST, { .i64 =
AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_BALANCED }, 0, 0, VE, .unit = "quality" },
{ "speed", "", 0, AV_OPT_TYPE_CONST, { .i64 =
AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_SPEED }, 0, 0, VE, .unit = "quality" },
+ { "high_quality", "", 0, AV_OPT_TYPE_CONST, { .i64 =
AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_HIGH_QUALITY }, 0, 0, VE, .unit =
"quality" },
{ "latency", "enables low latency mode", OFFSET(latency),
AV_OPT_TYPE_BOOL,{.i64 = -1 }, -1, 1, VE },
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]