Re: [FFmpeg-devel] [PATCH 3/3] fftools/ffmpeg_demux: merge streams in a LCEVC stream group

2024-09-26 Thread Anton Khirnov
Quoting James Almer (2024-09-24 16:43:08) > Add the LCEVC data stream payloads as packet side data to the main video > stream, ensuring the former is always output by the demuxer even if not > used by the process. > > Signed-off-by: James Almer > --- > configure | 2 +- > fftools/

Re: [FFmpeg-devel] [FFmpeg-cvslog] swscale/aarch64: Fix rgb24toyv12 only works with aligned width

2024-09-26 Thread Martin Storsjö
On Wed, 25 Sep 2024, Martin Storsjö wrote: On Wed, 25 Sep 2024, Zhao Zhili wrote: On Sep 25, 2024, at 16:01, Martin Storsjö wrote: On Tue, 24 Sep 2024, Zhao Zhili wrote: ffmpeg | branch: master | Zhao Zhili | Wed Sep 18 21:11:44 2024 +0800| [e18b46d95fadcbaaf450bda9f1871849f2b0c586] | co

Re: [FFmpeg-devel] [PATCH 2/5] configure: Add detection of assembler support for SVE/SVE2

2024-09-26 Thread Martin Storsjö
On Tue, 17 Sep 2024, Martin Storsjö wrote: It turns out that recent versions of MS armasm64 does support some SVE instructions, but not all of them. Test for one of the instructions that it currently doesn't support. --- Just as disclaimer, I'm not currently actively planning on writing SVE/SV

[FFmpeg-devel] [PATCH] avformat/hlsenc: Fix missing EXT-X-DISCONTINUITY tag in subtitle streams

2024-09-26 Thread Jonathan Baecker
The EXT-X-DISCONTINUITY tag was not being added to subtitle streams, causing synchronization issues. This patch ensures that the tag is applied consistently across video and subtitle streams. --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat

[FFmpeg-devel] [PATCH] avformat/hlsplaylist: set stream name according to var_stream_map varname

2024-09-26 Thread Jonathan Baecker
From: jb-alvarado If name:* is set in var_stream_map variable, take that as NAME= variable. This helps gives better stream names in html players. --- libavformat/hlsenc.c | 2 +- libavformat/hlsplaylist.c | 9 +++-- libavformat/hlsplaylist.h | 2 +- 3 files changed, 9 insertions(+), 4

[FFmpeg-devel] [PATCH v3 1/3] aarch64/vvc: Add w_avg

2024-09-26 Thread Zhao Zhili
From: Zhao Zhili w_avg_8_2x2_c: 0.0 ( 0.00x) w_avg_8_2x2_neon:0.0 ( 0.00x) w_avg_8_4x4_c: 0.2 ( 1.00x) w_avg_8_4x4_neon:0.0 ( 0.00x)

[FFmpeg-devel] [PATCH v3 3/3] aarch64/vvc: Add dmvr

2024-09-26 Thread Zhao Zhili
From: Zhao Zhili dmvr_8_12x20_c: 1.5 ( 1.00x) dmvr_8_12x20_neon: 0.2 ( 6.56x) dmvr_8_20x12_c: 1.0 ( 1.00x) dmvr_8_20x12_neon: 0.2 ( 4.33x)

[FFmpeg-devel] [PATCH v3 1/3] aarch64/vvc: Add w_avg

2024-09-26 Thread Zhao Zhili
From: Zhao Zhili w_avg_8_2x2_c: 0.0 ( 0.00x) w_avg_8_2x2_neon:0.0 ( 0.00x) w_avg_8_4x4_c: 0.2 ( 1.00x) w_avg_8_4x4_neon:0.0 ( 0.00x)

[FFmpeg-devel] [PATCH v3 0/3] aarch64/vvc add w_avg and dmvr/dmvr_hv

2024-09-26 Thread Zhao Zhili
From: Zhao Zhili v3: 1. Remove some const modifier in function prototypes 2. Use 'uaddl' to replace 'uxtl then add' in patch 3/3 Zhao Zhili (3): aarch64/vvc: Add w_avg aarch64/vvc: Add dmvr_hv aarch64/vvc: Add dmvr libavcodec/aarch64/vvc/dsp_init.c | 50 +++ libavcodec/aarch64/vvc/inter

[FFmpeg-devel] [PATCH 14/17] doc/examples/decode_filter_audio: switch to new buffersink options

2024-09-26 Thread Anton Khirnov
Use a mix of av_opt_set() and av_opt_set_array() to demonstrate different ways the options can be set. --- doc/examples/decode_filter_audio.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/doc/examples/decode_filter_audio.c b/doc/examples/decode_filter_audio.c

