[FFmpeg-devel] [PATCH v4 3/3] avutil/hwcontext_qsv: fix mapping issue between QSV frames and D3D11VA frames

2022-05-05 Thread Tong Wu
Fixes: $ ffmpeg.exe -init_hw_device d3d11va=d3d11 -init_hw_device \ qsv=qsv@d3d11 -s:v WxH -pix_fmt nv12 -i input.yuv -vf \ "hwupload=extra_hw_frames=16,hwmap=derive_device=d3d11va,format=d3d11,\ hwmap=derive_device=qsv,format=qsv" -f null - Signed-off-by: Tong Wu --- libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH v4 2/3] avutil/hwcontext_d3d11va: pass the format value from outside for staging texture

2022-05-05 Thread Tong Wu
In d3d11va_create_staging_texture(), during the hwmap process, the ctx->internal->priv is not initialized, resulting in the texDesc.Format not initialized. Now pass the format value from d3d11va_transfer_data() to fix it. $ ffmpeg.exe -y -hwaccel qsv -init_hw_device d3d11va=d3d11 \

[FFmpeg-devel] [PATCH v4 1/3] avutil/hwcontext_qsv: derive QSV frames to D3D11VA frames

2022-05-05 Thread Tong Wu
Fixes: $ ffmpeg.exe -y -hwaccel qsv -init_hw_device d3d11va=d3d11 \ -init_hw_device qsv=qsv@d3d11 -c:v h264_qsv -i input.h264 \ -vf "hwmap=derive_device=d3d11va,format=d3d11" -f null - Signed-off-by: Tong Wu --- libavutil/hwcontext_qsv.c | 16 +--- 1 file changed, 13 insertions(+),

Re: [FFmpeg-devel] [PATCH v2 1/5] avutil/hwcontext_d3d11va: fix the uninitialized texture bindflag

2022-05-05 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Hendrik Leppkes > Sent: Friday, May 6, 2022 7:38 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v2 1/5] avutil/hwcontext_d3d11va: > fix the uninitialized texture

[FFmpeg-devel] [PATCH] libavcodec/qsvenc: add ROI support to qsv encoder

2022-05-05 Thread Wenbin Chen
Use the mfxEncoderCtrl parameter to enable ROI. Get side data "AVRegionOfInterest" from filter "addroi" and use it to configure "mfxExtEncoderROI" which is the MediaSDK's ROI configuration. Signed-off-by: Wenbin Chen --- libavcodec/qsv_internal.h | 4 ++ libavcodec/qsvenc.c | 88

Re: [FFmpeg-devel] [PATCH v2 1/5] avutil/hwcontext_d3d11va: fix the uninitialized texture bindflag

2022-05-05 Thread Hendrik Leppkes
On Fri, May 6, 2022 at 3:11 AM Soft Works wrote: > > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of Wu, > > Tong1 > > Sent: Thursday, May 5, 2022 11:50 AM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] [PATCH v2 1/5]

[FFmpeg-devel] [PATCH] libavcodec/qsvenc: Add min/max QP control options for I/P/B frame

2022-05-05 Thread Wenbin Chen
From: Yue Heng To do more accurate QP control, add min/max QP control on I/P/B frame separately to qsv encoder. qmax and qmin still work but newly-added options have higher priority. Signed-off-by: Yue Heng Signed-off-by: Wenbin Chen --- doc/encoders.texi | 18 ++

Re: [FFmpeg-devel] [PATCH v2 1/5] avutil/hwcontext_d3d11va: fix the uninitialized texture bindflag

2022-05-05 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Wu, > Tong1 > Sent: Thursday, May 5, 2022 11:50 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v2 1/5] avutil/hwcontext_d3d11va: > fix the uninitialized texture bindflag

Re: [FFmpeg-devel] [PATCH v3 1/4] avutil/hwcontext_qsv: derive QSV frames to D3D11VA frames

2022-05-05 Thread Wu, Tong1
> -Original Message- > From: Soft Works > Sent: Thursday, May 5, 2022 7:53 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Cc: Wu, Tong1 > Subject: RE: [FFmpeg-devel] [PATCH v3 1/4] avutil/hwcontext_qsv: derive > QSV frames to D3D11VA frames > > > > >

