Re: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands

2022-03-29 Thread Paul B Mahol
will apply ___ 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".

[FFmpeg-devel] [PATCH v2] libavcodec/cbs_av1: Add size check before parse obu

2022-03-29 Thread Wenbin Chen
cbs_av1_write_unit() check pbc size after parsing obu frame, and return AVERROR(ENOSPC) if pbc is small. pbc will be reallocated and this obu frame will be parsed again, but this may cause error because CodedBitstreamAV1Context has already been updated, for example ref_order_hint is updated and wil

[FFmpeg-devel] WebRTC Support for FFmpeg - Join the One Question Survey

2022-03-29 Thread ahmet oğuz mermerkaya
Hi Guys, I'm wondering what you are thinking about adding WebRTC Support to FFmpeg. We're developing solutions by using native codes in FFmpeg and WebRTC. So life will be easy for us if there is WebRTC support for FFmpeg. I mean we can try to implement this support if there is no ongoing work on

Re: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands

2022-03-29 Thread Nicolas George
Paul B Mahol (12022-03-29): > will apply No objection. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visi

[FFmpeg-devel] How to set segment size limit for .ts files

2022-03-29 Thread Preeti Dantkale
Hello Team, How to set segment size limit for .ts files? The chunks created are larger files, we want to restrict the size of chunks to KBS. Can you please guide us? Kindly revert. -- Preeti Dantkale, Software Engineer, Josh Software Pvt. Ltd. -- _

Re: [FFmpeg-devel] [PATCH 01/10] checkasm: Add vc1dsp in-loop deblocking filter tests

2022-03-29 Thread Martin Storsjö
On Mon, 28 Mar 2022, Ben Avison wrote: On 25/03/2022 22:53, Martin Storsjö wrote: On Fri, 25 Mar 2022, Ben Avison wrote: +#define CHECK_LOOP_FILTER(func) \ +    do {    \ +    if (

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

2022-03-29 Thread Xiang, Haihao
On Tue, 2022-03-22 at 22:11 +0800, Fei Wang wrote: > From: Linjie Fu > > Add support for max frame size: > - max_frame_size (bytes) to indicate the max allowed size for frame. > > If the frame size exceeds the limitation, encoder will to control the frame > size by adjusting QP value. >

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add Niklas Haas for vf_libplacebo.c

2022-03-29 Thread Niklas Haas
On Tue, 29 Mar 2022 01:12:36 +0200 Lynne wrote: > 28 Mar 2022, 23:13 by ffm...@haasn.xyz: > > > On Mon, 28 Mar 2022 22:31:36 +0200 Lynne wrote: > > > >> I'm not okay with this. I don't mind anyone pushing approved patches, > >> but I still want to review and have final say on all Vulkan code. Co

[FFmpeg-devel] [PATCH] doc/filters: document vf_libplacebo

2022-03-29 Thread Niklas Haas
From: Niklas Haas Signed-off-by: Niklas Haas --- Note: This reflects the state assuming this patch is applied: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20220325151118.42130-1-ffm...@haasn.xyz/ I'm sending it for review. --- doc/filters.texi | 486 ++

Re: [FFmpeg-devel] [PATCH 01/10] checkasm: Add vc1dsp in-loop deblocking filter tests

2022-03-29 Thread Martin Storsjö
On Fri, 25 Mar 2022, Ben Avison wrote: Note that the benchmarking results for these functions are highly dependent upon the input data. Therefore, each function is benchmarked twice, corresponding to the best and worst case complexity of the reference C implementation. The performance of a real

Re: [FFmpeg-devel] [PATCH 02/10] checkasm: Add vc1dsp inverse transform tests

2022-03-29 Thread Martin Storsjö
On Fri, 25 Mar 2022, Ben Avison wrote: This test deliberately doesn't exercise the full range of inputs described in the committee draft VC-1 standard. It says: input coefficients in frequency domain, D, satisfy -2048 <= D < 2047 intermediate coefficients, E, satisfy-4096 <= E

