[FFmpeg-devel] [PATCH 2/2] lavc/qsvenc: enable lookahead for hevc encoding

2021-12-21 Thread Zhong Li
Update version based on the patch: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20211009015949.1510-1-haihao.xi...@intel.com/ Signed-off-by: Daniel Socek Signed-off-by: Haihao Xiang Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 10 ++ libavcodec/qsvenc_hevc.c | 3 +++ 2

[FFmpeg-devel] [PATCH 1/2] lavc/qsvenc: specify codec name when print profile

2021-12-21 Thread Zhong Li
It is more clear and easily to detect the issues similar to commit 3857ecbe70e81cb6ad7a7f155c311e8522b93b3e Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/libavcodec/qsvenc.c b

Re: [FFmpeg-devel] [PATCH] qsvenc_hevc: Enable look ahead with ExtBRC

2021-12-19 Thread Zhong Li
Xiang, Haihao 于2021年12月6日周一 11:09写道: > > --- 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,

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for qsv

2021-12-15 Thread Zhong Li
Codecs: > > > > >ptx.c Ivo van Poorten > > > > >qcelp*Reynaldo H. Verdejo Pinochet > > > > > qdm2.c, qdm2data.hRoberto Togni > > > > > - q

Re: [FFmpeg-devel] [PATCH] qsvenc_hevc: Enable look ahead with ExtBRC

2021-12-06 Thread Zhong Li
>Xiang, Haihao 于2021年12月6日周一 上午11:09写道: > Any comment for this patch ? Could someone help to merge this patch if no > objection ? LGTM, will apply. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel T

Re: [FFmpeg-devel] [PATCH 1/2] lavc/qsvenc_hevc: allow user set more coding options

2021-06-20 Thread Zhong Li
Haihao Xiang 于2021年4月25日周日 上午9:32写道: > > The SDK supports NalHrdConformance, RecoveryPointSEI and AUDelimiter for > hevc encoder, so we may allow user to set these coding options like what > we did for h264_qsv encoder. > > '-strict xxx' to turn on / off NalHrdConformance > '-recovery_point_sei xx

Re: [FFmpeg-devel] [PATCH v2 1/2] lavc/qsvdec: fix pts

