[FFmpeg-cvslog] lavc/qsvenc_hevc: add -pic_timing_sei option

Haihao Xiang git at videolan.org
Tue Jan 18 11:39:15 EET 2022


ffmpeg | branch: master | Haihao Xiang <haihao.xiang at intel.com> | Fri Aug  6 10:10:33 2021 +0800| [641c4346b3d7fa1c023792a260ed0165c6d4a2a4] | committer: Haihao Xiang

lavc/qsvenc_hevc: add -pic_timing_sei option

The SDK may insert picture timing SEI for hevc and the code to set mfx
parameter has been added in qsvenc, however the corresponding option is
missing in the hevc option array

Reviewed-by: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>

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

 doc/encoders.texi        | 3 +++
 libavcodec/qsvenc_hevc.c | 1 +
 2 files changed, 4 insertions(+)

diff --git a/doc/encoders.texi b/doc/encoders.texi
index 78518629cd..154d838ea2 100644
--- a/doc/encoders.texi
+++ b/doc/encoders.texi
@@ -3435,6 +3435,9 @@ Number of rows for tiled encoding.
 
 @item @var{aud}
 Insert the Access Unit Delimiter NAL.
+
+ at item @var{pic_timing_sei}
+Insert picture timing SEI with pic_struct_syntax element.
 @end table
 
 @subsection MPEG2 Options
diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
index 07010c698e..3309ad6a26 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -254,6 +254,7 @@ static const AVOption options[] = {
     { "tile_rows",  "Number of rows for tiled encoding",      OFFSET(qsv.tile_rows),    AV_OPT_TYPE_INT, { .i64 = 0 }, 0, UINT16_MAX, VE },
     { "recovery_point_sei", "Insert recovery point SEI messages",       OFFSET(qsv.recovery_point_sei),      AV_OPT_TYPE_INT, { .i64 = -1 },               -1,          1, VE },
     { "aud", "Insert the Access Unit Delimiter NAL", OFFSET(qsv.aud), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE},
+    { "pic_timing_sei",    "Insert picture timing SEI with pic_struct_syntax element", OFFSET(qsv.pic_timing_sei), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, VE },
 
     { NULL },
 };



More information about the ffmpeg-cvslog mailing list