Re: [FFmpeg-devel] [PATCH 1/3] avcodec/asvenc: Don't waste bits encoding non-visible part

2025-05-24 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patches attached. > > - Andreas > Will apply this patchset tomorrow unless there are objections. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, vi

Re: [FFmpeg-devel] [PATCH 01/19] avcodec/mpegvideo_enc: Set gob_index once during init

2025-05-24 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patches attached; mostly about MPEG-4. > > - Andreas > Will apply this patchset tomorrow unless there are objections. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-deve

[FFmpeg-devel] [PATCH 1/3] avformat/matroska: Support JPEG2000 for demuxing

2025-05-24 Thread Andreas Rheinhardt
Patches attached. - Andreas From b58c71c2e90380d8a3e7a58fa20a6c16c2458317 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 25 May 2025 03:31:17 +0200 Subject: [PATCH 1/3] avformat/matroska: Support JPEG2000 for demuxing Legal since commit 1cd0a9be4b2d1e7c60184ec68404e00e46e3123e (Jan

[FFmpeg-devel] [PATCH] avcodec/ffv1enc: Fix explicitly set -slicecrc 2

2025-05-24 Thread Andreas Rheinhardt
Patch attached. - Andreas From 29bf954db8fd362f35bd9fd779219e8a2d9c8032 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 25 May 2025 05:21:44 +0200 Subject: [PATCH] avcodec/ffv1enc: Fix explicitly set -slicecrc 2 crcref needs to be set properly iff ec is two, regardless of whether it

Re: [FFmpeg-devel] [PATCH 01/11] avcodec/vulkan_encode_h264: Fix memleak on error

2025-05-24 Thread James Almer
On 5/5/2025 8:37 PM, Andreas Rheinhardt wrote: From fd131ce99ecaaf3881d11ce7478b5be66cb059d5 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 5 May 2025 20:14:29 +0200 Subject: [PATCH 08/11] Revert "avcodec/cbs: add an AVBufferRef input argument to ff_cbs_read()" This reverts commi

Re: [FFmpeg-devel] [PATCH 01/11] avcodec/vulkan_encode_h264: Fix memleak on error

2025-05-24 Thread James Almer
On 5/5/2025 8:37 PM, Andreas Rheinhardt wrote: diff --git a/libavcodec/cbs_apv.c b/libavcodec/cbs_apv.c index ebf57d3bbb..ddc363fbf3 100644 --- a/libavcodec/cbs_apv.c +++ b/libavcodec/cbs_apv.c @@ -276,12 +276,14 @@ static int cbs_apv_read_unit(CodedBitstreamContext *ctx, if (err < 0

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs: add a new init function

2025-05-24 Thread James Almer
On 5/24/2025 8:08 AM, Andreas Rheinhardt wrote: If something like this were ever needed, it should not be implemented like this; instead ff_cbs_init() should be like avformat_open_input() and allocate a context if none was provided. - Andreas I didn't do that because it would require ff_cbs_in

Re: [FFmpeg-devel] [PATCH] avformat/movenc: fix VVC encoding with leading pictures

2025-05-24 Thread Nuo Mi
On Thu, May 22, 2025 at 4:35 PM Gabriel Hege wrote: > > On 17.05.25 04:26, Nuo Mi wrote: > > On Fri, May 16, 2025 at 7:05 PM Gabriel Hege wrote: > > > >> This is a resubmission with a corrected commit message. > >> > >> > >> The default behavior for VVenC (since v1.10.0) is to create an IDR with

Re: [FFmpeg-devel] [PATCH v2] lavc/h2645_parse: More descriptive NALU header error

2025-05-24 Thread Nuo Mi
On Sun, May 25, 2025 at 2:13 AM Michael Niedermayer wrote: > On Thu, May 22, 2025 at 07:43:02PM +0100, Frank Plowman wrote: > > Signed-off-by: Frank Plowman > > --- > > Changes since v1: Spotted just after sending this that there was ongoing > > effort to remove av_strerror calls in favour of av

Re: [FFmpeg-devel] [PATCH] lavc/vvc: Fix divide-by-zero in LMCS param derivation

2025-05-24 Thread Nuo Mi
On Sat, May 24, 2025 at 8:13 PM Frank Plowman wrote: > Add three missing requirements on bitstream conformance from 7.4.3.19 of > H.266 (V3). Issue found using fuzzing. > Thank you, Frank. Applied with slight style changes. > > Signed-off-by: Frank Plowman > --- > libavcodec/vvc/ps.c | 18 +++

[FFmpeg-devel] [PATCH v8 2/5] libavformat/oggdec.{c, h}: Add new_extradata, use it to pass extradata to the next decoded packet.

2025-05-24 Thread Romain Beauxis
--- libavformat/oggdec.c | 11 +++ libavformat/oggdec.h | 2 ++ 2 files changed, 13 insertions(+) diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 5557eb4a14..da3ef815db 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -77,6 +77,7 @@ static void free_stream(A

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add entry for samples-request

2025-05-24 Thread Kieran Kunhya via ffmpeg-devel
Hi Michael, On Wed, 14 May 2025, 23:35 Michael Niedermayer, wrote: > On Sun, May 11, 2025 at 10:13:36PM +0200, Michael Niedermayer wrote: > > This is based on discussion with the GA and its simply the people > > who have done or tried to do some uploads recently. > > > > Everyone who has a shel

Re: [FFmpeg-devel] [PATCH v2] lavc/h2645_parse: More descriptive NALU header error

2025-05-24 Thread Michael Niedermayer
On Thu, May 22, 2025 at 07:43:02PM +0100, Frank Plowman wrote: > Signed-off-by: Frank Plowman > --- > Changes since v1: Spotted just after sending this that there was ongoing > effort to remove av_strerror calls in favour of av_err2str, so made that > substitution here. > --- > libavcodec/h2645_p

[FFmpeg-devel] [PATCH v8 5/5] libavformat/oggdec.h: Change paket function documentation to return 1 on header packets only.

2025-05-24 Thread Romain Beauxis
--- libavformat/oggdec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h index 5083de646c..c15fbe738e 100644 --- a/libavformat/oggdec.h +++ b/libavformat/oggdec.h @@ -42,8 +42,8 @@ struct ogg_codec { * Attempt to process a p

Re: [FFmpeg-devel] Previous trac server hosting Was: STF RaptorQ

2025-05-24 Thread Kieran Kunhya via ffmpeg-devel
On Sat, 24 May 2025, 17:39 Michael Niedermayer, wrote: > Hi > > On Fri, May 23, 2025 at 01:13:05PM +0100, Kieran Kunhya via ffmpeg-devel > wrote: > [...] > > > As an example i could have instead replied with a tone matching yours: > > > (below is a (true) example of communication in the same tone

[FFmpeg-devel] [PATCH v8 4/5] ogg/vorbis: implement header packet skip in chained ogg bitstreams.

2025-05-24 Thread Romain Beauxis
--- libavcodec/vorbis_parser.h | 11 libavcodec/vorbisdec.c | 75 +- libavformat/oggparsevorbis.c | 67 ++- tests/ref/fate/ogg-vorbis-chained-meta.txt | 3 - tests/ref/fate/trac-2739.txt | 4

[FFmpeg-devel] [PATCH v8 3/5] ogg/vorbis: factor out header processing logic.

2025-05-24 Thread Romain Beauxis
--- libavformat/oggparsevorbis.c | 104 --- 1 file changed, 60 insertions(+), 44 deletions(-) diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index 9f50ab9ffc..62cc2da6de 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsev

[FFmpeg-devel] [PATCH v8 1/5] Add FATE test for sample from track ticket #2739

2025-05-24 Thread Romain Beauxis
Sample available at: https://www.dropbox.com/scl/fo/xrtrna2rxr1j354hrtymq/AGwemlxHYecBLNmQ8Fsy--4?rlkey=lzilr4m9w4gfdqygoe172vvy8&dl=0 --- tests/Makefile | 2 ++ tests/fate/trac.mak | 11 tests/ref/fate/trac-2739.txt | 53 3 f

[FFmpeg-devel] [PATCH v8 0/5] Remove chained ogg stream header packets from the demuxer

2025-05-24 Thread Romain Beauxis
## Changes since last revision: * Fixed segfaults in the vorbis decoder and parser * Added FATE test for track ticket 2739 Romain Beauxis (5): Add FATE test for sample from track ticket #2739 libavformat/oggdec.{c,h}: Add new_extradata, use it to pass extradata to the next decoded packet.

Re: [FFmpeg-devel] [PATCH] aacdec_ac: fix signed overflow in ff_aac_ac_update_context()

2025-05-24 Thread Michael Niedermayer
On Fri, May 23, 2025 at 06:46:53AM +0900, Lynne wrote: > The issue is that state->cur[] is 8-bits, but a+b+1 can overflow > before being clipped to 0xF in the following line, causing an incorrect > state to be saved for the next symbol. > > This solves numerous bitstream desyncs, particularly when

Re: [FFmpeg-devel] [PATCH v7 3/4] ogg/vorbis: implement header packet skip in chained ogg bitstreams.

2025-05-24 Thread Romain Beauxis
Le ven. 23 mai 2025 à 19:40, Michael Niedermayer a écrit : > > Hi Romain > > On Wed, May 21, 2025 at 05:05:37PM -0500, Romain Beauxis wrote: > > --- > > libavcodec/vorbis_parser.h | 11 > > libavcodec/vorbisdec.c | 75 +- > > libavforma

Re: [FFmpeg-devel] FFmpeg Community Committee – Updates & Next Steps

2025-05-24 Thread Kieran Kunhya via ffmpeg-devel
On Tue, 4 Mar 2025, 19:01 Kieran Kunhya, wrote: > > > On Tue, 4 Mar 2025, 11:17 Michael Niedermayer, > wrote: > >> Hi Kieran >> >> On Tue, Mar 04, 2025 at 08:13:11AM -0600, Kieran Kunhya via ffmpeg-devel >> wrote: >> [...] >> > Hi Michael, >> > >> > Was all the STF discussion around the first ap

[FFmpeg-devel] Previous trac server hosting Was: STF RaptorQ

2025-05-24 Thread Michael Niedermayer
Hi On Fri, May 23, 2025 at 01:13:05PM +0100, Kieran Kunhya via ffmpeg-devel wrote: [...] > > As an example i could have instead replied with a tone matching yours: > > (below is a (true) example of communication in the same tone as yours > > that i avoid) > > > > "I appreciated the stellar servic

Re: [FFmpeg-devel] [PATCH] Percent-encode URL paths in HLS playlists

2025-05-24 Thread Rémi Denis-Courmont
Le perjantaina 23. toukokuuta 2025, 17.53.02 Itä-Euroopan kesäaika Timothy Allen via ffmpeg-devel a écrit : > This commit closes trac ticket 10679. > > Signed-off-by: Timothy Allen > --- > libavformat/hls.c | 9 + > libavformat/url.c | 35 +++ > libavfor

Re: [FFmpeg-devel] [PATCH v4] libavcodec/riscv:add RVV optimized idct_32x32_8 for HEVC

2025-05-24 Thread Rémi Denis-Courmont
Le tiistaina 20. toukokuuta 2025, 10.58.06 Itä-Euroopan kesäaika daichengr...@iscas.ac.cn a écrit : > From: daichengrong > > Since there are no comments for v2 and v3, we have continued to optimize > according to the comments of v1. We spilled the slide to memory to help > improve performance,an

Re: [FFmpeg-devel] gcc: Remove auto-vectorization limitation.

2025-05-24 Thread Rémi Denis-Courmont
Le torstaina 22. toukokuuta 2025, 9.32.18 Itä-Euroopan kesäaika Jiawei a écrit : > > The RISC-V autovectorised output looks like it has a warning "Odd > > rotation angle" which is not present in the non-autovectorised output. > > I found this occured when using '-ffast-math' in RISC-V, also occur

Re: [FFmpeg-devel] [FFmpeg-cvslog] fftools/graphprint: Now, make it a Killer-Feature!

2025-05-24 Thread Rémi Denis-Courmont
Le perjantaina 16. toukokuuta 2025, 3.54.21 Itä-Euroopan kesäaika Michael Niedermayer a écrit : > 1. lets all calm down, so far we have a civil and productive discussion >maybe we can simply find a solution everyone is happy with! > > 2. all security issues must be fixed if there are some sy

Re: [FFmpeg-devel] [FFmpeg-cvslog] fftools/graphprint: Now, make it a Killer-Feature!

2025-05-24 Thread Rémi Denis-Courmont
Le perjantaina 16. toukokuuta 2025, 1.19.15 Itä-Euroopan kesäaika softworkz . a écrit : > of course I understand that. > But it isn't constructed from untrusted input. You're being ridiculous. `system()` has a long history of causign bugs, many of them security related, and many not fixable. I

Re: [FFmpeg-devel] 回复: [PATCH v1 09/19] avcodec/h274: add ff_h274_hash functions

2025-05-24 Thread Nuo Mi
On Fri, May 9, 2025 at 2:37 AM Wu Jianhua wrote: > Andreas Rheinhardt: > > toq...@gmail.com: > >> From: Wu Jianhua > >> > >> Signed-off-by: Wu Jianhua > >> --- > >> libavcodec/h274.c | 163 ++ > >> libavcodec/h274.h | 7 ++ > >> 2 files changed, 17

[FFmpeg-devel] [PATCH] swscale/utils: Fix potential race when initializing xyz tables

2025-05-24 Thread Andreas Rheinhardt
Patch attached. - Andreas From 418fd788de2902641e6d4693137a620cab413c37 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 24 May 2025 16:02:04 +0200 Subject: [PATCH] swscale/utils: Fix potential race when initializing xyz tables Signed-off-by: Andreas Rheinhardt --- libswscale/util

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs: add a new init function

2025-05-24 Thread Andreas Rheinhardt
James Almer: > And rename the existing one to ff_cbs_alloc(). > This will allow for more versatility when setting options in a module, > allowing > them to be taken into account when calling module specific init functions. > > Signed-off-by: James Almer > --- > libavcodec/apv_decode.c

[FFmpeg-devel] [PATCH] lavc/vvc: Fix divide-by-zero in LMCS param derivation

2025-05-24 Thread Frank Plowman
Add three missing requirements on bitstream conformance from 7.4.3.19 of H.266 (V3). Issue found using fuzzing. Signed-off-by: Frank Plowman --- libavcodec/vvc/ps.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/libavcodec/vvc/ps.c b/libavcodec/vvc/ps.c

Re: [FFmpeg-devel] [PATCH v5 4/4] lavc: implement a Vulkan-based VC-2 encoder Implements a Vulkan based dirac encoder. Supports Haar and Legall wavelets and should work with all wavelet depths.

2025-05-24 Thread Andreas Rheinhardt
IndecisiveTurtle: > From: IndecisiveTurtle > > Performance wise, encoding a 3440x1440 1-minute video is performed in about > 2.4 minutes with the cpu encoder running on my Ryzen 5 4600H, while it takes > about 1.3 minutes on my NVIDIA GTX 1650 > > Haar shader has a subgroup optimized variant t

Re: [FFmpeg-devel] gcc: Remove auto-vectorization limitation.

2025-05-24 Thread Rémi Denis-Courmont
Hi, Le 21 mai 2025 09:17:50 GMT+03:00, Jiawei a écrit : >This patch modifies the FFmpeg build system to remove the explicit disabling >of GCC's auto-vectorization feature. > >Modern GCC versions (>= 10.0) have demonstrated stable auto-vectorization >capabilities through extensive optimizations in

[FFmpeg-devel] [PATCH] avcodec/vc2enc: Use LUT to avoid repeated av_log2()

2025-05-24 Thread Andreas Rheinhardt
Patch attached. - Andreas From c437f573c8e703c28697a2cafd707c5bda045004 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 24 May 2025 13:25:21 +0200 Subject: [PATCH] avcodec/vc2enc: Use LUT to avoid repeated av_log2() Signed-off-by: Andreas Rheinhardt --- libavcodec/vc2enc.c | 8 +++

Re: [FFmpeg-devel] [PATCH v5 4/4] lavc: implement a Vulkan-based VC-2 encoder Implements a Vulkan based dirac encoder. Supports Haar and Legall wavelets and should work with all wavelet depths.

2025-05-24 Thread IndecisiveTurtle
> Same benchmarks as v4. Did the switch to put_bits63() not cost performance? In my tests it did not. I tested with old uint32_t, then immediately afterwards with uint64_t and times were the same. Στις Σάβ 24 Μαΐ 2025 στις 2:09 μ.μ., ο/η Andreas Rheinhardt έγραψε: > > IndecisiveTurtle: > > From:

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/av1_parser: use an AVBufferRef to avoid data copying

2025-05-24 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > libavcodec/av1_parser.c | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c > index 77906d0c91..b9a96ad59a 100644 > --- a/libavcodec/av1_parser.c > +++ b/libavcodec/av1_parser.

Re: [FFmpeg-devel] [PATCH v2] lavc/vvc: Detect subpic overlaps at CTU level

2025-05-24 Thread Nuo Mi
On Sun, May 18, 2025 at 9:16 PM Frank Plowman wrote: > On 29/04/2025 14:24, Nuo Mi wrote: > > Hi Frank, > > Thank you for the detail. > > > > On Mon, Apr 28, 2025 at 10:35 PM Frank Plowman > > wrote: > > > >> On 28/04/2025 14:33, Nuo Mi wrote: > >>> Hi Frank, > >>> Thank you for the v2. > >>> Co

Re: [FFmpeg-devel] New Patchwork CI Builds

2025-05-24 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of softworkz . > Sent: Mittwoch, 7. Mai 2025 05:04 > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] New Patchwork CI Builds > > Hello Everybody, > > > today, I've set up a number of additional CI builds for Patchwork: > > >

[FFmpeg-devel] [PATCH, v3] avcodec/d3d12va_encode: texture array support for HEVC

2025-05-24 Thread Araz Iusubov
This patch adds support for the texture array feature used by AMD boards in the D3D12 HEVC encoder. In texture array mode, a single texture array is shared for all reference and reconstructed pictures using different subresources. The implementation ensures compatibility and has been successfully t