2021-06-17 Thread Zhong Li
LGTM, will apply Haihao Xiang 于2021年6月11日周五 上午10:20写道: > > The time base used for compressed bitstream and video frame in the SDK > is { 1, 9 }. [1][2] > > This can avoid the error message below from the muxer. > > $> ffmpeg -hwaccel qsv -c:v hevc_qsv -i input.h265 -f null - > ... > [null @ 0

[FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for qsv

2021-06-08 Thread Zhong Li
Signed-off-by: Zhong Li --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index dcac46003e..39ce91b755 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -226,7 +226,7 @@ Codecs: ptx.c Ivo van Poorten

Re: [FFmpeg-devel] [PATCH v3] lavfi/qsvvpp: support async depth

2021-04-11 Thread Zhong Li
Fei Wang 于2021年3月31日周三 上午10:11写道: > > Async depth will allow qsv filter cache few frames, and avoid force > switch and end filter task frame by frame. This change will improve > performance for some multi-task case, for example 1:N transcode( > decode + vpp + encode) with all QSV plugins. > > Perf

[FFmpeg-devel] [PATCH] lavfi/cas: fix the wrong source linesize

2021-04-11 Thread Zhong Li
Signed-off-by: Zhong Li --- libavfilter/vf_cas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_cas.c b/libavfilter/vf_cas.c index 7c32ed5f9b..b44a100421 100644 --- a/libavfilter/vf_cas.c +++ b/libavfilter/vf_cas.c @@ -65,7 +65,7 @@ static int cas_slice8

Re: [FFmpeg-devel] [PATCH] lavc/qsvdec: Add QSV AV1 decoder

2020-09-25 Thread Zhong Li
Haihao Xiang 于2020年9月16日周三 下午3:08写道: > > AV1 decoder is supported on Tiger Lake+ platforms since libmfx 1.34 > > Signed-off-by: Haihao Xiang LGTM. Will apply soon. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listin

[FFmpeg-devel] [PATCH] mailmap: add entry for RuilingSong

2020-07-12 Thread Zhong Li
Signed-off-by: Zhong Li --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index f14770d800..3bd1a85c3c 100644 --- a/.mailmap +++ b/.mailmap @@ -21,3 +21,4 @@ rcombs + -- 2.17.1 ___ ffmpeg-devel mailing

Re: [FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop while framerate lower than input

2020-07-05 Thread Zhong Li
> > I can't see the benefit to use MSDK framerate conversion function. Is > > it a good idea to drop it and use ffmpeg native fps filter instead? > > Reconsidering this, leaving the filter buggy doesn't seem to be comfortable > to me, > hence IMHO it'll be better to have this bug fixed. My suggest

[FFmpeg-devel] [PATCH] mailmap: add entry for myself

2020-06-17 Thread Zhong Li
Signed-off-by: Zhong Li --- .mailmap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index d1925bfab0..f14770d800 100644 --- a/.mailmap +++ b/.mailmap @@ -15,7 +15,8 @@ - + + rcombs -- 2.17.1

Re: [FFmpeg-devel] [PATCH] avfilter/qsvvpp: Work around a bug in MSDK where VPP processing hangs under certain conditions

2020-05-24 Thread Zhong Li
Soft Works 于2020年5月24日周日 下午8:13写道: > > These conditions are: > - Dimensions are aligned to 16/32 byte (e.g. 1920x800) > - No scaling is done > - Color format conversion (e.g. 10bit to 8bit) > > Example command: > ffmpeg -c:v hevc_qsv -hwaccel qsv -i hevc_10bit_1920_800.mkv -filter_complex > "scal

Re: [FFmpeg-devel] [RFC]separation of multiple outputs' encoding

2020-05-19 Thread Zhong Li
Tomas Härdin 于2020年5月19日周二 下午10:25写道: > > fre 2020-05-15 klockan 10:14 +0800 skrev Tao Zhang: > > Marton Balint 于2020年5月15日周五 上午2:33写道: > > > > > > > > > On Thu, 14 May 2020, Tao Zhang wrote: > > > > > > > Hi, > > > > FFmpeg supports multiple outputs created out of the same input in the > > > > s

Re: [FFmpeg-devel] [PATCH v5 3/9] libavutil/hwcontext_d3d11va: adding the vendor option to d3d11va device creation

2020-05-19 Thread Zhong Li
于2020年5月19日周二 上午2:56写道: > > From: Artem Galin > > Example: --init_hw_device d3d11va:,vendor=0x8086 > > qsv_device option is still works and has higher priority over vendor > option. Would be nice if you can document it in ffmpeg.texi. > Signed-off-by: Artem Galin --- > libavutil/hwcontext_d3d

Re: [FFmpeg-devel] [PATCH v6 2/9] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-05-19 Thread Zhong Li
于2020年5月19日周二 上午4:31写道: > > From: Artem Galin > > Adding DX11 relevant device type checks and adjusting callbacks with > proper MediaSDK pair type support. > > Extending structure for proper MediaSDK pair type support. > > Signed-off-by: Artem Galin > --- > libavcodec/qsv.c | 53 ++

Re: [FFmpeg-devel] [PATCH v5 1/9] fftools/qsv: add device initialization from string

2020-05-19 Thread Zhong Li
于2020年5月19日周二 上午3:26写道: > > From: Artem Galin > > Signed-off-by: Artem Galin > --- > fftools/ffmpeg_opt.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c > index 60bb437ea7..83f1b53e9d 100644 > --- a/fftools/ffmpeg_opt.c

Re: [FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop while framerate lower than input

2020-04-21 Thread Zhong Li
> > I can't see the benefit to use MSDK framerate conversion function. Is > > it a good idea to drop it and use ffmpeg native fps filter instead? > > The implementation of FRC inside MSDK is quite straight-forward or simple > currently since it just drops or repeats frames, hence I think using nati

Re: [FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop while framerate lower than input

2020-04-19 Thread Zhong Li
Fu, Linjie 于2020年2月29日周六 下午5:35写道: > > > -Original Message- > > From: Zhong Li > > Sent: Saturday, February 29, 2020 13:14 > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Cc: Fu, Linjie > > Subject: Re: [FF

Re: [FFmpeg-devel] [PATCH 3/8] lavc/qsvenc: Add hardware config metadata

2020-04-19 Thread Zhong Li
Mark Thompson 于2020年4月13日周一 下午11:34写道: > > All of these encoders can accept libmfx surfaces directly in a hardware > frames context, or they can accept software frames if a suitable device > is supplied to use. > --- > libavcodec/qsvenc.c | 7 +++ > libavcodec/qsvenc.h | 3 +++ >

Re: [FFmpeg-devel] [PATCH, v2 1/2] lavc/qsvdec: add decode support for HEVC 4:2:2 8-bit and 10-bit

2020-04-14 Thread Zhong Li
Linjie Fu 于2020年2月26日周三 下午4:43写道: > > Enables HEVC Range Extension decoding support (Linux) for 4:2:2 8/10 bit > on ICL+ (gen11 +) platform. > > Signed-off-by: Linjie Fu > --- > [v2]: restrict to support on Linux. > > libavcodec/qsv.c | 16 > libavutil/hwcontext_qsv.c |

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add qmax/qmin support for HEVC encoding

2020-03-11 Thread Zhong Li
Linjie Fu 于2020年3月11日周三 下午6:44写道: > > Add qmax/qmin support for HEVC software bitrate control(SWBRC). > > Limitations: > - RateControlMethod != MFX_RATECONTROL_CQP > - with EXTBRC ON > > Signed-off-by: Dmitry Rogozhkin > Signed-off-by: Linjie Fu > --- > > Relative code in MSDK for the li

Re: [FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop while framerate lower than input

2020-02-28 Thread Zhong Li
Linjie Fu 于2020年2月28日周五 下午11:34写道: > > There are frame droppings in frc while converting into a lower framerate, > and MSDK returns ERROR_MORE_DATA which should be ignored. Should be fixed in MSDK instead of working around in FFmpeg? ___ ffmpeg-devel ma

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: add support for external bitrate control for HEVC

2020-02-14 Thread Zhong Li
Linjie Fu 于2020年2月13日周四 下午8:50写道: > > Enables option for hevc_qsv encoder: > -extbrc > > Improvements in BD-Rate could be observed with extbrc on. > > Signed-off-by: Linjie Fu > --- > Details for extbrc: > https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#external-bi

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvenc.c: Set height and width alignment when using mjpeg_qsv

2020-01-20 Thread Zhong Li
Jon Cook 于2020年1月20日周一 下午5:58写道: > > From: JonCookCubic > > Currently width_align and height_align are zero which cases "Error submitting > the frame for encoding". This change sets the alignments. Could you help to provide detail steps (CLI and input video) to reproduce the issue? > > Signed-

Re: [FFmpeg-devel] [PATCH] HEVC: Export motion vectors to frame side data.

2020-01-06 Thread Zhong Li
Haven't tested but patch LGTM Asaf Kave 于2019年12月29日周日 下午10:08写道: > > --- > libavcodec/hevc_refs.c | 15 > libavcodec/hevcdec.c | 173 - > libavcodec/hevcdec.h | 13 > 3 files changed, 200 insertions(+), 1 deletion(-) > > diff --git a/libav

[FFmpeg-devel] [PATCH] lavc/qsv: remove the unused funtion ff_qsv_profile_to_mfx()

2019-12-28 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsv.c | 52 --- libavcodec/qsv_internal.h | 1 - 2 files changed, 53 deletions(-) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index b00e427435..db98c75073 100644 --- a/libavcodec/qsv.c +++ b/libavcodec

[FFmpeg-devel] [PATCH 2/2] lavc/qsvdec: disable gpu copy when not supported

2019-12-28 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvdec.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index baaf1f205f..fc25dc73e5 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -99,9 +99,11 @@ static int

[FFmpeg-devel] [PATCH 1/2] lavc/qsvdec: fix the error retrun code in ff_qsv_get_continuous_buffer()

2019-12-28 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 0d34021b42..baaf1f205f 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -74,7 +74,7 @@ static int

Re: [FFmpeg-devel] [PATCH] qsvenc: Add ROI encoding support for h264_qsv and hevc_qsv

2019-12-25 Thread Zhong Li
Guo, Yejun 于2019年12月25日周三 下午7:10写道: > > command examples: > ./ffmpeg -s 1920x1080 -i input.yuv -vf addroi=0:0:640:320:0.5 -c:v hevc_qsv > -b:v 5M -y qsv.b5m.roi.h265 > ./ffmpeg -s 1920x1080 -i input.yuv -vf addroi=0:0:640:320:-0.5 -c:v h264_qsv > -mfmode 1 -b:v 4M -y qsv.b4m.roi.h264 > > Sign

[FFmpeg-devel] [PATCH] lavc/midivid: check return value of init_get_bits8()

2019-12-23 Thread Zhong Li
Fix CID 1456088 Signed-off-by: Zhong Li --- libavcodec/midivid.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/midivid.c b/libavcodec/midivid.c index 38465c5..bb5105b 100644 --- a/libavcodec/midivid.c +++ b/libavcodec/midivid.c @@ -63,7 +63,7 @@ static int

Re: [FFmpeg-devel] [PATCH V2] lavc/midivid: FIX CID 1456088

2019-12-23 Thread Zhong Li
James Almer 于2019年12月23日周一 下午9:09写道: > > On 12/23/2019 9:31 AM, Zhong Li wrote: > > James Almer 于2019年12月22日周日 下午11:29写道: > >> > >> On 12/22/2019 12:26 PM, Zhong Li wrote: > >>> Signed-off-by: Zhong Li > >>> --- > >>> libavcodec

Re: [FFmpeg-devel] [PATCH V2] lavc/midivid: FIX CID 1456088

2019-12-23 Thread Zhong Li
James Almer 于2019年12月22日周日 下午11:29写道: > > On 12/22/2019 12:26 PM, Zhong Li wrote: > > Signed-off-by: Zhong Li > > --- > > libavcodec/midivid.c | 9 ++--- > > 1 file changed, 6 insertions(+), 3 deletions(-) > > > > diff --git a/libavcodec/midivid.

Re: [FFmpeg-devel] [PATCH V2] lavc/midivid: FIX CID 1456088

2019-12-23 Thread Zhong Li
Nicolas George 于2019年12月23日周一 下午5:00写道: > > Limin Wang (12019-12-23): > > But It's not my code, I'm a code reviewer. > > Then review that ret needs to be returned ;-) It needs more change, not > less. Could specify what "more change" is needed? ___ ffmp

[FFmpeg-devel] [PATCH V2] lavc/midivid: FIX CID 1456088

2019-12-22 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/midivid.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavcodec/midivid.c b/libavcodec/midivid.c index 38465c5..3dac3f1 100644 --- a/libavcodec/midivid.c +++ b/libavcodec/midivid.c @@ -63,17 +63,20 @@ static int decode_mvdv

[FFmpeg-devel] [PATCH] lavc/midivid: FIX CID 1456088

2019-12-22 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/midivid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/midivid.c b/libavcodec/midivid.c index 38465c5..6877c60 100644 --- a/libavcodec/midivid.c +++ b/libavcodec/midivid.c @@ -73,7 +73,8 @@ static int decode_mvdv

Re: [FFmpeg-devel] [PATCH] lavc/x265: set preferred_transfer_characteristics for HLG

2019-12-13 Thread Zhong Li
James Almer 于2019年12月13日周五 上午12:14写道: > > On 12/4/2019 11:24 AM, Zhong Li wrote: > > "HEVC HDR UHDTV Bitstreams using HLG10 shall also contain the > > alternative_transfer_characteristics SEI message. The > > alternative_transfer_characteristics SEI message shal

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: add Tiles encode support for HEVC

2019-12-12 Thread Zhong Li
Will apply. Thanks! Fu, Linjie 于2019年12月10日周二 上午8:57写道: > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Zhong Li > > Sent: Sunday, December 8, 2019 16:32 > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> >

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: add Tiles encode support for HEVC

2019-12-08 Thread Zhong Li
Linjie Fu 于2019年11月26日周二 下午12:04写道: > > Add -tile_rows and -tile_cols option to specify the number of tile rows > and columns for ICL+ (gen 11) platform. > > A tile must wholly contain all the slices within it. Slices cannot cross > tile boundaries. So the slice number would be implicitly resized

[FFmpeg-devel] [PATCH] lavc/x265: set preferred_transfer_characteristics for HLG

2019-12-04 Thread Zhong Li
Recommendation ITU-R BT. 2100 [45] HLG system." Signed-off-by: Zhong Li --- libavcodec/libx265.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 4e75077..963c28f 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -159

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself to libavfilter/dnn

2019-11-30 Thread Zhong Li
Guo, Yejun 于2019年11月30日周六 下午12:32写道: > > Signed-off-by: Guo, Yejun > --- > MAINTAINERS | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 7f60ef0..5d02520 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -369,6 +369,8 @@ Filters: > Sources: >vsrc

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: add Tiles encode support for HEVC

2019-11-28 Thread Zhong Li
Linjie Fu 于2019年11月26日周二 下午12:04写道: > > Add -tile_rows and -tile_cols option to specify the number of tile rows > and columns for ICL+ (gen 11) platform. > > A tile must wholly contain all the slices within it. Slices cannot cross > tile boundaries. So the slice number would be implicitly resized

[FFmpeg-devel] [PATCH] doc/encoder: add the missing qsv encoders

2019-11-26 Thread Zhong Li
Signed-off-by: Zhong Li --- doc/encoders.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 6cf3a74..efa28ef 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -2776,7 +2776,7 @@ recommended value) and do not set a size

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: Fix some code indentations

2019-11-26 Thread Zhong Li
LGTM. WIll apply Linjie Fu 于2019年11月26日周二 下午12:01写道: > > Signed-off-by: Linjie Fu > --- > libavcodec/qsvenc.c | 8 > libavcodec/qsvenc.h | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c > index 93d49ba..e176d57 100644

Re: [FFmpeg-devel] vp9_qsv encoder

2019-11-19 Thread Zhong Li
i9-9900k is coffee lake IIRC, but vp9_qsv encoder just be supported since Ice lake. BTW, such question should be moved to FFmpeg-user channel. Alex <3.1...@ukr.net> 于2019年11月20日周三 上午2:14写道: > > Is it vp9_qsv encoder will work on i9-9900k Intel CPU or we need to wait for > new CPU release from Int

Re: [FFmpeg-devel] [PATCH 1/2] lavc/rav1e: log and doc updated for const quantizer mode

2019-11-18 Thread Zhong Li
Ping? Zhong Li 于2019年11月12日周二 下午5:40写道: > > Signed-off-by: Zhong Li > --- > doc/encoders.texi | 2 +- > libavcodec/librav1e.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/doc/encoders.texi b/doc/encoders.texi > index 6cf3a74093

Re: [FFmpeg-devel] [PATCH v1 2/2] configure: Fix for the configure failed for vmaf

2019-11-13 Thread Zhong Li
19 at 01:03:09AM +0800, Zhao Zhili wrote: > > > > > > > On Nov 13, 2019, at 9:41 PM, Zhong Li wrote: > > > > > > Just curious why this issue hasn't been found earlier. > > > > I think it's a regression of libvmaf: > > libvm

Re: [FFmpeg-devel] [PATCH v1 2/2] configure: Fix for the configure failed for vmaf

2019-11-13 Thread Zhong Li
Just curious why this issue hasn't been found earlier. 于2019年11月12日周二 下午7:24写道: > > From: Limin Wang > > When enable-libvmaf with the vmaf master installed , it'll report below error: > ERROR: libvmaf >= 1.3.9 not found using pkg-config > > In fact, after vmaf installed, the vmaf pkg-config file

Re: [FFmpeg-devel] [PATCH 2/2] lavc/rav1e: add doc for threads option

2019-11-13 Thread Zhong Li
qmin and qmax are generic optiopns too. Many generic options can't be appled to specified encoders, so just add the supported options here. Following libaom's format probally a good idea. Gyan 于2019年11月12日周二 下午7:04写道: > > > > On 12-11-2019 02:39 pm, Zhong Li wrote: >

[FFmpeg-devel] [PATCH 1/2] lavc/rav1e: log and doc updated for const quantizer mode

2019-11-12 Thread Zhong Li
Signed-off-by: Zhong Li --- doc/encoders.texi | 2 +- libavcodec/librav1e.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 6cf3a74093..6b02c7798d 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1395,7 +1395,7

[FFmpeg-devel] [PATCH 2/2] lavc/rav1e: add doc for threads option

2019-11-12 Thread Zhong Li
Signed-off-by: Zhong Li --- doc/encoders.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 6b02c7798d..8f37597999 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1394,6 +1394,9 @@ Sets the maximum quantizer to use when using

Re: [FFmpeg-devel] [FFmpeg-cvslog] lavc/qsvenc: enable vp9 encoder

2019-11-03 Thread Zhong Li
James Almer 于2019年11月3日周日 下午9:18写道: > > > ffmpeg | branch: master | Zhong Li > <https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog>> | Sat Oct 26 22:18:31 > > 2019 +0800| [33583803e107b6d532def0f9d949364b01b6ad5a] | committer: Zhong Li > > > > lavc/qsv

[FFmpeg-devel] [PATCH] lavc/qsvenc: add the missing vp9 file

2019-11-03 Thread Zhong Li
It is missed in commit 3358380 Signed-off-by: Zhong Li --- libavcodec/qsvenc_vp9.c | 113 1 file changed, 113 insertions(+) create mode 100644 libavcodec/qsvenc_vp9.c diff --git a/libavcodec/qsvenc_vp9.c b/libavcodec/qsvenc_vp9.c new file mode

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: Fix bitrate_limit to allow AVC encode in limited bitrate

2019-11-03 Thread Zhong Li
Applied. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] lavc/qsv: improve the default GPU memory usage

2019-11-01 Thread Zhong Li
> A large initial_pool_size leads to redundant GPU memory allocations > compared with MSDK. > > For some special cases which needs larger GPU memory like look_ahead, > add -extra_hw_frames to allocate more. > > CMD: > ffmpeg -hwaccel qsv -extra_hw_frames 50 -c:v hevc_qsv -i hevc.h265 -c:v > h264_q

Re: [FFmpeg-devel] [PATCH] lavc/qsvdec: remove unused check_dec_param

2019-10-22 Thread Zhong Li
> Signed-off-by: Linjie Fu > --- > libavcodec/qsvdec.c | 27 --- > 1 file changed, 27 deletions(-) > > diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c > index ae5023989c..0d34021b42 100644 > --- a/libavcodec/qsvdec.c > +++ b/libavcodec/qsvdec.c > @@ -164,33 +164,6 @

[FFmpeg-devel] [PATCH] lavc/qsv: remove vaapi device free function

2019-10-07 Thread Zhong Li
It is not needed since av_buffer_unref() will call it internally Signed-off-by: Zhong Li --- libavcodec/qsv.c | 4 1 file changed, 4 deletions(-) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index a43f0d5..81fa4a8 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -835,10 +835,6

[FFmpeg-devel] [PATCH 1/2] lavc/qsvenc: enable vp9 encoder

2019-09-29 Thread Zhong Li
1. must enable low_power mode since just VDENC can be supported by iHD driver right now 2. Coding option1 and extra_data are not supported by MSDK 3. IVF header will be inserted in MSDK by default, but it is not needed for FFmpeg, so disable it. Signed-off-by: Zhong Li --- configure

[FFmpeg-devel] [PATCH 2/2] lavc/qsv: force internal allocator for MFX_FOURCC_VP9_SEGMAP surface

2019-09-29 Thread Zhong Li
Return MFX_ERR_UNSUPPORTED for MFX_FOURCC_VP9_SEGMAP to force internal allocator. See https://github.com/Intel-Media-SDK/MediaSDK/issues/762 for more detail Signed-off-by: Zhong Li Signed-off-by: Haihao Xiang --- libavcodec/qsv.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a

[FFmpeg-devel] [PATCH] lavfi/normalize: remove the unused pointer

2019-09-29 Thread Zhong Li
Signed-off-by: Zhong Li --- libavfilter/vf_normalize.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavfilter/vf_normalize.c b/libavfilter/vf_normalize.c index 48eea59..d5cb536 100644 --- a/libavfilter/vf_normalize.c +++ b/libavfilter/vf_normalize.c @@ -143,14 +143,12 @@ static void

[FFmpeg-devel] [PATCH] lavc/qsv: fix a memory leak in ff_qsv_set_display_handle()

2019-09-29 Thread Zhong Li
Reported-by: Linjie Fu Signed-off-by: Zhong Li --- libavcodec/qsv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 994c9eb..a43f0d5 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -838,6 +838,8 @@ int ff_qsv_close_internal_session

[FFmpeg-devel] [PATCH 3/3] lavc/qsv: add memory type message

2019-09-19 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsv.c | 29 + libavcodec/qsv_internal.h | 3 +++ libavcodec/qsvdec.c | 2 ++ 3 files changed, 34 insertions(+) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 87ff694030..9c5a0647c9 100644 --- a

[FFmpeg-devel] [PATCH 2/3] lavc/qsv: Fix MSDK initialization failure in system memory mode

2019-09-19 Thread Zhong Li
MSDK does not create internal acceleration device on Linux, So MFXVideoCORE_SetHandle() is necessary. It has been added for ff_qsv_init_session_device(). But missed for ff_qsv_init_internal_session() due to commit 1f26a23 overwrited commit db89f45 Fix #7030 Signed-off-by: Zhong Li

[FFmpeg-devel] [PATCH 1/3] lavu/qsv: remove redundant version query

2019-09-19 Thread Zhong Li
Signed-off-by: Zhong Li --- libavutil/hwcontext_qsv.c | 5 - 1 file changed, 5 deletions(-) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 0329a81ec3..b1b67400de 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -1180,11 +1180,6 @@ static

[FFmpeg-devel] [PATCH] libavfilter/vaapi_transpose: Fix potential memory leak

2019-09-04 Thread Zhong Li
Fix CID: 1452760 Signed-off-by: Zhong Li --- libavfilter/vf_transpose_vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_transpose_vaapi.c b/libavfilter/vf_transpose_vaapi.c index 69dbdd7..a4c6542 100644 --- a/libavfilter/vf_transpose_vaapi.c +++ b

[FFmpeg-devel] [PATCH V2] lavu/qsv: remove the redundant libmfx init code

2019-09-04 Thread Zhong Li
Signed-off-by: Zhong Li --- libavutil/hwcontext_qsv.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 0329a81..1c0e4ff 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH 1/2] lavc/qsv: Fix MSDK initialization failure in system memory mode

2019-09-04 Thread Zhong Li
MSDK does not create internal acceleration device on Linux, So MFXVideoCORE_SetHandle() is necessary. It has been added for ff_qsv_init_session_device(). But missed for ff_qsv_init_internal_session() due to commit 1f26a23 overwrited commit db89f45 Fix #7030 Signed-off-by: Zhong Li

[FFmpeg-devel] [PATCH 2/2] lavu/qsv: remove the redundant libmfx init code

2019-09-04 Thread Zhong Li
Signed-off-by: Zhong Li --- libavutil/hwcontext_qsv.c | 21 - 1 file changed, 21 deletions(-) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 0329a81..802c842 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -1145,27 +1145,6

[FFmpeg-devel] [PATCH] lavfi/qsvvpp: disable pass through mode if format changed

2019-08-15 Thread Zhong Li
Fix tiket#8065 Signed-off-by: Zhong Li --- libavfilter/vf_vpp_qsv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c index f18513359a..858587411d 100644 --- a/libavfilter/vf_vpp_qsv.c +++ b/libavfilter/vf_vpp_qsv.c

[FFmpeg-devel] [PATCH 4/6] lavc/qsvdec: remove orignal parser code since not needed now

2019-08-12 Thread Zhong Li
Signed-off-by: Zhong Li --- configure | 10 +- libavcodec/qsvdec.c | 28 +--- libavcodec/qsvdec.h | 3 --- 3 files changed, 6 insertions(+), 35 deletions(-) diff --git a/configure b/configure index 3fb8f35..ddaaf80 100755 --- a/configure +++ b

[FFmpeg-devel] [PATCH 5/6] lavc/qsvdec: Add mjpeg decoder support

2019-08-12 Thread Zhong Li
Signed-off-by: Zhong Li --- Changelog | 3 +++ configure | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/qsvdec_other.c | 28 +++- 5 files changed, 33 insertions(+), 1 deletion(-) diff --git a

[FFmpeg-devel] [PATCH 6/6] lavc/qsvdec: Add VP9 decoder support

2019-08-12 Thread Zhong Li
VP9 decoder is support on Intel kabyLake+ platforms with MSDK Version 1.19+ Signed-off-by: Zhong Li --- Changelog | 1 + configure | 1 + libavcodec/allcodecs.c| 1 + libavcodec/qsv.c | 5 + libavcodec/qsvdec_other.c | 46

[FFmpeg-devel] [PATCH 3/6] lavc/qsvdec: Replace current parser with MFXVideoDECODE_DecodeHeader()

2019-08-12 Thread Zhong Li
ltion change. It can fix some regression issues such as hevc 10bits decoding. Signed-off-by: Zhong Li Signed-off-by: Dmitry Rogozhkin --- libavcodec/qsvdec.c | 184 -- libavcodec/qsvdec.h | 2 + libavcodec/qsvdec_h2645.c | 1 + libav

[FFmpeg-devel] [PATCH 2/6] lavc/qsv: make function qsv_map_fourcc() can be called externally

2019-08-12 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsv.c | 4 ++-- libavcodec/qsv_internal.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 437ef7c..533804a 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -207,7 +207,7 @@ int

[FFmpeg-devel] [PATCH 1/6] lavc/qsvdec: add function ff_qsv_map_picstruct()

2019-08-12 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsv.c | 18 ++ libavcodec/qsv_internal.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 986d4f6..437ef7c 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -245,6 +245,24

[FFmpeg-devel] [PATCH V3] fate: add a case for ticket #3229

2019-08-11 Thread Zhong Li
Signed-off-by: Zhong Li --- https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found by fate, so add it. Test clip produced by: ffmpeg -i tickets/3229/bad.avi -vframes 3 -c:v copy /fate-suite/mjpeg/mjpeg_field_order.avi tests/fate/video.mak| 3 +++ tests/ref

[FFmpeg-devel] [PATCH 2/2] lavfi/vf_vpp_qsv: add support for QSV transpose filter

2019-08-07 Thread Zhong Li
w_frames=64,format=qsv,vpp_qsv=transpose=cclock_hflip' -f rawvideo -pix_fmt nv12 ./transpose.yuv Signed-off-by: Linjie Fu Signed-off-by: Zhong Li --- libavfilter/vf_vpp_qsv.c | 101 ++- 1 file changed, 99 insertions(

[FFmpeg-devel] [PATCH 1/2] Revert "lavf/vf_vpp_qsv: add support for QSV transpose filter"

2019-08-07 Thread Zhong Li
This reverts commit af3ddd581faf2c3c4748ae589947c662b1a2271e. Revert it due to the uncorrect subject, should be: "lavf" -> "lavfi" --- libavfilter/vf_vpp_qsv.c | 101 +-- 1 file changed, 2 insertions(+), 99 deletions(-) diff --git a/libavfilter/vf_vpp_

[FFmpeg-devel] [PATCH] lavf/scale_qsv: change alignment to be 16 bytes

2019-07-30 Thread Zhong Li
32 bytes alignment is not needed and increases the failure possibilty of SFC (low power scaling mode) Signed-off-by: Zhong Li --- libavfilter/vf_scale_qsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c index

[FFmpeg-devel] [PATCH V2] fate: add a case for ticket #3229

2019-07-29 Thread Zhong Li
Signed-off-by: Zhong Li --- https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found by fate, so add it. Test clip produced by: ffmpeg -i tickets/3229/bad.avi -vframes 6 -c:v copy /fate-suite/mjpeg/mjpeg_field_order.avi tests/fate/video.mak| 3 +++ tests

[FFmpeg-devel] [PATCH] fate: add a case for ticket #3229

2019-07-14 Thread Zhong Li
Signed-off-by: Zhong Li --- https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found by fate, so add it. Test clip produced by: ffmpeg -i tickets/3229/bad.avi -vframes 20 -c:v copy /fate-suite/mjpeg/mjpeg_field_order.avi tests/fate/video.mak| 3 +++ tests

[FFmpeg-devel] [PATCH] lavc: Add libsvt-av1 encoder wrapper

2019-07-12 Thread Zhong Li
From: Daryl Seah Signed-off-by: Daryl Seah Signed-off-by: Jing SUN Signed-off-by: ZhiZhen Tang Signed-off-by: Zhong Li --- It is part of requirement from ticket #7914. Since SVT-AV1 library is not stable, this patch is not ready to be merged but just call for comments of this wrapper and SVT

[FFmpeg-devel] [Patch V2] lavc/qsvenc: fix the incorrent map from bits to bytes

2019-06-27 Thread Zhong Li
Reported-by:Maggie Sun Signed-off-by: Zhong Li --- V2: bump an new micro version since it changes the API usage. libavcodec/qsvenc.c | 2 +- libavcodec/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 8dbad71

[FFmpeg-devel] [PATCH 3/3] qsvdec: add mjpeg decoding support

2019-06-27 Thread Zhong Li
Only baseline profile and NV12 output format supported right now. --- Changelog | 1 + configure | 2 ++ libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/qsv.c | 2 ++ libavcodec/qsvdec.c | 2 ++ libavcodec/qsvdec.h

[FFmpeg-devel] [PATCH 2/3] lavc/mjpeg_parser: use ff_mjpeg_decode_header to parse frame info

2019-06-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/mjpeg_parser.c | 158 +- 1 file changed, 157 insertions(+), 1 deletion(-) diff --git a/libavcodec/mjpeg_parser.c b/libavcodec/mjpeg_parser.c index 07a6b2b..f59aa3e 100644 --- a/libavcodec/mjpeg_parser.c +++ b

[FFmpeg-devel] [PATCH 1/3] lavc/mjpegdec: add function ff_mjpeg_decode_header

2019-06-27 Thread Zhong Li
It will be reused in the following mjpeg_parser patch Signed-off-by: Zhong Li --- Mark Thompson: This seems suspicious - MJPEG is generally 4:2:2 (e.g. UVC requires it), so I would expect a 4:2:2 format to be the default here? (Or maybe a longer list - VAAPI certainly supports 4:2:2, 4:2:0

[FFmpeg-devel] [PATCH 1/2] lavc/mjpegdec: replace number with marker name

2019-06-27 Thread Zhong Li
Make it easier to read. Signed-off-by: Zhong Li --- libavcodec/mjpegdec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 20eeb96..1030861 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2115,7

[FFmpeg-devel] [PATCH 2/2] lavc/mjpegdec: make code aligned

2019-06-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/mjpegdec.c | 450 +- 1 file changed, 225 insertions(+), 225 deletions(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 1030861..a65bc8d 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec

[FFmpeg-devel] [PATCH] lavc/qsvenc: fix the incorrent map from bits to bytes

2019-06-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 8dbad71..9bf8574 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -577,7 +577,7 @@ static int init_video_param

[FFmpeg-devel] [Patch V2] lavf/qsv_scale: add scaling modes support

2019-06-18 Thread Zhong Li
null - fps=343 RENDER usage: 0.00 Low power mode (SFC) may be disabled if not supported by MSDK/Driver/HW, and replaced by AVS mode interanlly. Signed-off-by: Zhong Li --- libavfilter/vf_scale_qsv.c | 40 +++- 1 file changed, 35 insertions(+), 5 deletions

[FFmpeg-devel] [PATCH] lavf/qsvvpp: add extra_hw_frames support

2019-06-05 Thread Zhong Li
-c:v h264_qsv \ -look_ahead 1 -look_ahead_depth 100 out1.mp4 ) Signed-off-by: Zhong Li --- libavfilter/qsvvpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 62b91d6..49cb1ed 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c

[FFmpeg-devel] [PATCH 3/3] lavf/qsv: use av_cold for init/uninit

2019-05-31 Thread Zhong Li
Signed-off-by: Zhong Li --- libavfilter/vf_deinterlace_qsv.c | 2 +- libavfilter/vf_overlay_qsv.c | 2 +- libavfilter/vf_scale_qsv.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_deinterlace_qsv.c b/libavfilter/vf_deinterlace_qsv.c index

[FFmpeg-devel] [PATCH 2/3] lavf/qsvvpp: add P010 output format support

2019-05-31 Thread Zhong Li
Signed-off-by: Zhong Li --- libavfilter/qsvvpp.c | 1 + libavfilter/vf_vpp_qsv.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 5cd1d5d345..fc24426b75 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -153,6 +153,7

[FFmpeg-devel] [PATCH 1/3] lavf/qsv_vpp: add frame format option

2019-05-31 Thread Zhong Li
1. Currently output format is hard-coded as NV12, thus means CSC is always done for not NV12 input such as P010. Follow original input format as default output. 2. Add an option to specify output format. Signed-off-by: Zhong Li --- libavfilter/vf_vpp_qsv.c | 37

[FFmpeg-devel] [PATCH 2/3] lavc/qsvdec: fix hevc level incorrectly map

2019-04-30 Thread Zhong Li
libmfx hevc level defination is same as h264, not level_idc of SPEC. Signed-off-by: Zhong Li --- libavcodec/qsv.c | 13 + libavcodec/qsv_internal.h | 1 + libavcodec/qsvdec.c | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libavcodec/qsv.c b

[FFmpeg-devel] [PATCH 3/3] lavc/qsv: extactly map profile

2019-04-30 Thread Zhong Li
Currently profile mapping is hard-coded, and not flexible to do extactly map (E.g: libmfx treats H264 constrained baseline to be baseline profile). vaapi profile mapping funtion provides a better soultion than current qsv mapping. Signed-off-by: Zhong Li --- libavcodec/qsv.c | 52

[FFmpeg-devel] [PATCH 1/3] lavc/qsvdec: add query function and provide error message

2019-04-30 Thread Zhong Li
It is helpful to know why some clips decoding failed. Ticket#7330 is a good example, with this patch it is easily to know bitstream codec level is out of support range. Signed-off-by: Zhong Li --- libavcodec/qsvdec.c | 33 + 1 file changed, 33 insertions(+) diff

[FFmpeg-devel] [PATCH] lavc/qsvenc: disable CO3 for mpeg2

2019-04-28 Thread Zhong Li
Currenntly there is no any function of CO3 appled to mpeg2, and enabling for mpeg2 it will cause regression with some old libmfx libaries (see tiket #7839), so disable CO3 for mpeg2. Also add runtime version check for CO3. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 13 - 1

  1   2   3   >