Re: [FFmpeg-devel] [PATCH 01/10] checkasm: Add vc1dsp in-loop deblocking filter tests

2022-03-29 Thread Martin Storsjö
On Fri, 25 Mar 2022, Ben Avison wrote: Note that the benchmarking results for these functions are highly dependent upon the input data. Therefore, each function is benchmarked twice, corresponding to the best and worst case complexity of the reference C implementation. The performance of a real

[FFmpeg-devel] [PATCH] vc1dsp: Change remaining stride parameters to ptrdiff_t

2022-03-29 Thread Martin Storsjö
The existing x86 assembly for loop filters uses the stride as a full register without clearing/sign extending the upper half of the registers on x86_64. This avoids crashes if the caller would have passed nonzero bits in the previously undefined upper 32 bits of the parameters. Signed-off-by: Mar

Re: [FFmpeg-devel] [PATCH v5 1/4] lavc/vaapi_encode_h265: Add GPB frame support for hevc_vaapi

2022-03-29 Thread Xiang, Haihao
On Thu, 2022-03-17 at 14:41 +0800, Fei Wang wrote: > From: Linjie Fu > > Use GPB frames to replace regular P/B frames if backend driver does not > support it. > > - GPB: > Generalized P and B picture. Regular P/B frames replaced by B > frames with previous-predict only, L0 == L1. Normal

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libsvtav1: clean up unconditional override of avctx bit rate

2022-03-29 Thread lance . lmwang
On Sun, Mar 27, 2022 at 09:02:11PM +0300, Jan Ekström wrote: > This value is only documented to be utilized if rate control is > set to one of the bit rate based modes. These modes are not the > default and thus the wrapper itself configures a bit rate according > to the avctx if bit rate based enc

Re: [FFmpeg-devel] [PATCH 03/10] checkasm: Add idctdsp add/put-pixels-clamped tests

2022-03-29 Thread Martin Storsjö
On Fri, 25 Mar 2022, Ben Avison wrote: Disable ff_add_pixels_clamped_arm, which was found to fail the test. As this is normally only used for Arms prior to Armv6 (ARM11) it seems quite unlikely that anyone is still using this, so I haven't put in the effort to debug it. I had a look at this fu

Re: [FFmpeg-devel] [PATCH] avformat/libsrt: fix deprecated warning

2022-03-29 Thread lance . lmwang
On Fri, Mar 25, 2022 at 03:39:04PM +0800, Zhao Zhili wrote: > srt_socket was deprecated after 1.4.1. > --- > libavformat/libsrt.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c > index 19b9cb9895..1610ce8318 100644 > --- a/libavformat/libs

Re: [FFmpeg-devel] web/consulting: add myself

2022-03-29 Thread Tomas Härdin
sön 2022-03-27 klockan 10:02 +0530 skrev Gyan Doshi: > > > On 2022-03-27 05:15 am, Michael Niedermayer wrote: > > On Thu, Mar 24, 2022 at 03:53:56PM +0100, Tomas Härdin wrote: > > >   consulting |   12 > > >   1 file changed, 12 insertions(+) > > > 901f8f38d654798a4fcb579ac2e50c0a443

[FFmpeg-devel] web/consulting: Obfuscate email a bit

2022-03-29 Thread Tomas Härdin
Trying to keep my biz emails relatively free of spam From 51071ad87c47e0231b3d364adfe78c2ccbf9ad6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Tue, 29 Mar 2022 15:18:06 +0200 Subject: [PATCH] web/consulting: Obfuscate email a bit --- src/consulting | 2 +- 1 file changed

Re: [FFmpeg-devel] [PATCH] libavutil/hwcontext_vaapi: Re-enable support for libva v1

2022-03-29 Thread Xiang, Haihao
On Fri, 2022-03-11 at 13:24 +0100, Ingo Brückl wrote: > Commit e050959103f375e6494937fa28ef2c4d2d15c9ef implemented passing in > modifiers by using the PRIME_2 memory type, which only exists in v2 of > the library. > > To still support v1 of the library, conditionally compile using > VA_CHECK_VERS

