[FFmpeg-devel] SHA-265 Digest support for latest ONVIF standard - Patch from 2022

2024-09-04 Thread roger rjh.org.uk
The ONVIF standard has recently added SHA-256 Digest for RTSP Authentication as an alternative to MD5. There is a patch from 2022 on Patchwork (and ffmpeg-devel mailing list post) from Aki Sakurai that I have been using and is working well for me. [FFmpeg-devel] [PATCH] avformat/httpauth

[FFmpeg-devel] [PATCH] doc/filters: update uspp availability status

2024-09-04 Thread Gyan Doshi
The filter was disabled in 95054bfa48 and re-enabled in 771c27119d --- doc/filters.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 2eb4a380fb..b1ca9ad2f3 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -24463,7 +24463,7 @@

[FFmpeg-devel] [PATCH] avformat/rtpdec: fix integer overflow in start_time_realtime calculation

2024-09-04 Thread jon
From: Jonathan Baudanza I encountered this problem with NTP timestamps that are extremely old, like from January, 1990. Although RFC3550 suggests that the timestamps in the RTCP packets use the actual wallclock, some implementations use other clocks, such as the CLOCK_MONOTONIC on linux. I'm my

Re: [FFmpeg-devel] [RFC/PATCH] MV-HEVC decoding

2024-09-04 Thread Anton Khirnov
Quoting Anton Khirnov (2024-09-03 11:57:48) > If nobody objects or wants more time for review, I'd like to push > patches up to 24 (excluding 04 and 05) in a few days. That includes > mainly > * av_opt_set_array(), which we want anyway, whatever happens to the rest > of the set; > * adding HEVC m

[FFmpeg-devel] [PATCH v4 00/17] Add avcodec_get_supported_config()

2024-09-04 Thread Niklas Haas
Changes since v3: - Added ProRes tagging - Improved wording of comment - Fixed crash ___ 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-devel] [PATCH v4 01/17] avcodec/internal: add FFCodec.color_ranges

2024-09-04 Thread Niklas Haas
From: Niklas Haas I went through all codecs and put them into five basic categories: 1. JPEG range only 2. MPEG range only 3. Explicitly tagged 4. Broken (codec supports both but encoder ignores tags) 5. N/A (headerless or pseudo-formats) Filters in category 5 remain untouched. The rest gain an

[FFmpeg-devel] [PATCH v4 02/17] avcodec: add avcodec_get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas This replaces the myriad of existing lists in AVCodec by a unified API call, allowing us to (ultimately) trim down the sizeof(AVCodec) quite substantially, while also making this more trivially extensible. In addition to the already covered lists, add two new entries for color

[FFmpeg-devel] [PATCH v4 03/17] avcodec/encode: switch to avcodec_get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas --- libavcodec/encode.c | 90 - 1 file changed, 57 insertions(+), 33 deletions(-) diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 34658d13d0..bc5acf985d 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -563,

[FFmpeg-devel] [PATCH v4 04/17] avcodec/allcodecs: add backcompat for new config API

2024-09-04 Thread Niklas Haas
From: Niklas Haas In order to avoid breaking older clients not yet using the new API, we need to add backwards compatibility for codecs which have switched from init_static() to get_supported_config(). This function can be removed entirely once the deprecated static fields are removed. --- liba

[FFmpeg-devel] [PATCH v4 13/17] fftools/ffmpeg_filter: simplify choose_pix_fmts

2024-09-04 Thread Niklas Haas
From: Niklas Haas The only meaningful difference between choose_pix_fmts and the default code was the inclusion of an extra branch for `keep_pix_fmt` being true. However, in this case, we either: 1. Force the specific `ofp->format` that we inherited from ofilter_bind_ost, or if no format was

[FFmpeg-devel] [PATCH v4 14/17] fftools/ffmpeg_mux_init: factor out binding filters to output streams

2024-09-04 Thread Niklas Haas
From: Anton Khirnov --- fftools/ffmpeg_mux_init.c | 137 ++ 1 file changed, 78 insertions(+), 59 deletions(-) diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c index 6b101dcbbc..c6dc4a0699 100644 --- a/fftools/ffmpeg_mux_init.c +++ b/fftools/

[FFmpeg-devel] [PATCH v4 15/17] fftools/ffmpeg_filter: switch to avcodec_get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas Signed-off-by: Anton Khirnov --- fftools/ffmpeg.h | 7 +-- fftools/ffmpeg_filter.c | 25 ++--- fftools/ffmpeg_mux_init.c | 35 ++- 3 files changed, 49 insertions(+), 18 deletions(-) diff --git a/fftools/ffmpe

