Re: [FFmpeg-devel] [PATCH] ffv1: implement remap for encode/decode_plane()

2025-03-10 Thread Michael Niedermayer
On Mon, Mar 10, 2025 at 06:48:29PM +0100, Lynne wrote: > On 10/03/2025 01:45, Michael Niedermayer wrote: > > Sponsored-by: Sovereign Tech Fund > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/ffv1dec.c | 20 - > > libavcodec/ffv1enc.c | 67 ++

[FFmpeg-devel] [PATCH v2 FFmpeg 5/20] libavfilter/dnn: libtorch add CUDA suppoort

2025-03-10 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn/dnn_backend_torch.cpp | 37 +++ 1 file changed, 37 insertions(+) diff --git a/libavfilter/dnn/dnn_backend_torch.cpp b/libavfilter/dnn/dnn_backend_torch.cpp index 2e4326d9d4..062821949d 100644 --- a/libavfilter/dnn/dnn_b

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/ffv1enc: Fix slice coding mode 1 with rgb frames

2025-03-10 Thread Michael Niedermayer
On Sun, Mar 09, 2025 at 11:58:04PM +0100, Michael Niedermayer wrote: > Sponsored-by: Sovereign Tech Fund > Signed-off-by: Michael Niedermayer > --- > libavcodec/ffv1enc.c | 4 ++-- > libavcodec/ffv1enc_template.c | 37 +-- > 2 files changed, 37 insertions

[FFmpeg-devel] [PATCH v2 6/6] avformat/flvdec: Use float for FLVMasteringMeta

2025-03-10 Thread Zhao Zhili
From: Zhao Zhili The precision should be enough for primaries and luminance. --- libavformat/flvdec.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index befa2ad021..b4d2d7e2b8 100644 --- a/libavformat/flvde

Re: [FFmpeg-devel] [PATCH v6 6/8] fftools/ffmpeg_graphprint: Add options for filtergraph printing

2025-03-10 Thread Stefano Sabatini
On date Saturday 2025-03-08 20:16:32 +, softworkz wrote: > From: softworkz > > The key benefits are: > > - Different to other graph printing methods, this is outputting: > - all graphs with runtime state > (including auto-inserted filters) > - each graph with its inputs and outputs >

Re: [FFmpeg-devel] [PATCH] swscale/utils: split off format code into new file

2025-03-10 Thread Ramiro Polla
On 3/10/25 16:18, Niklas Haas wrote: From: Niklas Haas utils.c is getting quite crowded, and I need a new place to dump a lot of format handling code for the ongoing rewrite. Rather than bloating this file even more, start splitting format handling helpers off into a new file. This also ren

Re: [FFmpeg-devel] [PATCH v6 7/8] fftools: Enable filtergraph printing and update docs

2025-03-10 Thread Stefano Sabatini
On date Saturday 2025-03-08 20:16:33 +, softworkz wrote: > From: softworkz > > Enables filtergraph printing and adds the options to the docs > > Signed-off-by: softworkz > --- > doc/ffmpeg.texi | 10 ++ > fftools/ffmpeg.c| 4 > fftools/ffmpeg_filter.c | 5 +++

Re: [FFmpeg-devel] [PATCH 3/4] avcodec/ffv1: Fix remap and float with golomb rice

2025-03-10 Thread Lynne
On 09/03/2025 23:58, Michael Niedermayer wrote: Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/ffv1dec.c | 37 + libavcodec/ffv1dec_template.c | 27 -- libavcodec/ffv1enc.c | 42 +++

Re: [FFmpeg-devel] [PATCH 3/4] avcodec/ffv1: Fix remap and float with golomb rice

2025-03-10 Thread Michael Niedermayer
On Mon, Mar 10, 2025 at 07:41:26PM +0100, Lynne wrote: > On 09/03/2025 23:58, Michael Niedermayer wrote: > > Sponsored-by: Sovereign Tech Fund > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/ffv1dec.c | 37 + > > libavcodec/ffv1dec_template.c | 27

[FFmpeg-devel] [PATCH v2 2/6] avformat/flvdec: Fix use sizeof(AVMasteringDisplayMetadata)

2025-03-10 Thread Zhao Zhili
From: Zhao Zhili sizeof AVMasteringDisplayMetadata isn't part of ABI. --- libavformat/flvdec.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 62baeafafd..7ea4275784 100644 --- a/libavformat/flvdec.c +++ b