Re: [FFmpeg-devel] FFmpeg 5.0.1

2022-03-29 Thread Oneric
On Tue, Mar 29, 2022 at 01:31:02 +0200, Michael Niedermayer wrote: > I intend to do a 5.0.1 release from the release/5.0 branch in the next days > as its high time to make a new release with all the bugfixes > so if you want to backport something please do so How about the recent fix for vf_subtit

Re: [FFmpeg-devel] [PATCH] avcodec/binkaudio: reset ch_offset on errors

2022-03-29 Thread Michael Niedermayer
On Mon, Mar 28, 2022 at 09:24:05PM +0200, Paul B Mahol wrote: > lgtm will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you fake or manipulate statistics in a paper in physics you will never get a job again. If you fake or manipulate statistics i

[FFmpeg-devel] [PATCH] avformat/mov: fix missing extra data updating

2022-03-29 Thread Zhao Zhili
The stsc_index is checked and updated for the next sample. If the next sample needs to update stsd_index and stsc_index, then only stsc_index is updated, which leads to a missing AV_PKT_DATA_NEW_EXTRADATA. For example, the sample in the second chunk needs to update both. entry[0] first_chunk =

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/wmalosslessdec: Check channel mask against num channels

2022-03-29 Thread Michael Niedermayer
On Sat, Mar 19, 2022 at 06:52:34PM +0100, Michael Niedermayer wrote: > On Fri, Mar 18, 2022 at 08:38:28AM -0300, James Almer wrote: > > > > > > On 3/18/2022 8:27 AM, Michael Niedermayer wrote: > > > On Thu, Mar 17, 2022 at 10:00:18PM -0300, James Almer wrote: > > > > > > > > > > > > On 3/17/202

Re: [FFmpeg-devel] [PATCH] vc1dsp: Change remaining stride parameters to ptrdiff_t

2022-03-29 Thread Ben Avison
On 29/03/2022 13:44, Martin Storsjö wrote: The existing x86 assembly for loop filters uses the stride as a full register without clearing/sign extending the upper half of the registers on x86_64. This avoids crashes if the caller would have passed nonzero bits in the previously undefined upper 3

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/wmalosslessdec: Check channel mask against num channels

2022-03-29 Thread James Almer
On 3/29/2022 4:02 PM, Michael Niedermayer wrote: On Sat, Mar 19, 2022 at 06:52:34PM +0100, Michael Niedermayer wrote: On Fri, Mar 18, 2022 at 08:38:28AM -0300, James Almer wrote: On 3/18/2022 8:27 AM, Michael Niedermayer wrote: On Thu, Mar 17, 2022 at 10:00:18PM -0300, James Almer wrote:

Re: [FFmpeg-devel] [PATCH 03/10] checkasm: Add idctdsp add/put-pixels-clamped tests

2022-03-29 Thread Martin Storsjö
On Tue, 29 Mar 2022, Martin Storsjö wrote: On Fri, 25 Mar 2022, Ben Avison wrote: Disable ff_add_pixels_clamped_arm, which was found to fail the test. As this is normally only used for Arms prior to Armv6 (ARM11) it seems quite unlikely that anyone is still using this, so I haven't put in the

Re: [FFmpeg-devel] [PATCH 03/10] checkasm: Add idctdsp add/put-pixels-clamped tests

2022-03-29 Thread Ben Avison
On 29/03/2022 14:13, Martin Storsjö wrote: On Fri, 25 Mar 2022, Ben Avison wrote: Disable ff_add_pixels_clamped_arm, which was found to fail the test. I had a look at this function, and I see that the overflow checks are using     tst r6,  #0x100 to see whether the addition

Re: [FFmpeg-devel] [PATCH 03/10] checkasm: Add idctdsp add/put-pixels-clamped tests

2022-03-29 Thread Martin Storsjö
On Tue, 29 Mar 2022, Ben Avison wrote: Thirdly - the added test also occasionally fails for the other existing functions (armv6, neon) and the newly added aarch64 neon version. If you have e.g. src[] = 32767, dst[] = 255, then the widening 8->16 addition will overflow, as there's no operation

Re: [FFmpeg-devel] [PATCH 04/10] avcodec/vc1: Introduce fast path for unescaping bitstream buffer

2022-03-29 Thread Martin Storsjö
On Fri, 25 Mar 2022, Ben Avison wrote: void ff_vc1dsp_init(VC1DSPContext* c); diff --git a/tests/checkasm/vc1dsp.c b/tests/checkasm/vc1dsp.c index 0823ccad31..0ab5892403 100644 --- a/tests/checkasm/vc1dsp.c +++ b/tests/checkasm/vc1dsp.c @@ -286,6 +286,20 @@ static matrix *generate_inverse_quant

Re: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for commands

2022-03-29 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Paul > B Mahol > Sent: Friday, March 25, 2022 12:19 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH] avfilter/f_realtime: add support for > commands > > Signed-off-by: Paul B Mahol > --- > doc/filters.texi

[FFmpeg-devel] [PATCH v2] vc1dsp: Change remaining stride parameters to ptrdiff_t

2022-03-29 Thread Martin Storsjö
The existing x86 assembly for loop filters uses the stride as a full register without clearing/sign extending the upper half of the registers on x86_64. This avoids crashes if the caller would have passed nonzero bits in the previously undefined upper 32 bits of the parameters. Signed-off-by: Mar

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: enable dynamic max quantizer parameter reconfiguration

2022-03-29 Thread James Zern
On Mon, Mar 28, 2022 at 7:05 AM Danil Chapovalov wrote: > > On Thu, Mar 24, 2022 at 7:27 PM James Zern wrote: > > > > On Thu, Mar 24, 2022 at 6:12 AM Danil Chapovalov > > wrote: > > > > > > --- > > > libavcodec/libvpxenc.c | 6 ++ > > > 1 file changed, 6 insertions(+) > > > > > > diff --git

Re: [FFmpeg-devel] FFmpeg 5.0.1

2022-03-29 Thread Michael Niedermayer
On Tue, Mar 29, 2022 at 01:40:26AM +0200, Diederick C. Niehorster wrote: > Hi Michael, > > On Tue, Mar 29, 2022 at 1:31 AM Michael Niedermayer > wrote: > > > > Hi all > > > > I intend to do a 5.0.1 release from the release/5.0 branch in the next days > > as its high time to make a new release wit

Re: [FFmpeg-devel] FFmpeg 5.0.1

2022-03-29 Thread Diederick C. Niehorster
Hi Michael, On Tue, Mar 29, 2022 at 11:08 PM Michael Niedermayer wrote: > > On Tue, Mar 29, 2022 at 01:40:26AM +0200, Diederick C. Niehorster wrote: > > Hi Michael, > > > > On Tue, Mar 29, 2022 at 1:31 AM Michael Niedermayer > > wrote: > > > > > > Hi all > > > > > > I intend to do a 5.0.1 releas

Re: [FFmpeg-devel] FFmpeg 5.0.1

2022-03-29 Thread Michael Niedermayer
On Tue, Mar 29, 2022 at 11:12:47PM +0200, Diederick C. Niehorster wrote: > Hi Michael, > > On Tue, Mar 29, 2022 at 11:08 PM Michael Niedermayer > wrote: > > > > On Tue, Mar 29, 2022 at 01:40:26AM +0200, Diederick C. Niehorster wrote: > > > Hi Michael, > > > > > > On Tue, Mar 29, 2022 at 1:31 AM M

[FFmpeg-devel] [PATCH] avcodec/pcm_rechunk_bsf: unref packet before putting a new one in

2022-03-29 Thread Michael Niedermayer
Fixes: memleak Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_BSF_PCM_RECHUNK_fuzzer-5562089618407424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/pcm_rechunk_bsf.c | 1 + 1 file change

Re: [FFmpeg-devel] [PATCH] avcodec/pcm_rechunk_bsf: unref packet before putting a new one in

2022-03-29 Thread James Almer
On 3/29/2022 6:24 PM, Michael Niedermayer wrote: Fixes: memleak Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_BSF_PCM_RECHUNK_fuzzer-5562089618407424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer ---

