* Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add -pic_timing_sei option
[not found] <20210806021033.31954-1-haihao.xiang@intel.com>
@ 2021-12-24 7:35 ` Xiang, Haihao
2021-12-24 8:17 ` lance.lmwang
0 siblings, 1 reply; 5+ messages in thread
From: Xiang, Haihao @ 2021-12-24 7:35 UTC (permalink / raw)
To: ffmpeg-devel
On Fri, 2021-08-06 at 10:10 +0800, Haihao Xiang wrote:
> 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
> ---
> libavcodec/qsvenc_hevc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
> index b7b2f5633e..1e31968673 100644
> --- a/libavcodec/qsvenc_hevc.c
> +++ b/libavcodec/qsvenc_hevc.c
> @@ -248,6 +248,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_INT, { .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_INT, { .i64 = 1 }, 0, 1, VE
> },
>
> { NULL },
> };
Will apply
-Haihao
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add -pic_timing_sei option
2021-12-24 7:35 ` [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add -pic_timing_sei option Xiang, Haihao
@ 2021-12-24 8:17 ` lance.lmwang
2021-12-24 8:47 ` Xiang, Haihao
0 siblings, 1 reply; 5+ messages in thread
From: lance.lmwang @ 2021-12-24 8:17 UTC (permalink / raw)
To: ffmpeg-devel
On Fri, Dec 24, 2021 at 07:35:25AM +0000, Xiang, Haihao wrote:
> On Fri, 2021-08-06 at 10:10 +0800, Haihao Xiang wrote:
> > 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
> > ---
> > libavcodec/qsvenc_hevc.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
> > index b7b2f5633e..1e31968673 100644
> > --- a/libavcodec/qsvenc_hevc.c
> > +++ b/libavcodec/qsvenc_hevc.c
> > @@ -248,6 +248,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_INT, { .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_INT, { .i64 = 1 }, 0, 1, VE
It's better to use AV_OPT_TYPE_BOOL if the option is used for on/off or enable/disable.
I think you need to add description in the doc for the new options if possible.
> > },
> >
> > { NULL },
> > };
>
> Will apply
>
> -Haihao
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
--
Thanks,
Limin Wang
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add -pic_timing_sei option
2021-12-24 8:17 ` lance.lmwang
@ 2021-12-24 8:47 ` Xiang, Haihao
2021-12-24 9:55 ` lance.lmwang
0 siblings, 1 reply; 5+ messages in thread
From: Xiang, Haihao @ 2021-12-24 8:47 UTC (permalink / raw)
To: ffmpeg-devel
On Fri, 2021-12-24 at 16:17 +0800, lance.lmwang@gmail.com wrote:
> On Fri, Dec 24, 2021 at 07:35:25AM +0000, Xiang, Haihao wrote:
> > On Fri, 2021-08-06 at 10:10 +0800, Haihao Xiang wrote:
> > > 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
> > > ---
> > > libavcodec/qsvenc_hevc.c | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
> > > index b7b2f5633e..1e31968673 100644
> > > --- a/libavcodec/qsvenc_hevc.c
> > > +++ b/libavcodec/qsvenc_hevc.c
> > > @@ -248,6 +248,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_INT, { .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_INT, { .i64 = 1 }, 0, 1,
> > > VE
>
> It's better to use AV_OPT_TYPE_BOOL if the option is used for on/off or
> enable/disable.
>
Thanks for your comment. I'll change it to AV_OPT_TYPE_BOOL,
> I think you need to add description in the doc for the new options if
> possible.
Currently there isn't a doc for qsv decoder, we'll try to add it later.
Thanks
Haihao
>
> > > },
> > >
> > > { NULL },
> > > };
> >
> > Will apply
> >
> > -Haihao
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add -pic_timing_sei option
2021-12-24 8:47 ` Xiang, Haihao
@ 2021-12-24 9:55 ` lance.lmwang
2021-12-24 13:43 ` Xiang, Haihao
0 siblings, 1 reply; 5+ messages in thread
From: lance.lmwang @ 2021-12-24 9:55 UTC (permalink / raw)
To: ffmpeg-devel
On Fri, Dec 24, 2021 at 08:47:38AM +0000, Xiang, Haihao wrote:
> On Fri, 2021-12-24 at 16:17 +0800, lance.lmwang@gmail.com wrote:
> > On Fri, Dec 24, 2021 at 07:35:25AM +0000, Xiang, Haihao wrote:
> > > On Fri, 2021-08-06 at 10:10 +0800, Haihao Xiang wrote:
> > > > 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
> > > > ---
> > > > libavcodec/qsvenc_hevc.c | 1 +
> > > > 1 file changed, 1 insertion(+)
> > > >
> > > > diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
> > > > index b7b2f5633e..1e31968673 100644
> > > > --- a/libavcodec/qsvenc_hevc.c
> > > > +++ b/libavcodec/qsvenc_hevc.c
> > > > @@ -248,6 +248,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_INT, { .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_INT, { .i64 = 1 }, 0, 1,
> > > > VE
> >
> > It's better to use AV_OPT_TYPE_BOOL if the option is used for on/off or
> > enable/disable.
> >
>
> Thanks for your comment. I'll change it to AV_OPT_TYPE_BOOL,
>
> > I think you need to add description in the doc for the new options if
> > possible.
>
> Currently there isn't a doc for qsv decoder, we'll try to add it later.
QSV encoder have one section in in doc/encoders.texi already although not all of
options are included.
$ grep "QSV encoders" doc/encoders.texi
@section QSV encoders
>
> Thanks
> Haihao
>
> >
> > > > },
> > > >
> > > > { NULL },
> > > > };
> > >
> > > Will apply
> > >
> > > -Haihao
> > >
> > > _______________________________________________
> > > ffmpeg-devel mailing list
> > > ffmpeg-devel@ffmpeg.org
> > > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > >
> > > To unsubscribe, visit link above, or email
> > > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
> >
> >
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
--
Thanks,
Limin Wang
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add -pic_timing_sei option
2021-12-24 9:55 ` lance.lmwang
@ 2021-12-24 13:43 ` Xiang, Haihao
0 siblings, 0 replies; 5+ messages in thread
From: Xiang, Haihao @ 2021-12-24 13:43 UTC (permalink / raw)
To: ffmpeg-devel
On Fri, 2021-12-24 at 17:55 +0800, lance.lmwang@gmail.com wrote:
> On Fri, Dec 24, 2021 at 08:47:38AM +0000, Xiang, Haihao wrote:
> > On Fri, 2021-12-24 at 16:17 +0800, lance.lmwang@gmail.com wrote:
> > > On Fri, Dec 24, 2021 at 07:35:25AM +0000, Xiang, Haihao wrote:
> > > > On Fri, 2021-08-06 at 10:10 +0800, Haihao Xiang wrote:
> > > > > 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
> > > > > ---
> > > > > libavcodec/qsvenc_hevc.c | 1 +
> > > > > 1 file changed, 1 insertion(+)
> > > > >
> > > > > diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
> > > > > index b7b2f5633e..1e31968673 100644
> > > > > --- a/libavcodec/qsvenc_hevc.c
> > > > > +++ b/libavcodec/qsvenc_hevc.c
> > > > > @@ -248,6 +248,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_INT, { .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_INT, { .i64 = 1 },
> > > > > 0, 1,
> > > > > VE
> > >
> > > It's better to use AV_OPT_TYPE_BOOL if the option is used for on/off or
> > > enable/disable.
> > >
> >
> > Thanks for your comment. I'll change it to AV_OPT_TYPE_BOOL,
> >
> > > I think you need to add description in the doc for the new options if
> > > possible.
> >
> > Currently there isn't a doc for qsv decoder, we'll try to add it later.
>
> QSV encoder have one section in in doc/encoders.texi already although not all
> of
> options are included.
>
> $ grep "QSV encoders" doc/encoders.texi
> @section QSV encoders
>
Thanks for pointing it out. These are global options, not specific options for
each QSV encoder, we will add the description about specific options.
BRs
Haihao
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-12-24 13:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20210806021033.31954-1-haihao.xiang@intel.com>
2021-12-24 7:35 ` [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add -pic_timing_sei option Xiang, Haihao
2021-12-24 8:17 ` lance.lmwang
2021-12-24 8:47 ` Xiang, Haihao
2021-12-24 9:55 ` lance.lmwang
2021-12-24 13:43 ` Xiang, Haihao
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git