Re: [FFmpeg-devel] [PATCH] avcodec/snow: Remove ff_snow_release_buffer()

2025-03-10 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patch attached. > > - Andreas > Will apply this patch tomorrow unless there are objections. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit

Re: [FFmpeg-devel] [PATCH] avutil/refstruct: Fix documentation

2025-03-10 Thread Stefano Sabatini
On date Monday 2025-03-10 05:39:30 +0100, Andreas Rheinhardt wrote: > Patch attached. > > - Andreas > From 0601964cbc4a9b1e5d78b8a8da76f1259cc56b52 Mon Sep 17 00:00:00 2001 > From: Andreas Rheinhardt > Date: Mon, 10 Mar 2025 05:38:18 +0100 > Subject: [PATCH] avutil/refstruct: Fix documentation >

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/ffv1enc_template: Be a bit more verbose on error

2025-03-10 Thread Michael Niedermayer
On Sun, Mar 09, 2025 at 11:58:06PM +0100, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavcodec/ffv1enc_template.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/ffv1enc_template.c b/libavcodec/ffv1enc_template.c > index d8160

[FFmpeg-devel] [PATCH v2 FFmpeg 1/20] configure: add tokenizers-cpp support

2025-03-10 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- configure | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 04b83a8868..7219faeaf2 100755 --- a/configure +++ b/configure @@ -285,6 +285,7 @@ External library support: --enable-libtls enable LibreS

[FFmpeg-devel] lavc/videotoolboxenc: add hevc main42210 and p210

2025-03-10 Thread Wang Bin
0001-lavc-videotoolboxenc-add-hevc-main42210-and-p210.patch Description: Binary data ___ 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...

Re: [FFmpeg-devel] [PATCH] Include field_mode information in NUT stream info

2025-03-10 Thread Michael Niedermayer
Hi On Mon, Mar 10, 2025 at 05:44:22PM +0100, Anders Rein wrote: > This will make it possible to transmit raw video over NUT without losing > the field order information. [...] > diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c > index 55efb114c3..abe4e3fb98 100644 > --- a/libavformat/nut

[FFmpeg-devel] [PATCH v2 1/6] tests: Add enhanced-flv-hevc-hdr10 for demux and mux HDR color info

2025-03-10 Thread Zhao Zhili
From: Zhao Zhili --- tests/fate/flvenc.mak | 4 + tests/ref/fate/enhanced-flv-hevc-hdr10 | 100 + 2 files changed, 104 insertions(+) create mode 100644 tests/ref/fate/enhanced-flv-hevc-hdr10 diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak i

[FFmpeg-devel] [PATCH v2 5/6] avformat/flvdec: Use appropriate types in FLVMetaVideoColor

2025-03-10 Thread Zhao Zhili
From: Zhao Zhili This also reduce memory usage. --- libavformat/flvdec.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index b5c468a1d1..befa2ad021 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@

[FFmpeg-devel] [PATCH v2 4/6] avformat/flvdec: Remove one level of indentation

2025-03-10 Thread Zhao Zhili
From: Zhao Zhili Also remove the condition of AMF_DATA_TYPE_BOOL when parse color info. There is no AMF_DATA_TYPE_BOOL type in color info. --- libavformat/flvdec.c | 66 +--- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/libavformat/flvde

[FFmpeg-devel] [PATCH v2 3/6] avformat/flvdec: Put FLVMetaVideoColor inside FLVContext directly

2025-03-10 Thread Zhao Zhili
From: Zhao Zhili 1. Rename metaVideoColor to meta_color_info 2. Allocated FLVMetaVideoColor together with FLVContext 3. Improve the use of meta_color_info_flag. Do a sequence of strcmp only if meta_color_info_flag is FLV_COLOR_INFO_FLAG_PARSING. 4. Check return value of amf_parse_object(). --- l

[FFmpeg-devel] [PATCH v2 8/8] avformat/flvdec: Use appropriate error code

2025-03-10 Thread Zhao Zhili
From: Zhao Zhili --- libavformat/flvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index b431dabffc..c51f64a588 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -489,7 +489,7 @@ static int amf_get_string(AVIOCo

[FFmpeg-devel] [PATCH v2 7/8] avformat/flvdec: Fix error handling of parse_video_color_info

2025-03-10 Thread Zhao Zhili
From: Zhao Zhili Some error should not be ignored. --- libavformat/flvdec.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index b4d2d7e2b8..b431dabffc 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flv

Re: [FFmpeg-devel] [PATCH v7 1/8] Add generic metadata injection using AV_PKT_DATA_METADATA_UPDATE

2025-03-10 Thread Andreas Rheinhardt
Romain Beauxis: > libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet > extra data, attach them to the next decoded frame. > > --- > libavcodec/decode.c | 20 > 1 file changed, 20 insertions(+) > > diff --git a/libavcodec/decode.c b/libavcodec/decode.c > inde

Re: [FFmpeg-devel] [PATCH v6 7/8] fftools: Enable filtergraph printing and update docs

2025-03-10 Thread Soft Works
> -Original Message- > From: Stefano Sabatini > Sent: Dienstag, 11. März 2025 00:04 > To: FFmpeg development discussions and patches > Cc: softworkz > Subject: Re: [FFmpeg-devel] [PATCH v6 7/8] fftools: Enable filtergraph > printing and update docs > > On date Saturday 2025-03-08 20:1

[FFmpeg-devel] [PATCH v2 FFmpeg 7/20] libavfilter/dnn_interface.h: define new DNNExecParams DNNExecZeroShotClassificationParams

2025-03-10 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn_interface.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavfilter/dnn_interface.h b/libavfilter/dnn_interface.h index f4552d4287..4252cd2231 100644 --- a/libavfilter/dnn_interface.h +++ b/libavfilter/dnn_interface.h @@ -92,

Re: [FFmpeg-devel] [PATCH] avutil/frame: add new functions to get frame side data

2025-03-10 Thread Leandro Santiago
Just pinging to see if anyone has had time to look at this patch :-) I also noticed that this patch did not trigger an entry on patchwork. Is it normal or should the patches go to patchwork automatically? Also, what's the correct approach within ffmpeg codebase to implement unit tests? Or would

Re: [FFmpeg-devel] [PATCH] Include field_mode information in NUT stream info

2025-03-10 Thread Michael Niedermayer
Hi Anders On Mon, Mar 10, 2025 at 09:24:05PM +0100, Anders Rein wrote: > Hi! Thanks for the feedback.I have no problem adding the "X-" prefix > to the field order key, however I was just following the way > "r_frame_rate" was passed. As far as I can see this field is not > mentioned in nut.txt eit

Re: [FFmpeg-devel] [PATCH v2] lavc/vvc: Fix NumEntryPoints derivation

2025-03-10 Thread Nuo Mi
On Sun, Mar 9, 2025 at 9:57 PM Nuo Mi wrote: > > > On Thu, Mar 6, 2025 at 2:40 AM Frank Plowman > wrote: > >> If pps_single_slice_per_subpic_flag is 1, >> slice_{width,height}_in_tiles are undefined and we must instead get the >> dimensions of the slice by referring to the corresponding subpictu

Re: [FFmpeg-devel] [PATCH] Include field_mode information in NUT stream info

2025-03-10 Thread Anders Rein
Oh my bad. I searched on Google "nut txt". Second hit: https://ffmpeg.org/~michael/nut.txt. I'll modify the patch to include the "X-" prefix. Thanks. On Mon, 10 Mar 2025 at 21:55, Michael Niedermayer wrote: > > Hi Anders > > On Mon, Mar 10, 2025 at 09:24:05PM +0100, Anders Rein wrote: > > Hi! Th

Re: [FFmpeg-devel] [PATCH] lavc: Replace 181 magic number with ITU_T_T35_COUNTRY_CODE_US

2025-03-10 Thread Devin Heitmueller
On Mon, Mar 10, 2025 at 5:57 AM Tomas Härdin wrote: > Just an aside: I've had potential clients ask about decoding teletext > from the video essence itself, for stuffing into MXF's VBI thing. Here > in Sweden subtitles are still done with teletext. I wouldn't be > surprised if some broadcasters us

[FFmpeg-devel] [PATCH v2 FFmpeg 17/20] libavfilter: turn dnn_classify to multimedia filter. Classify CLIP/CLAP implementation.

2025-03-10 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/Makefile |2 +- libavfilter/allfilters.c |2 +- libavfilter/avf_dnn_classify.c | 1283 libavfilter/vf_dnn_classify.c | 308 4 files changed, 1285 insertions(+), 310 deletions(-) cr

Re: [FFmpeg-devel] [PATCH v6 0/8] print_graphs: Complete Filtergraph Printing

2025-03-10 Thread Stefano Sabatini
On date Saturday 2025-03-08 20:16:26 +, ffmpegagent wrote: > This new version of the patchset starts by extracting the text formatting > and writing APIs from ffprobe.c into a subfolder under fftools. The type > naming follows public API naming style, ramping up for making it a public > API in

[FFmpeg-devel] [PATCH v2 FFmpeg 13/20] libavfilter/dnn/dnn_backend_torch: Clxp model loading implementation

2025-03-10 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn/dnn_backend_torch.cpp | 297 +- 1 file changed, 288 insertions(+), 9 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_torch.cpp b/libavfilter/dnn/dnn_backend_torch.cpp index ea09845e05..3a0ef931f9 100644 --- a/liba

[FFmpeg-devel] [PATCH v2 FFmpeg 4/20] configure: libtorch CUDA support

2025-03-10 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- configure | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 7219faeaf2..ac074279cb 100755 --- a/configure +++ b/configure @@ -285,6 +285,7 @@ External library support: --enable-libtls enable LibreSS

[FFmpeg-devel] [PATCH v2 FFmpeg 12/20] libavfilter/dnn/dnn_backend_torch: Add ClxpContext to THModel

2025-03-10 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn/dnn_backend_torch.cpp | 26 ++ 1 file changed, 26 insertions(+) diff --git a/libavfilter/dnn/dnn_backend_torch.cpp b/libavfilter/dnn/dnn_backend_torch.cpp index 062821949d..ea09845e05 100644 --- a/libavfilter/dnn/dnn_ba

[FFmpeg-devel] [PATCH v2 FFmpeg 16/20] libavfilter/dnn/dnn_backend_torch: CLIP/CLAP Inference handling and support for detection bboxes from dnn_detect filter

2025-03-10 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn/dnn_backend_torch.cpp | 411 +++--- 1 file changed, 311 insertions(+), 100 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_torch.cpp b/libavfilter/dnn/dnn_backend_torch.cpp index 1d2bfb191a..26b57f08f3 100644 --- a/li

Re: [FFmpeg-devel] [PATCH v7 1/8] Add generic metadata injection using AV_PKT_DATA_METADATA_UPDATE

2025-03-10 Thread Romain Beauxis
Le lun. 10 mars 2025 à 15:46, Michael Niedermayer a écrit : > > On Mon, Mar 10, 2025 at 08:50:06AM -0500, Romain Beauxis wrote: > > Le dim. 9 mars 2025 à 13:31, Michael Niedermayer > > a écrit : > > > > > > On Tue, Feb 25, 2025 at 04:01:14PM -0600, Romain Beauxis wrote: > > > > libavcodec/decode.

Re: [FFmpeg-devel] [PATCH] ffv1: implement remap for encode/decode_plane()

2025-03-10 Thread Lynne
On 10/03/2025 01:45, Michael Niedermayer wrote: Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/ffv1dec.c | 20 - libavcodec/ffv1enc.c | 67 ++-- 2 files changed, 71 insertions(+), 16 deletions(-) diff -

Re: [FFmpeg-devel] [PATCH] [WIP] lavc: add an av1_vulkan encoder

2025-03-10 Thread Michael Niedermayer
Hi Lynne On Mon, Mar 10, 2025 at 04:17:04AM +0100, Lynne wrote: > This commit adds a Vulkan AV1 encoder, using the native acceleration API. > > This commit and patchset needs more testing, hence WIP for now. > --- > configure |1 + > libavcodec/Makefile|2

Re: [FFmpeg-devel] [PATCH v7 1/8] Add generic metadata injection using AV_PKT_DATA_METADATA_UPDATE

2025-03-10 Thread Romain Beauxis
Le lun. 10 mars 2025 à 02:13, Andreas Rheinhardt a écrit : > > Romain Beauxis: > > libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet > > extra data, attach them to the next decoded frame. > > > > --- > > libavcodec/decode.c | 20 > > 1 file changed, 20 inser

Re: [FFmpeg-devel] [PATCH] swscale: aarch64: Simplify the assignment of lumToYV12

2025-03-10 Thread Martin Storsjö
On Tue, 4 Mar 2025, Martin Storsjö wrote: We normally don't need else statements here; the common pattern is to assign lower level SIMD implementations first, then conditionally reassign higher level ones afterwards, if supported. --- Sorry, I didn't notice this while reviewing the patch, until