[FFmpeg-devel] [PATCH] avformat/oggparsevorbis: Fix oggvorbis duration parsing for small files

2022-05-05 Thread Guangyu Sun
The decoded Data is not returned from the first frame; it must be used to 'prime' the decode engine. The duration of the first packet should be ignored also by the container, to make sure the total duration is trimmed correctly. If the file has multiple pages for the data packets. The duration of

Re: [FFmpeg-devel] [PATCH v11 1/6] libavutil/wchar_filename.h: Add whcartoutf8, wchartoansi and utf8toansi

2022-05-05 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of nil- > admir...@mailo.com > Sent: Thursday, May 5, 2022 10:20 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v11 1/6] > libavutil/wchar_filename.h: Add whcartoutf8, wchartoansi and > utf8toansi [..] > As a

Re: [FFmpeg-devel] Merge QSV decoder SEI patch into master?

2022-05-05 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Vladislav Sorkin > Sent: Thursday, May 5, 2022 10:48 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] Merge QSV decoder SEI patch into master? > > Would it be possible to merge the following patch into the master >

Re: [FFmpeg-devel] [PATCH 1/3] avfilter/vf_libplacebo: Match AV_OPT_TYPE_FLOAT to dbl

2022-05-05 Thread Michael Niedermayer
On Wed, May 04, 2022 at 11:49:01PM +0800, myp...@gmail.com wrote: > On Wed, May 4, 2022 at 11:37 PM Michael Niedermayer > wrote: > > > > Signed-off-by: Michael Niedermayer > > --- > > libavfilter/vf_libplacebo.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git

Re: [FFmpeg-devel] [PATCH] avfilter/alimiter: Add an option "comp_delay" that removes the delay introduced by lookahead buffer

2022-05-05 Thread Wang Cao
On Mon, May 2, 2022 at 1:24 AM Paul B Mahol wrote: > On Fri, Apr 29, 2022 at 10:49 PM Wang Cao < > wangcao-at-google@ffmpeg.org> > wrote: > > > On Fri, Apr 15, 2022 at 11:50 AM Wang Cao wrote: > > > > > 1. The option also flushes all the valid audio samples in the lookahead > > >buffer

[FFmpeg-devel] [PATCH] avfilter/alimiter:add latency compensation

2022-05-05 Thread Wang Cao
Also added 2 FATE tests to verify delay is compenated correctly Signed-off-by: Wang Cao --- doc/filters.texi| 5 +++ libavfilter/af_alimiter.c | 90 + tests/fate/filter-audio.mak | 24 -- 3 files changed, 116 insertions(+), 3

[FFmpeg-devel] Merge QSV decoder SEI patch into master?

2022-05-05 Thread Vladislav Sorkin
Would it be possible to merge the following patch into the master branch? https://patchwork.ffmpeg.org/project/ffmpeg/patch/dm8p223mb03655f44a7bf01132bb2959dba...@dm8p223mb0365.namp223.prod.outlook.com/ This patch provides the QSV decoder with SEI message and ATSC A/53 caption capability. I

Re: [FFmpeg-devel] [PATCH v11 1/6] libavutil/wchar_filename.h: Add whcartoutf8, wchartoansi and utf8toansi

2022-05-05 Thread nil-admirari
> Yes, because there is no realistic case in which ffmpeg will need > to load any dll from a long path. > I've asked you multiple times to give an example. Managed to find time to actually test: https://postimg.cc/F1C64nq1. Windows 10 21H2 LTSC, long paths are enabled and 8.3 paths are disabled

[FFmpeg-devel] [PATCH v5 2/2] avcodec/libjxlenc: properly read input colorspace

2022-05-05 Thread Leo Izen
Whether an ICC profile is present or not, the libjxl encoder wrapper should now properly read colorspace tags and forward them to libjxl appropriately, rather than just assume sRGB as before. It will also print warnings when colorimetric assumptions are made about the input data. ---

[FFmpeg-devel] [PATCH v5 1/2] avcodec/libjxldec: properly tag output colorspace

2022-05-05 Thread Leo Izen
Whether an ICC profile is present or not, the decoder should now properly tag the colorspace of pixel data received by the decoder. --- libavcodec/libjxldec.c | 113 ++--- 1 file changed, 105 insertions(+), 8 deletions(-) diff --git a/libavcodec/libjxldec.c