[FFmpeg-devel] [PATCH v4 17/17] fftools/ffmpeg_filter: remove YUVJ hack

2024-09-04 Thread Niklas Haas
From: Niklas Haas This is no longer needed, since we now correctly negotiate the required range from the mjpeg encoder via avcodec_get_supported_config(). Signed-off-by: Anton Khirnov --- fftools/ffmpeg_mux_init.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/fftools/ffmp

[FFmpeg-devel] [PATCH v4 16/17] fftools/ffmpeg_filter: propagate codec yuv metadata to filters

2024-09-04 Thread Niklas Haas
From: Niklas Haas To convert between color spaces/ranges, if needed by the codec properties. Signed-off-by: Anton Khirnov --- fftools/ffmpeg.h | 4 fftools/ffmpeg_filter.c | 26 ++ fftools/ffmpeg_mux_init.c | 12 3 files changed, 42 inserti

[FFmpeg-devel] [PATCH v4 05/17] avcodec/libx265: switch to get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas --- libavcodec/libx265.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index de0ad03ee3..513f473307 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -949,14 +949,28

[FFmpeg-devel] [PATCH v4 06/17] avcodec/libvpxenc: switch to get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas --- libavcodec/libvpxenc.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 1d5e9c33e8..228ede7c84 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -2088,13 +

[FFmpeg-devel] [PATCH v4 07/17] avcodec/libaomenc: switch to get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas --- libavcodec/libaomenc.c | 40 ++-- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 32bda992cb..0f7571ee7a 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.

[FFmpeg-devel] [PATCH v4 08/17] avcodec/mjpegenc: switch to get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas This codec's capabilities should be set dynamically based on the value of strict_std_compliance, when available. This will allow us to finally get rid of the strictness hack in ffmpeg_filter.c. --- libavcodec/mjpegenc.c | 24 ++-- 1 file changed, 22 insertio

[FFmpeg-devel] [PATCH v4 09/17] avcodec/codec_internal: nuke init_static_data()

2024-09-04 Thread Niklas Haas
From: Niklas Haas All hail get_supported_config() --- libavcodec/allcodecs.c | 7 +-- libavcodec/codec_internal.h | 8 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 0d61b665af..d773ac36c2 100644 --- a/libavc

[FFmpeg-devel] [PATCH v4 10/17] fftools/opt_common: switch to avcodec_get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas While rewriting this macro, I decided to make it a bit more flexible so it can work for all of the fields (including future fields) in a more generic way, and to also print the channel layout using an AVBPrint to avoid hard-coding the assumption that the length is less than 128

[FFmpeg-devel] [PATCH v4 12/17] fftools/ffmpeg_mux_init: switch to avcodec_get_supported_config()

2024-09-04 Thread Niklas Haas
From: Niklas Haas --- fftools/ffmpeg_mux_init.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c index e84fa9719f..6b101dcbbc 100644 --- a/fftools/ffmpeg_mux_init.c +++ b/fftools/ffmpeg_mux_init.c @@

[FFmpeg-devel] [PATCH v4 11/17] fftools: drop unused/hacky macros

2024-09-04 Thread Niklas Haas
From: Niklas Haas Having macros initialize local variables seems strange to me, and there are no more current users of these macros. (The one that was commented out was incorrect anyway, since the macro has changed in the meantime) --- fftools/cmdutils.h | 13 - fftools/ffmpeg_f

Re: [FFmpeg-devel] [PATCH v3 0/3] framerate / streamcopy

2024-09-04 Thread Anton Khirnov
Quoting Nicolas Gaullier (2024-09-03 10:02:27) > This is the whole serie properly posted with the latest addition, the > third patch related to ffmpeg. This last patch is independent but > somewhat related, so maybe it is a good thing to review it to possibly > apply the complete serie as a whole.

Re: [FFmpeg-devel] [PATCH 1/2] MAINTAINERS: aacdec_usac seems not actively maintained

2024-09-04 Thread Michael Niedermayer
On Tue, Sep 03, 2024 at 06:22:00AM +0200, Lynne via ffmpeg-devel wrote: > On 02/09/2024 16:32, Michael Niedermayer wrote: > > My ping on a patch on 21 Jul has no reaction > > > > Signed-off-by: Michael Niedermayer > > --- > > MAINTAINERS | 1 + > > 1 file changed, 1 insertion(+) > > > > diff

[FFmpeg-devel] [PATCH v2] avcodec/riscv: add h264 qpel

