[libav-devel] [PATCH 1/2] qsvenc_hevc: improve the default settings

Anton Khirnov anton at khirnov.net
Fri Dec 18 14:26:43 CET 2015


From: Maxym Dmytrychenko <maxym.dmytrychenko at intel.com>

Use 8 B-frames and modify the GOP size to be a multiple of the B-frame
count.

Signed-off-by: Anton Khirnov <anton at khirnov.net>
---
 libavcodec/qsvenc_hevc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
index 063dd9d..343733b 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -240,8 +240,8 @@ static const AVCodecDefault qsv_enc_defaults[] = {
     { "b",         "1M"    },
     { "refs",      "0"     },
     // same as the x264 default
-    { "g",         "250"   },
-    { "bf",        "3"     },
+    { "g",         "248"   },
+    { "bf",        "8"     },
 
     { "flags",     "+cgop" },
     { "b_strategy", "-1"   },
-- 
2.0.0



More information about the libav-devel mailing list