[FFmpeg-devel] [PATCH 13/17] lavfi/buffersink: add array-type options to replace "int-list" ones

2024-09-26 Thread Anton Khirnov
"int-list" options are a hack that provides rudimentary support for array-type options by treating them as byte arrays (i.e. AV_OPT_TYPE_BINARY). Since we now have proper array-type options, they should replace "int-list" everywhere (which happens to be just buffersink). --- doc/APIchanges

[FFmpeg-devel] [PATCH 15/17] doc/examples/decode_filter_video: switch to new buffersink options

2024-09-26 Thread Anton Khirnov
--- doc/examples/decode_filter_video.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/examples/decode_filter_video.c b/doc/examples/decode_filter_video.c index 4a5247dbf2..aacc91c2f7 100644 --- a/doc/examples/decode_filter_video.c +++ b/doc/examples/decode_filter_vid

[FFmpeg-devel] [PATCH 12/17] lavu/opt: avoid accidentally propagating spurious errors

2024-09-26 Thread Anton Khirnov
An error from read_number() is non-fatal here and should not be forwarded. --- libavutil/opt.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index 02ed9d9fe9..93f2bb1320 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -2343,13 +23

Re: [FFmpeg-devel] [Uncompressed MP4] Write uncC Tag

2024-09-26 Thread Devon Sookhoo
Hello, This patch is more of a RFC. I'm interested in generating uncompressed MP4 files in FFMPEG according to ISO/IEC 23001-17:2024 and wrote this as a first step towards implementation. Any feedback or help would be greatly appreciated. Thanks On Tue, Sep 24, 2024 at 2:51 PM Devon Sookhoo wro

[FFmpeg-devel] [PATCH 11/17] lavu/opt: add missing 'else'