[FFmpeg-devel] [PATCH v5 0/2] JPEG XL Colorspace Fixes

2022-05-05 Thread Leo Izen
Changes v5: - fix attaching ICCP even if an enum can accurately describe the colorspace v4: - fix a typo. bluh v3: - some cosmetic changes - properly handle P3 spaces - properly handle PQ transfer v2: - avoid misusing AVMasteringDisplayMetadata - ignore custom primaries in header (very rare

Re: [FFmpeg-devel] [PATCH 1/2] fate/lavf-audio: Disable CRC for lavf-peak_only.wav test

2022-05-05 Thread Andreas Rheinhardt
Andreas Rheinhardt: > The output of this test is just a file containing the positions > of peaks; it is not a wave file and trying to demuxing it just > returns AVERROR_INVALIDDATA; said error has just been ignored > as the return value from do_avconv_crc is the return value from echo. > >

Re: [FFmpeg-devel] [PATCH] avformat/avformat: Schedule AVOutputFormat.data_codec for removal

2022-05-05 Thread Diederick C. Niehorster
Hi Andreas, On Thu, May 5, 2022 at 2:47 PM Andreas Rheinhardt wrote: > > No AVOutputFormat has this set. It is not removed immediately despite > being private because of the libavdevice<->libavformat situation. > The fact that this field is private is also the reason why no FF_API_* > define has

[FFmpeg-devel] [PATCH] avformat/avformat: Schedule AVOutputFormat.data_codec for removal

2022-05-05 Thread Andreas Rheinhardt
No AVOutputFormat has this set. It is not removed immediately despite being private because of the libavdevice<->libavformat situation. The fact that this field is private is also the reason why no FF_API_* define has been added. Signed-off-by: Andreas Rheinhardt --- libavformat/avformat.h | 2

Re: [FFmpeg-devel] [PATCH v3 4/4] avutil/hwcontext_qsv: map D3D11VA frames to QSV frames

2022-05-05 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Tong > Wu > Sent: Thursday, May 5, 2022 12:53 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Tong Wu > Subject: [FFmpeg-devel] [PATCH v3 4/4] avutil/hwcontext_qsv: map > D3D11VA frames to QSV frames > > Fixes: > $ ffmpeg.exe

Re: [FFmpeg-devel] [PATCH v3 1/4] avutil/hwcontext_qsv: derive QSV frames to D3D11VA frames

2022-05-05 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Tong > Wu > Sent: Thursday, May 5, 2022 12:53 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Tong Wu > Subject: [FFmpeg-devel] [PATCH v3 1/4] avutil/hwcontext_qsv: derive > QSV frames to D3D11VA frames > > Fixes: > $ ffmpeg.exe -y

Re: [FFmpeg-devel] [PATCH v15 4/4] avformat/image2: add Jpeg XL as image2 format

2022-05-05 Thread Mark Gaiser
On Thu, May 5, 2022 at 5:49 AM Leo Izen wrote: > On 5/4/22 17:56, Mark Gaiser wrote: > > Hi, > > > > I might have found a bug here. Or I might not be using it correctly, > that's > > entirely possible too! > > What i try is just making an animated jxl from a bunch of input images. > > Currently

[FFmpeg-devel] [PATCH v3 3/4] avutil/hwcontext_qsv: map QSV frames to D3D11VA frames

2022-05-05 Thread Tong Wu
When input is a rawvideo, after mapping QSV frames to D3D11VA frames, the output will have green frames. Now fix it. Fixes: $ ffmpeg.exe -y -init_hw_device d3d11va=d3d11 \ -init_hw_device qsv=qsv@d3d11 -s:v WxH -pix_fmt nv12 -i input.yuv \ -vf "format=nv12,hwupload=extra_hw_frames=16,\

[FFmpeg-devel] [PATCH v3 2/4] avutil/hwcontext_d3d11va: pass the format value from outside for staging texture

2022-05-05 Thread Tong Wu
In d3d11va_create_staging_texture(), during the hwmap process, the ctx->internal->priv is not initialized, resulting in the texDesc.Format not initialized. Now pass the format value from d3d11va_transfer_data() to fix it. $ ffmpeg.exe -y -hwaccel qsv -init_hw_device d3d11va=d3d11 \

[FFmpeg-devel] [PATCH v3 4/4] avutil/hwcontext_qsv: map D3D11VA frames to QSV frames

2022-05-05 Thread Tong Wu
Fixes: $ ffmpeg.exe -init_hw_device d3d11va=d3d11 -init_hw_device \ qsv=qsv@d3d11 -s:v WxH -pix_fmt nv12 -i input.yuv -vf \ "hwupload=extra_hw_frames=16,hwmap=derive_device=d3d11va,format=d3d11,\ hwmap=derive_device=qsv,format=qsv" -f null - Signed-off-by: Tong Wu --- libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH v3 1/4] avutil/hwcontext_qsv: derive QSV frames to D3D11VA frames

