[FFmpeg-cvslog] libavcodec/qsvenc_hevc: Use default value from MSDK to set bf.

Wenbin Chen git at videolan.org
Mon Jun 27 07:13:28 EEST 2022


ffmpeg | branch: master | Wenbin Chen <wenbin.chen-at-intel.com at ffmpeg.org> | Mon Jun 20 17:06:31 2022 +0800| [afa20e6db82245807bd0bb181dd22e1b714972cc] | committer: Haihao Xiang

libavcodec/qsvenc_hevc: Use default value from MSDK to set bf.

Change the default value of "bf" for hevc_qsv to -1. 8 isn't the best
choice so let MSDK to decide the number of b frames.

Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>

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

 libavcodec/qsvenc_hevc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
index da2bf457af..f6027f600b 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -287,7 +287,7 @@ static const FFCodecDefault qsv_enc_defaults[] = {
     { "refs",      "0"     },
     // same as the x264 default
     { "g",         "248"   },
-    { "bf",        "8"     },
+    { "bf",        "-1"    },
     { "qmin",      "-1"    },
     { "qmax",      "-1"    },
     { "trellis",   "-1"    },



More information about the ffmpeg-cvslog mailing list