2024-09-26 Thread Anton Khirnov
--- libavutil/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index 45db4f484f..02ed9d9fe9 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -2362,7 +2362,7 @@ int av_opt_set_array(void *obj, const char *name, int search_flags,

[FFmpeg-devel] [PATCH v3 2/3] aarch64/vvc: Add dmvr_hv

2024-09-26 Thread Zhao Zhili
From: Zhao Zhili dmvr_hv_8_12x20_c: 8.0 ( 1.00x) dmvr_hv_8_12x20_neon:1.2 ( 6.62x) dmvr_hv_8_20x12_c: 8.0 ( 1.00x) dmvr_hv_8_20x12_neon:0.9 ( 8.37x)

[FFmpeg-devel] [PATCH 16/17] fftools/ffplay: switch to new buffersink options

2024-09-26 Thread Anton Khirnov
--- fftools/ffplay.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 349c6075da..6c3694a321 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -388,7 +388,6 @@ static const struct TextureFormatEntry

Re: [FFmpeg-devel] [PATCH v2 1/3] aarch64/vvc: Add w_avg

2024-09-26 Thread Martin Storsjö
On Mon, 23 Sep 2024, Zhao Zhili wrote: From: Zhao Zhili w_avg_8_2x2_c: 0.0 ( 0.00x) w_avg_8_2x2_neon:0.0 ( 0.00x) w_avg_8_4x4_c: 0.2 ( 1.00x) w_avg_8_4x4_neon:

Re: [FFmpeg-devel] [PATCH v2 2/3] aarch64/vvc: Add dmvr_hv

2024-09-26 Thread Martin Storsjö
On Mon, 23 Sep 2024, Zhao Zhili wrote: From: Zhao Zhili dmvr_hv_8_12x20_c: 8.0 ( 1.00x) dmvr_hv_8_12x20_neon:1.2 ( 6.62x) dmvr_hv_8_20x12_c: 8.0 ( 1.00x) dmvr_hv_8_20x12_neon:

[FFmpeg-devel] [PATCH 1/3] avcodec: add an LCEVC merger bsf

2024-09-26 Thread James Almer
Signed-off-by: James Almer --- doc/bitstream_filters.texi | 14 ++ libavcodec/bitstream_filters.c | 1 + libavcodec/bsf/Makefile | 1 + libavcodec/bsf/lcevc_merge_bsf.c | 273 +++ 4 files changed, 289 insertions(+) create mode 100644 libavcodec/b

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mov: add referenced thumbnail streams to tile stream groups

2024-09-26 Thread Anton Khirnov
Quoting James Almer (2024-09-26 16:33:48) > Use the reference information present in iref boxes of type thmb to include > the > relevant streams into a Tile Grid stream group. > This does not yet export the relation of a thumbnail and an independent stream > (not a grid). For this, a new Stream gr

Re: [FFmpeg-devel] [PATCH 2/7] lavfi/buffersink: add a flag for retrieving stream parameters

2024-09-26 Thread Nicolas George
James Almer (12024-09-25): > It still requires allocating it before using it, but since a normal > filterchain will have buffersrc -> [...] -> buffersink, the same allocated > struct can be used for both. A filter chain can have buffersinks but no buffersrc, if it uses other sources. Also, a dynam

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: Fix missing EXT-X-DISCONTINUITY tag in subtitle streams

2024-09-26 Thread Steven Liu
Jonathan Baecker 于2024年9月26日周四 15:59写道: > > The EXT-X-DISCONTINUITY tag was not being added to subtitle streams, causing > synchronization issues. This patch ensures that the tag is applied > consistently across video and subtitle streams. > --- > libavformat/hlsenc.c | 2 +- > 1 file changed,

Re: [FFmpeg-devel] [PATCH 1/4] avformat/avformat: add a new disposition to signal the stream is an HDR gainmap

2024-09-26 Thread Anton Khirnov
Quoting James Almer (2024-09-26 14:06:25) > On 9/26/2024 3:00 AM, Anton Khirnov wrote: > > Quoting James Almer (2024-09-26 00:52:16) > >> HDR images photos taken by certain cameras split this as a separate image. > >> > >> Signed-off-by: James Almer > >> --- > >> libavformat/avformat.h | 5 +

Re: [FFmpeg-devel] [PATCH 1/4] avformat/avformat: add a new disposition to signal the stream is an HDR gainmap

2024-09-26 Thread James Almer
On 9/26/2024 11:17 AM, Anton Khirnov wrote: Quoting James Almer (2024-09-26 14:06:25) On 9/26/2024 3:00 AM, Anton Khirnov wrote: Quoting James Almer (2024-09-26 00:52:16) HDR images photos taken by certain cameras split this as a separate image. Signed-off-by: James Almer --- libavformat/

[FFmpeg-devel] [PATCH 17/17] lavu: deprecate av_opt_set_int_list() and related infrastructure

2024-09-26 Thread Anton Khirnov
It has no more users and is replaced by array-type options. --- doc/APIchanges | 5 + libavutil/avutil.h | 3 +++ libavutil/opt.h | 2 ++ libavutil/utils.c | 2 ++ libavutil/version.h | 1 + 5 files changed, 13 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index a7935

Re: [FFmpeg-devel] [PATCH 1/4] avformat/avformat: add a new disposition to signal the stream is an HDR gainmap

2024-09-26 Thread James Almer
On 9/26/2024 3:00 AM, Anton Khirnov wrote: Quoting James Almer (2024-09-26 00:52:16) HDR images photos taken by certain cameras split this as a separate image. Signed-off-by: James Almer --- libavformat/avformat.h | 5 + libavformat/dump.c | 2 ++ 2 files changed, 7 insertions(+)

Re: [FFmpeg-devel] [PATCH v2 1/3] aarch64/vvc: Add w_avg

2024-09-26 Thread Zhao Zhili
> On Sep 26, 2024, at 19:25, Martin Storsjö wrote: > > On Mon, 23 Sep 2024, Zhao Zhili wrote: > >> From: Zhao Zhili >> >> w_avg_8_2x2_c: 0.0 ( 0.00x) >> w_avg_8_2x2_neon:0.0 ( 0.00x) >> w_avg_8_4x4_c:

Re: [FFmpeg-devel] [PATCH] configure: Silence Xcode warnings about duplicate libraries

2024-09-26 Thread Martin Storsjö
On Wed, 25 Sep 2024, Martin Storsjö wrote: Since Xcode 15, macOS developer tools use a new linker. The new linker by default warns for duplicate -l options. As this is a known and expected thing, not to be considered an issue, ask for the warning to be silenced. This silences linker warnings li

Re: [FFmpeg-devel] [PATCH v2 1/3] aarch64/vvc: Add w_avg

2024-09-26 Thread Zhao Zhili
> On Sep 26, 2024, at 20:17, Martin Storsjö wrote: > > On Thu, 26 Sep 2024, Zhao Zhili wrote: > >> --- a/libavcodec/aarch64/vvc/dsp_init.c >> +++ b/libavcodec/aarch64/vvc/dsp_init.c >> @@ -52,6 +52,37 @@ void ff_vvc_avg_12_neon(uint8_t *dst, >> ptrdiff_t dst_stride, >>

[FFmpeg-devel] [PATCH 3/4] avformat/mov: add referenced thumbnail streams to tile stream groups

2024-09-26 Thread James Almer
Use the reference information present in iref boxes of type thmb to include the relevant streams into a Tile Grid stream group. This does not yet export the relation of a thumbnail and an independent stream (not a grid). For this, a new Stream group type would probably be needed. Signed-off-by: Ja

Re: [FFmpeg-devel] [PATCH 1/4] avformat/avformat: add a new disposition to signal the stream is an HDR gainmap

2024-09-26 Thread Anton Khirnov
Quoting James Almer (2024-09-26 16:25:11) > On 9/26/2024 11:17 AM, Anton Khirnov wrote: > > Quoting James Almer (2024-09-26 14:06:25) > >> On 9/26/2024 3:00 AM, Anton Khirnov wrote: > >>> Quoting James Almer (2024-09-26 00:52:16) > HDR images photos taken by certain cameras split this as a sep

[FFmpeg-devel] [PATCH 4/4] avformat/mov: support parsing auxl iref type

2024-09-26 Thread James Almer
Use the reference information present in iref boxes of type auxl to include the relevant streams into a Tile Grid stream group. These streams are "auxiliar", which can be things like separate alpha planes and HDR gain maps. This does not yet export the relation of a said auxiliary streams and an in

[FFmpeg-devel] [RFC] 7.1 Release

2024-09-26 Thread Filip Mašić
On Tue, 24 Sept 2024 at 23:48, Michael Niedermayer wrote: > if someone can help with reviewing and applying, thats certainly welcome > I dont think i will find the time for alot of non trivial patches before > the release but a bigger problem is that the release branch is for bugfixes > mainly no

Re: [FFmpeg-devel] [PATCH v2 3/3] aarch64/vvc: Add dmvr

2024-09-26 Thread Martin Storsjö
On Mon, 23 Sep 2024, Zhao Zhili wrote: From: Zhao Zhili dmvr_8_12x20_c: 2.2 ( 1.00x) dmvr_8_12x20_neon: 0.5 ( 4.50x) dmvr_8_20x12_c: 2.0 ( 1.00x) dmvr_8_20x12_neon:

Re: [FFmpeg-devel] [PATCH v2 1/3] aarch64/vvc: Add w_avg

2024-09-26 Thread Martin Storsjö
On Thu, 26 Sep 2024, Zhao Zhili wrote: --- a/libavcodec/aarch64/vvc/dsp_init.c +++ b/libavcodec/aarch64/vvc/dsp_init.c @@ -52,6 +52,37 @@ void ff_vvc_avg_12_neon(uint8_t *dst, ptrdiff_t dst_stride,    const int16_t *src0, const int16_t *src

Re: [FFmpeg-devel] [RFC] 7.1 Release

2024-09-26 Thread Timo Rothenpieler
On 25.09.2024 00:48, Michael Niedermayer wrote: On Wed, Sep 25, 2024 at 12:38:29AM +0300, Dennis Mungai wrote: On Tue, 24 Sept 2024, 22:24 Ingo Oppermann, wrote: "Leavitt" (https://en.wikipedia.org/wiki/Henrietta_Swan_Leavitt) On 24 Sep 2024, at 17:47, Michael Niedermayer wrote: On Wed,

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement CRC with -1 initial and final value

2024-09-26 Thread Michael Niedermayer
Hi Traneptora On Wed, Sep 25, 2024 at 06:52:52PM -0400, Leo Izen wrote: > On 9/25/24 4:06 AM, Michael Niedermayer wrote: > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/ffv1.h| 1 + > > libavcodec/ffv1dec.c | 10 ++ > > libavcodec/ffv1enc.c | 12 +--- > > 3

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement CRC with -1 initial and final value

2024-09-26 Thread Michael Niedermayer
On Thu, Sep 26, 2024 at 09:51:48PM +0200, Michael Niedermayer wrote: > Hi Traneptora > > On Wed, Sep 25, 2024 at 06:52:52PM -0400, Leo Izen wrote: > > On 9/25/24 4:06 AM, Michael Niedermayer wrote: > > > Signed-off-by: Michael Niedermayer [...] > > > if (f->ec) { > > > -unsi

[FFmpeg-devel] [PATCH] Respect `append_list` flag in subtitle playlists

2024-09-26 Thread Jonathan Baecker
Ensure that when the `-hls_flags append_list` option is set, that *.vtt files in stream_vtt.m3u8 are correctly updated. This fixes https://trac.ffmpeg.org/ticket/11208 This is a bit of an ugly fix, let me know what you think. --- libavformat/hlsenc.c | 37 +

[FFmpeg-devel] [PATCH 2/5] compat/stdckdint: remove C++ version and the non checked generic fallback

2024-09-26 Thread James Almer
We only want these to be available for C source files. additionally, the generic fallback exists for non-C11 compilers, which we no longer support. Signed-off-by: James Almer --- compat/stdckdint/stdckdint.h | 270 +-- 1 file changed, 1 insertion(+), 269 deletions

[FFmpeg-devel] [PATCH 4/5] configure: include compat/stdckdint.h when required

2024-09-26 Thread James Almer
Signed-off-by: James Almer --- configure | 4 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 643ffddd19..b87e400fe4 100755 --- a/configure +++ b/configure @@ -7802,6 +7802,10 @@ check_builtin stdbit "stdbit.h assert.h" \ 'static_assert(__STDC_VERSION_STDBIT_H_

[FFmpeg-devel] [PATCH 3/5] compat/stdckdint: remove check for system stdckdint.h

2024-09-26 Thread James Almer
We will check for it during configure. Signed-off-by: James Almer --- compat/stdckdint/stdckdint.h | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/compat/stdckdint/stdckdint.h b/compat/stdckdint/stdckdint.h index d5fda2fee6..1994d2e5cf 100644 --- a/compat/stdc

[FFmpeg-devel] [PATCH 5/5] avformat/mov: use checked arithmetic functions in mov_read_stts()

2024-09-26 Thread James Almer
Signed-off-by: James Almer --- libavformat/mov.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index a2333ac1fd..bfb6d8d72c 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -28,6 +28,7 @@ #include #include #include

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: remove libopenjpeg decoder entry

2024-09-26 Thread Michael Niedermayer
On Wed, Sep 25, 2024 at 09:18:56PM +0530, Gyan Doshi wrote: > The decoder wrapper was removed in 60ccb3fe78 > --- > MAINTAINERS | 1 - > 1 file changed, 1 deletion(-) LGTM thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB It is what and why we do it that mat

Re: [FFmpeg-devel] [RFC] 7.1 Release

2024-09-26 Thread Michael Niedermayer
On Thu, Sep 26, 2024 at 12:27:58PM +0100, Filip Mašić wrote: > On Tue, 24 Sept 2024 at 23:48, Michael Niedermayer > wrote: > > > if someone can help with reviewing and applying, thats certainly welcome > > I dont think i will find the time for alot of non trivial patches before > > the release bu

[FFmpeg-devel] [PATCH v3] avcodec/videotoolbox: add AV1 hardware acceleration

2024-09-26 Thread Martin Storsjö
From: Jan Ekström Use AV1DecContext's current_obu to access the original OBUs, and feed them to videotoolbox, rather than the bare slice data passed via decode_slice. This requires a small addition to AV1DecContext, for keeping track of the current range of OBUs that belong to the current frame.

[FFmpeg-devel] [PATCH] Respect `omit_endlist` flag in subtitle playlists

2024-09-26 Thread Jonathan Baecker
Ensure that when the `-hls_flags omit_endlist` option is set, the `#EXT-X-ENDLIST` tag is also omitted from the `stream_vtt.m3u8` subtitle playlist. This maintains consistency with the behavior in other playlists when `omit_endlist` is specified. --- libavformat/hlsenc.c | 2 +- 1 file changed,

Re: [FFmpeg-devel] [PATCH] doc: Add email URLs for Fate samples-request

2024-09-26 Thread Michael Niedermayer
On Tue, Sep 24, 2024 at 08:30:07PM +0200, martin schitter wrote: > > > On 24.09.24 01:48, martin schitter wrote: > > > they should be T: > > > feel free to send a patch fixing that, or ill fix it later > > Although you fixed one occurrence of this issue by f2aba7 it's still present > on the next

[FFmpeg-devel] [PATCH 1/5] compat: add a fallback implementation of C23 stdckdint.h

2024-09-26 Thread James Almer
From: Justine Tunney Header contents taken from https://github.com/jart/jtckdint/commit/62df1fc0966926299253b7af46c23e345545 Signed-off-by: James Almer --- compat/stdckdint/stdckdint.h | 663 +++ tests/ref/fate/source| 1 + 2 files changed, 664 in

[FFmpeg-devel] [PATCH v2] avcodec/ffv1: Implement CRC with non zero initial and final value

2024-09-26 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/ffv1.h| 1 + libavcodec/ffv1dec.c | 10 ++ libavcodec/ffv1enc.c | 12 +--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/libavcodec/ffv1.h b/libavcodec/ffv1.h index 9aa04529228..c22325d2510 100644 --- a/libav