[FFmpeg-cvslog] libavcodec/amfenc_hevc: Recommend values for min and max video quantizer scale.

Ovchinnikov Dmitrii git at videolan.org
Tue Mar 9 21:15:07 EET 2021


ffmpeg | branch: master | Ovchinnikov Dmitrii <ovchinnikov.dmitrii at gmail.com> | Tue Mar  9 22:05:07 2021 +0300| [1a549efefb590a83b2516dfd287dbda4e8d6b846] | committer: James Almer

libavcodec/amfenc_hevc: Recommend values for min and max video quantizer scale.

Current settings makes bitrate larger than expected, more information:
https://github.com/HandBrake/HandBrake/issues/3447#issue-820490736

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a549efefb590a83b2516dfd287dbda4e8d6b846
---

 libavcodec/amfenc_hevc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c
index bb224c5fec..a1225c09e3 100644
--- a/libavcodec/amfenc_hevc.c
+++ b/libavcodec/amfenc_hevc.c
@@ -298,6 +298,8 @@ static const AVCodecDefault defaults[] = {
     { "b",          "2M"  },
     { "g",          "250" },
     { "slices",     "1"   },
+    { "qmin",       "-1"  },
+    { "qmax",       "-1"  },
     { NULL                },
 };
 static const AVClass hevc_amf_class = {



More information about the ffmpeg-cvslog mailing list