2024-09-04 Thread J. Dekker
From: Niklas Haas checkasm: bench runs 131072 (1 << 17) avg_h264_qpel_4_mc00_8_c: 38.2 ( 1.00x) avg_h264_qpel_4_mc00_8_rvv_i32: 27.7 ( 1.38x) avg_h264_qpel_4_mc01_8_c: 225.7 ( 1.00x) avg_h264_qpel_4_mc01_8_rvv_i32:

Re: [FFmpeg-devel] [PATCH 02/10] hw_base_encode: move VAAPI SPS/PPS constructors to a shared file

2024-09-04 Thread Tong Wu
Lynne: >Subject: [FFmpeg-devel] [PATCH 02/10] hw_base_encode: move VAAPI SPS/PPS >constructors to a shared file > >--- > libavcodec/Makefile | 2 +- > libavcodec/hw_base_encode_h264.c | 265 >+++ libavcodec/hw_base_encode_h264.h | 53 >+++ > libavcodec/

Re: [FFmpeg-devel] [PATCH 03/10] hw_base_encode: allocate DPB image upfront

2024-09-04 Thread Tong Wu
Lynne: >Subject: [FFmpeg-devel] [PATCH 03/10] hw_base_encode: allocate DPB image >upfront > >Vulkan requires this, as it needs to initialize state upfront. >--- > libavcodec/d3d12va_encode.c | 6 -- > libavcodec/hw_base_encode.c | 6 ++ > libavcodec/vaapi_encode.c | 5 - > 3 files change

Re: [FFmpeg-devel] [PATCH v4 00/17] Add avcodec_get_supported_config()

2024-09-04 Thread Niklas Haas
On Wed, 04 Sep 2024 13:02:29 +0200 Niklas Haas wrote: > Changes since v3: > > - Added ProRes tagging > - Improved wording of comment > - Fixed crash > > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffm

[FFmpeg-devel] [PATCH] lavf/tls_mbedtls: restrict TLSv1.3 verification workaround to affected version

2024-09-04 Thread sfan5
From 57b37df52c7d528a1ce926cd7a7d75f62f6b46c6 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 4 Sep 2024 17:56:05 +0200 Subject: [PATCH] lavf/tls_mbedtls: restrict TLSv1.3 verification workaround to affected version Now that mbedTLS 3.6.1 is released we know that only 3.6.0 contains this regress

Re: [FFmpeg-devel] [PATCH 02/10] hw_base_encode: move VAAPI SPS/PPS constructors to a shared file

2024-09-04 Thread Lynne via ffmpeg-devel
On 04/09/2024 16:09, Tong Wu wrote: Lynne: Subject: [FFmpeg-devel] [PATCH 02/10] hw_base_encode: move VAAPI SPS/PPS constructors to a shared file --- libavcodec/Makefile | 2 +- libavcodec/hw_base_encode_h264.c | 265 +++ libavcodec/hw_base_encode_h264.

Re: [FFmpeg-devel] [PATCH 03/10] hw_base_encode: allocate DPB image upfront

2024-09-04 Thread Lynne via ffmpeg-devel
On 04/09/2024 16:36, Tong Wu wrote: Lynne: Subject: [FFmpeg-devel] [PATCH 03/10] hw_base_encode: allocate DPB image upfront Vulkan requires this, as it needs to initialize state upfront. --- libavcodec/d3d12va_encode.c | 6 -- libavcodec/hw_base_encode.c | 6 ++ libavcodec/vaapi_encode.c

Re: [FFmpeg-devel] [PATCH] doc/filters: update uspp availability status

2024-09-04 Thread Gyan Doshi
On 2024-09-04 01:33 pm, Gyan Doshi wrote: The filter was disabled in 95054bfa48 and re-enabled in 771c27119d Will push tomorrow. Regards, Gyan --- doc/filters.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 2eb4a380fb..b

Re: [FFmpeg-devel] [PATCH 2/2] MAINTAINERS: mark vf_volumedetect as unmaintained