2022-05-05 Thread Tong Wu
Fixes: $ ffmpeg.exe -y -hwaccel qsv -init_hw_device d3d11va=d3d11 \ -init_hw_device qsv=qsv@d3d11 -c:v h264_qsv -i input.h264 \ -vf "hwmap=derive_device=d3d11va,format=d3d11" -f null - Signed-off-by: Tong Wu --- libavutil/hwcontext_qsv.c | 15 +-- 1 file changed, 13 insertions(+), 2

[FFmpeg-devel] [PATCH 3/3] fate/matroska: Add tests for muxing PGS into Matroska

2022-05-05 Thread Andreas Rheinhardt
They test the new pgs_frame_merge BSF. Signed-off-by: Andreas Rheinhardt --- tests/fate/matroska.mak | 8 tests/ref/fate/matroska-pgs-remux | 7 +++ tests/ref/fate/matroska-pgs-remux-durations | 7 +++ 3 files changed, 22 insertions(+) create mode

[FFmpeg-devel] [PATCH 2/3] lavf/matroskaenc: enable PGS merge auto bsf

2022-05-05 Thread Andreas Rheinhardt
From: John Stebbins PGS segments must be merged to one packet for muxing to mkv Signed-off-by: Andreas Rheinhardt --- configure | 2 +- libavformat/matroskaenc.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index

[FFmpeg-devel] [PATCH 1/3] lavc/pgs_frame_merge_bsf: add bsf to merge PGS segments

2022-05-05 Thread Andreas Rheinhardt
From: John Stebbins Required to remux m2ts to mkv Minor changes and porting to FFBitStreamFilter done by the committer. Signed-off-by: Andreas Rheinhardt --- Changelog| 1 + doc/bitstream_filters.texi | 8 ++ libavcodec/Makefile | 1 +

Re: [FFmpeg-devel] [PATCH v2 1/5] avutil/hwcontext_d3d11va: fix the uninitialized texture bindflag

2022-05-05 Thread Wu, Tong1
> > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Hendrik Leppkes > > Sent: Sunday, May 1, 2022 5:54 PM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] [PATCH v2 1/5] avutil/hwcontext_d3d11va: > > fix the uninitialized

[FFmpeg-devel] [PATCH v7 2/2] doc/vaapi_encode: add documentations for max_frame_size

2022-05-05 Thread Fei Wang
From: Linjie Fu Add docs for max_frame_size option. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- doc/encoders.texi | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 966032a720..43f6288e33 100644 --- a/doc/encoders.texi +++

[FFmpeg-devel] [PATCH v7 1/2] lavc/vaapi_encode: add support for maxframesize

2022-05-05 Thread Fei Wang
From: Linjie Fu Add support for max frame size: - max_frame_size (bytes) to indicate the max allowed size for frame. Control each encoded frame size into target limitation size by adjusting whole frame's average QP value. The driver will use multi passes to adjust average QP setp by step to

Re: [FFmpeg-devel] [PATCH v6 1/2] lavc/vaapi_encode: add support for maxframesize

2022-05-05 Thread Wang, Fei W
> -Original Message- > From: ffmpeg-devel On Behalf Of Mark > Thompson > Sent: Saturday, April 30, 2022 10:56 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v6 1/2] lavc/vaapi_encode: add support for > maxframesize > > On 29/04/2022 08:31, Fei Wang wrote: > > From: