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

2022-05-04 Thread Chen, Wenbin
> On 29/03/2022 09:29, Wenbin Chen wrote: > > 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 b

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

2022-05-04 Thread Leo Izen
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 animated JXL is not supported. - Leo Izen (thebombzen) ___

Re: [FFmpeg-devel] [PATCH 01/10] avfilter/af_afir: Only keep DSP stuff in header

2022-05-04 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Only the AudioFIRDSPContext and the functions for its initialization > are needed outside of lavfi/af_afir.c. > Also rename the header to af_afirdsp.h to reflect the change. > > Signed-off-by: Andreas Rheinhardt > --- > libavfilter/af_afir.c | 71 +

Re: [FFmpeg-devel] [PATCH v2 3/5] avutil/hwcontext_d3d11va: add a format check for staging texture

2022-05-04 Thread Wu, Tong1
> > -Original Message- > > From: ffmpeg-devel On Behalf Of > Tong > > Wu > > Sent: Friday, April 29, 2022 12:45 PM > > To: ffmpeg-devel@ffmpeg.org > > Cc: Tong Wu > > Subject: [FFmpeg-devel] [PATCH v2 3/5] avutil/hwcontext_d3d11va: add a > > format check for staging texture > > > > The

Re: [FFmpeg-devel] PATCH - libmad MP3 decoding support

2022-05-04 Thread David Fletcher
> Andreas Rheinhardt wrote: > > David Fletcher: > > Following today's posts about help with submitting patches I realised I > > sent the libmad patch yesterday in the wrong format. Apologies, I was > > not familiar with the git format patches. > > > > Hopefully the attached version is now in the

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

2022-05-04 Thread Mark Gaiser
On Sat, Apr 23, 2022 at 7:53 PM Lynne wrote: > 17 Apr 2022, 15:22 by leo.i...@gmail.com: > > > This commit adds support to libavformat for muxing > > and demuxing Jpeg XL images as image2 streams. > > --- > > MAINTAINERS| 1 + > > libavformat/Makefile | 1 + > > libavfo

[FFmpeg-devel] FFmpeg 4.2 / 3.4 / 3.2 / 2.8

2022-05-04 Thread Michael Niedermayer
Hi Some fixes that where backported to 4.3 / 4.1 where not backported to 4.2 / 3.4 / 3.2 / 2.8 This was reported by Enrico Zini (in CC) Ive backported these today and will make new releases from the affected branches. Theres also a smaller set of memleak fixes missing from 4.1. As such these wou

Re: [FFmpeg-devel] [PATCH] avfilter: add multiply video filter

2022-05-04 Thread Paul B Mahol
Gonna apply soon. ___ 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 3/3] avformat/movenc: Add support for AVIF muxing

2022-05-04 Thread Vignesh Venkatasubramanian
Add an AVIF muxer by re-using the existing the mov/mp4 muxer. AVIF Specification: https://aomediacodec.github.io/av1-avif Sample usage for still image: ffmpeg -i image.png -c:v libaom-av1 -avif-image 1 image.avif Sample usage for animated AVIF image: ffmpeg -i video.mp4 animated.avif We can re-

Re: [FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-05-04 Thread Vignesh Venkatasubramanian
On Wed, May 4, 2022 at 10:10 AM "zhilizhao(赵志立)" wrote: > > > > > On May 5, 2022, at 12:45 AM, Vignesh Venkatasubramanian > > wrote: > > > >>> > >>> -mov_write_track_udta_tag(pb, mov, st); > >>> +if (track->mode != MODE_AVIF) > >>> +mov_write_track_udta_tag(pb, mov, st); > >> > >

Re: [FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-05-04 Thread zhilizhao(赵志立)
> On May 5, 2022, at 12:45 AM, Vignesh Venkatasubramanian > wrote: > >>> >>> -mov_write_track_udta_tag(pb, mov, st); >>> +if (track->mode != MODE_AVIF) >>> +mov_write_track_udta_tag(pb, mov, st); >> >> Please check if the check can be removed. mov_write_track_udta_tag() does

[FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-05-04 Thread Vignesh Venkatasubramanian
Add an AVIF muxer by re-using the existing the mov/mp4 muxer. AVIF Specification: https://aomediacodec.github.io/av1-avif Sample usage for still image: ffmpeg -i image.png -c:v libaom-av1 -avif-image 1 image.avif Sample usage for animated AVIF image: ffmpeg -i video.mp4 animated.avif We can re-

Re: [FFmpeg-devel] [PATCH 3/3] avformat/movenc: Add support for AVIF muxing

2022-05-04 Thread Vignesh Venkatasubramanian
On Tue, May 3, 2022 at 7:46 PM "zhilizhao(赵志立)" wrote: > > Thanks for the review! > > > On May 3, 2022, at 5:35 AM, Vignesh Venkatasubramanian > > wrote: > > > > Add an AVIF muxer by re-using the existing the mov/mp4 muxer. > > > > AVIF Specification: https://aomediacodec.github.io/av1-avif >

Re: [FFmpeg-devel] [PATCH v2 5/7] avcodec/cbs_sei: refactor to use avutil/uuid

2022-05-04 Thread Zane van Iperen
On 2/5/22 07:06, Mark Thompson wrote: Maybe additional options exist. I do not have a definitive opinion. Some folks expressed strong interest in having a consistent scheme for manipulating UUIDs. I think for now the simplest option is just not to change the CBS header, which is completel

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

2022-05-04 Thread myp...@gmail.com
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 a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c > index 5bcdd64d84..cfee1117e8

[FFmpeg-devel] [PATCH 2/3] avformat/libzmq: Improve r redundancy in occured

2022-05-04 Thread Michael Niedermayer
--- libavformat/libzmq.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavformat/libzmq.c b/libavformat/libzmq.c index 1b0d8638db..04c72ac601 100644 --- a/libavformat/libzmq.c +++ b/libavformat/libzmq.c @@ -51,7 +51,7 @@ static int zmq_proto_wait(URLConte

[FFmpeg-devel] [PATCH 3/3] avcodec/libxavs2: Improve r redundancy in occured

2022-05-04 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/libxavs2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index f77078e3fb..bf34b7acbb 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -208,7 +208,7 @@ static int

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

2022-05-04 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavfilter/vf_libplacebo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c index 5bcdd64d84..cfee1117e8 100644 --- a/libavfilter/vf_libplacebo.c +++ b/libavfilter/vf_libplacebo.c

[FFmpeg-devel] [PATCH 7/7] tests/fate-run: Remove temporary files from pixfmt conversions

2022-05-04 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- tests/fate-run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 5939761997..c0d65be6f4 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -432,6 +432,7 @@ pixfmt_conversion(){ outdir="tests/data/pi

[FFmpeg-devel] [PATCH 6/7] tests/fate-run: Remove temporary fate-lavf files if possible

2022-05-04 Thread Andreas Rheinhardt
The temporary fate-lavf files can easily be removed if they are not needed as inputs for other tests (mainly fate-seek-tests). This commit implements this. The size of the remaining files decreases from 260890083B to 79481793B. Signed-off-by: Andreas Rheinhardt --- tests/fate-run.sh| 12

[FFmpeg-devel] [PATCH 5/7] tests/Makefile: Redo how to keep intermediate FATE-files

2022-05-04 Thread Andreas Rheinhardt
Extend the ordinary mechanism to signal KEEP for this. This also allows to remove the keep-parameter from enc_dec, transcode and stream_remux, so that several empty parameters '""' could be removed. Signed-off-by: Andreas Rheinhardt --- tests/Makefile | 14 +- tests/fate

[FFmpeg-devel] [PATCH] avcodec/vp9: ipred_vl_16x16_16 avx2 implementation

2022-05-04 Thread FacelessLake
From: Semen Belozerov --- libavcodec/x86/vp9dsp_init_16bpp.c| 2 ++ libavcodec/x86/vp9intrapred_16bpp.asm | 51 +++ 2 files changed, 53 insertions(+) diff --git a/libavcodec/x86/vp9dsp_init_16bpp.c b/libavcodec/x86/vp9dsp_init_16bpp.c index 27e746aea1..b17826326f 1

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

2022-05-04 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. --- libavcodec/li

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

2022-05-04 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 | 91 -- 1 file changed, 88 insertions(+), 3 deletions(-) diff --git a/libavcodec/libjxldec.c b/li

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

2022-05-04 Thread Leo Izen
Changes 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 without iccp) Leo Izen (2): avcodec/libjxldec: properly tag output colorspace avcod

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

2022-05-04 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. --- libavcodec/li

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

2022-05-04 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 | 91 -- 1 file changed, 88 insertions(+), 3 deletions(-) diff --git a/libavcodec/libjxldec.c b/li

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

2022-05-04 Thread Leo Izen
Add proper colorspace handling and tagging to the libjxl decoder and encoder wrappers. Changes v3: - some cosmetic changes - properly handle P3 spaces - properly handle PQ transfer v2: - avoid misusing AVMasteringDisplayMetadata - ignore custom primaries in header (very rare without iccp) Leo Ize

Re: [FFmpeg-devel] [PATCH 1/3] doc/encoders.texi: Document cinepak encoder

2022-05-04 Thread Tomas Härdin
Ping I tested patch 2's output on Windows 3.1, still works fine. Could potentially merge both documentation patches /Tomas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit l

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/smacker: Optimize constant 16bit audio output

2022-05-04 Thread Tomas Härdin
tis 2022-05-03 klockan 18:30 +0200 skrev Michael Niedermayer: > > +    } else if (stereo) { > +    val  = 256*values[1] + values[0]; > +    val2 = 256*values[3] + values[2]; > +    for(; i < unp_size; i+=2) { > +    pred[0] += val; > +    pred[1]