2024-09-04 Thread Michael Niedermayer
Hi Yiğithan Yiğit On Mon, Sep 02, 2024 at 11:52:52PM +0200, Yigithan Yigit wrote: > Hi Michael, > > I am new to community, and I am not sure about qualifications of maintainer > but If you prefer I can be the maintainer. some libavfilter filters may be difficult to maintain currently (thats be

Re: [FFmpeg-devel] [PATCH 2/2] MAINTAINERS: mark vf_volumedetect as unmaintained

2024-09-04 Thread Michael Niedermayer
On Wed, Sep 04, 2024 at 09:26:19PM +0200, Michael Niedermayer wrote: > Hi Yiğithan Yiğit > > On Mon, Sep 02, 2024 at 11:52:52PM +0200, Yigithan Yigit wrote: > > Hi Michael, > > > > I am new to community, and I am not sure about qualifications of maintainer > > but If you prefer I can be the main

Re: [FFmpeg-devel] [PATCH] doc/filters: update uspp availability status

2024-09-04 Thread Michael Niedermayer
On Wed, Sep 04, 2024 at 01:33:50PM +0530, Gyan Doshi wrote: > The filter was disabled in 95054bfa48 and re-enabled in 771c27119d > --- > doc/filters.texi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) LGTM thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040

Re: [FFmpeg-devel] [PATCH 06/42] lavc: add HEVC Multiview Main profile

2024-09-04 Thread Michael Niedermayer
On Tue, Aug 27, 2024 at 05:04:46PM +0200, Anton Khirnov wrote: > --- > doc/APIchanges| 3 +++ > libavcodec/defs.h | 1 + > libavcodec/hevc/ps.c | 21 + > libavcodec/profiles.c | 1 + > libavcodec/version.h | 2 +- > 5 files changed, 15 insertions(+), 13 deleti

[FFmpeg-devel] [PATCH] lavfi/avfiltergraph: fix leak on error

2024-09-04 Thread Marvin Scholz
Introduced in eddffbedb3443d5a4fe642de6e35b9e6a35cfda7 Fixes: CID1618897 Resource leak --- libavfilter/avfiltergraph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index c84dd3cf25..3946f04b53 100644 --- a/libavfi

[FFmpeg-devel] [PATCH v3 1/2] avcodec/jpeg2000dec: Fix FF_DWT97_INT to pass the conformance testing defined in ISO/IEC 15444-4.

2024-09-04 Thread Osamu Watanabe
This commit fixes the problem described below on the integer version of the inverse DWT processing (FF_DWT97_INT, https://trac.ffmpeg.org/ticket/10123), which is activated with `-flags +bitexact`. - Problem - The tests for the following codestreams were failed with `-flags +bitexact`. - p0

[FFmpeg-devel] [PATCH v3 2/2] avcodec/jpeg2000dec: Update to JPEG 2000 related FATE refs with the fix of FF_DWT97_INT (integer implementation of DWT 97)

2024-09-04 Thread Osamu Watanabe
Signed-off-by: Osamu Watanabe --- tests/ref/fate/j2k-dwt| 59 --- tests/ref/fate/jpeg2000-dcinema | 4 +- tests/ref/fate/jpeg2000dec-p0_04 | 2 +- tests/ref/fate/jpeg2000dec-p0_05 | 2 +- tests/ref/fate/jpeg2000dec

[FFmpeg-devel] [PATCH] libavcodec: implementation of DNxUncompressed decoder

2024-09-04 Thread Martin Schitter
This is a second attempt to contribute the corrected code of an AVID DNxUncompressed / SMTPE RDD 50 decoder. Thanks Martin --- Changelog | 1 + doc/general_contents.texi | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/codec_desc.c |

Re: [FFmpeg-devel] [PATCH 1/4, v2] avcodec/amfenc: Fixes the color information in the output.

2024-09-04 Thread Cameron Gutman
On Thu, Aug 1, 2024 at 6:51 AM Araz Iusubov wrote: > > From: Michael Fabian 'Xaymar' Dirks > > added 10 bit support for amf hevc. > > before: > > command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format > d3d11 -i test_10bit_file.mkv -an -c:v h264_amf res.dx11_hw_h264.mkv > o

[FFmpeg-devel] [PATCH v3] tests/fate/hlsenc: add test case for var stream map of hlsenc

2024-09-04 Thread Steven Liu
Output var stream map m3u8 list file, and check the list file correct. Signed-off-by: Steven Liu --- tests/fate-run.sh | 4 tests/fate/hlsenc.mak | 17 + 2 files changed, 21 insertions(+) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 6ae0320c60..12d8faa65b 1

[FFmpeg-devel] [PATCH] avcodec/amfenc: Add support for on-demand key frames

2024-09-04 Thread Cameron Gutman
Signed-off-by: Cameron Gutman --- libavcodec/amfenc.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c index 41eaef9758..6f2b211d14 100644 --- a/libavcodec/amfenc.c +++ b/libavcodec/amfenc.c @@ -766,11