Re: [FFmpeg-devel] web/consulting: Obfuscate email a bit

2022-03-29 Thread James Almer
On 3/29/2022 10:22 AM, Tomas Härdin wrote: Trying to keep my biz emails relatively free of spam Applied. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libsvtav1: clean up unconditional override of avctx bit rate

2022-03-29 Thread James Almer
On 3/27/2022 3:02 PM, Jan Ekström wrote: This value is only documented to be utilized if rate control is set to one of the bit rate based modes. These modes are not the default and thus the wrapper itself configures a bit rate according to the avctx if bit rate based encoding is requested, making

Re: [FFmpeg-devel] [PATCH] avformat/libsrt: fix deprecated warning

2022-03-29 Thread Steven Liu
> 2022年3月29日 下午9:18,lance.lmw...@gmail.com 写道: > > On Fri, Mar 25, 2022 at 03:39:04PM +0800, Zhao Zhili wrote: >> srt_socket was deprecated after 1.4.1. >> --- >> libavformat/libsrt.c | 4 >> 1 file changed, 4 insertions(+) >> >> diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c >> i

Re: [FFmpeg-devel] [PATCH] avformat/libsrt: use a larger buffer for find_info_tag

2022-03-29 Thread Steven Liu
> 2022年3月29日 下午2:11,myp...@gmail.com 写道: > > On Tue, Mar 29, 2022 at 10:21 AM "zhilizhao(赵志立)" > wrote: >> >> Ping. >> >>> On Aug 14, 2021, at 6:43 PM, Zhao Zhili wrote: >>> >>> The upper limit of strlen(streamid) is 512. Use a larger buffer for >>> future proof, for example, deal with perc

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself as maintainer for libsrt protocol

2022-03-29 Thread Steven Liu
> 2022年3月25日 下午3:40,Zhao Zhili 写道: > > Signed-off-by: Zhao Zhili > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 931cf4bd2c..5daa6f8e03 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -516,6 +516,7 @@ Protocols: > bluray.c

[FFmpeg-devel] [PATCH 1/2] libavutil/hwcontext_vulkan: Fix VK_FORMAT_R8G8_UNORM and VK_FORMAT_R16G16_UNORM map problem on Vulkan

2022-03-29 Thread Wenbin Chen
Vulkan map both DRM_FORMAT_RG88 and DRM_FORMAT_GR88 to VK_FORMAT_R8G8_UNORM. This cannot distinguish nv12/nv24 and nv21/nv42. Vulkan also map both DRM_FORMAT_RG1616 and DRM_FORMAT_GR1616 to VK_FORMAT_R16G16_UNORM. This causes issue when map back. VK_FORMAT_R16G16 will be mapped to DRM_FORMAT_GR1616

[FFmpeg-devel] [PATCH 2/2] libavutil/hwcontext_vaapi: fix nv12 map error

2022-03-29 Thread Wenbin Chen
The UV plane of NV12 should not be mapped to DRM_FORMAT_GR88. Remove this map after the problem is fixed on ffmpeg-vulkan side. Signed-off-by: Wenbin Chen --- libavutil/hwcontext_vaapi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c

[FFmpeg-devel] [PATCH 1/2] libavcodec/qsvdec: Add more pixel format support to qsvdec

2022-03-29 Thread Wenbin Chen
Qsv decoder only supports directly output nv12 and p010 to system memory. For other format, we need to download frame from qsv format to system memory. Now add other supported format to qsvdec. Signed-off-by: Wenbin Chen --- libavcodec/qsv.c | 36 li

[FFmpeg-devel] [PATCH 2/2] libavcodec/qsvenc: Add more pixel format support to qsvenc

2022-03-29 Thread Wenbin Chen
Qsv encoder only support input P010 and nv12 format directly from system memory. For other format, we need to upload frame to device memory and input qsv format to encoder. Now add other system memory format support to qsv encoder. Signed-off-by: Wenbin Chen --- libavcodec/qsvenc.c | 30 +++