[FFmpeg-devel] [PATCH 2/2] qsvenc: allow AVC/HEVC encoder violate HRD conformance by default

Haihao Xiang haihao.xiang at intel.com
Thu Nov 5 09:20:11 EET 2020


User may get better PSNR for the given bitrate for most cases by default
and use option '-strict 1' to produce HRD conformant bitstream if
required

Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>
---
 libavcodec/qsvenc_h264.c | 1 +
 libavcodec/qsvenc_hevc.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libavcodec/qsvenc_h264.c b/libavcodec/qsvenc_h264.c
index ddafc45ec3..e224048442 100644
--- a/libavcodec/qsvenc_h264.c
+++ b/libavcodec/qsvenc_h264.c
@@ -177,6 +177,7 @@ static const AVCodecDefault qsv_enc_defaults[] = {
 #if FF_API_PRIVATE_OPT
     { "b_strategy", "-1"   },
 #endif
+    { "strict",     "-1"   },
     { NULL },
 };
 
diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
index aa02361d1d..825df8fbb6 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -272,6 +272,7 @@ static const AVCodecDefault qsv_enc_defaults[] = {
 #if FF_API_PRIVATE_OPT
     { "b_strategy", "-1"   },
 #endif
+    { "strict",     "-1"   },
     { NULL },
 };
 
-- 
2.25.1



More information about the ffmpeg-devel mailing list