[FFmpeg-devel] [PATCH v7 0/7] print_graphs: Complete Filtergraph Printing

2025-03-11 Thread ffmpegagent
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 the future without another big renaming. The extraction of the text fo

[FFmpeg-devel] [PATCH 1/2] avutil/log, hwcontext: Add AV_CLASS_CATEGORY_HWDEVICE

2025-03-11 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges| 3 +++ libavutil/hwcontext.c | 1 + libavutil/log.c | 1 + libavutil/log.h | 1 + libavutil/version.h | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 7d

[FFmpeg-devel] [PATCH 0/2] Improve HWDeviceContext logging

2025-03-11 Thread ffmpegagent
This changeset * adds an av class category for hw device contexts * assigns a color to it * adds an item_name function to the av class for hw device context Before == [AVHWDeviceContext @ 0260A9C63E00] Selecting d3d11va adapter 2 [AVHWDeviceContext @ 0260A9C63E00] Using device 80

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/vc2enc: Use LUT to assemble interleaved golomb, code

2025-03-11 Thread Andreas Rheinhardt
Lynne: > On 12/03/2025 04:10, Andreas Rheinhardt wrote: >> Patches attached. >> >> - Andreas > > First patch is wild, its surprising no one considered inverting the way > decoder parses codes for an encoder yet. I didn't even look at the decoder. (It is actually surprising that it took until 512e

[FFmpeg-devel] [PATCH v7 6/7] fftools/ffmpeg_graphprint: Add options for filtergraph printing

2025-03-11 Thread softworkz
From: softworkz Enables filtergraph printing and adds the options to the docs 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 - all filters

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/vc2enc: Use LUT to assemble interleaved golomb, code

2025-03-11 Thread Lynne
On 12/03/2025 04:10, Andreas Rheinhardt wrote: Patches attached. - Andreas First patch is wild, its surprising no one considered inverting the way decoder parses codes for an encoder yet. Rather than ORing and using put_bits63, I think it would make more sense to write out each chunk using p

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

2025-03-11 Thread Steven Liu
Zhao Zhili 于2025年3月11日周二 10:35写道: > > 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 --

Re: [FFmpeg-devel] [PATCH] avcodec/sbcdec_data: Merge data into header

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

[FFmpeg-devel] [PATCH v7 7/7] fftools/ffprobe: Rename AVTextFormatContext variables (w => tfc)

2025-03-11 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffprobe.c | 512 +++--- 1 file changed, 256 insertions(+), 256 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 4a90bc4824..9f869b41b3 100644 --- a/fftools/ffprobe.c +++ b/fftools/

[FFmpeg-devel] [PATCH v7 2/7] fftools/ffprobe: Change to use textformat api

2025-03-11 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/Makefile | 12 + fftools/ffprobe.c | 1849 - 2 files changed, 142 insertions(+), 1719 deletions(-) diff --git a/fftools/Makefile b/fftools/Makefile index 4499799818..664b73b161 100644 --- a/ffto

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

2025-03-11 Thread Soft Works
> -Original Message- > From: Stefano Sabatini > Sent: Dienstag, 11. März 2025 00:03 > To: FFmpeg development discussions and patches > Cc: softworkz > Subject: Re: [FFmpeg-devel] [PATCH v6 6/8] fftools/ffmpeg_graphprint: > Add options for filtergraph printing Hi Stefano, I've made

[FFmpeg-devel] [PATCH v7 5/7] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-03-11 Thread softworkz
From: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 libavfilter/version.h | 2 +- 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 7da9297b01..923c880902 100644

[FFmpeg-devel] [PATCH v7 4/7] fftools/ffmpeg_filter: Move some declaration to new header file

2025-03-11 Thread softworkz
From: softworkz to allow print_graph to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 188 +--- fftools/ffmpeg_filter.h | 232 2 files changed, 233 insertions(+), 187 deletions(-) create mode

[FFmpeg-devel] [PATCH v7 3/7] fftools/ffprobe: Rename writer_print_section_* and WriterContext

2025-03-11 Thread softworkz
From: softworkz separated for better clarity of the preceding commit Signed-off-by: softworkz ren --- fftools/ffprobe.c | 361 +++--- 1 file changed, 178 insertions(+), 183 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index f398057df7

[FFmpeg-devel] [PATCH v7 1/7] fftools/textformat: Extract and generalize textformat api from ffprobe.c

2025-03-11 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 672 + fftools/textformat/avtextformat.h | 171 fftools/textformat/avtextwriters.h | 68 +++ fftools/textformat/tf_compact.c| 282 fftools/textformat/tf_defa

Re: [FFmpeg-devel] [PATCH] avcodec/pthread*: Mark init, free, flush functions as av_cold

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

Re: [FFmpeg-devel] [PATCH] all: Fix doxy comments wrongly designated as trailing ///

2025-03-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patch attached. > > - Andreas > > Will apply this patch tonight 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 1/3] avcodec/tests/avcodec: Silence deprecation warnings

2025-03-11 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,

Re: [FFmpeg-devel] [PATCH] avcodec/x86/hevc/dsp_init: Rename, ff_hevc_put_hevc->ff_hevc_put

2025-03-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patch attached. > > - Andreas > Now truely attached. - Andreas From 778df2069a87d32763f052908a6405c96ac9f30e Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 23 Jun 2022 03:19:49 +0200 Subject: [PATCH] avcodec/x86/hevc/dsp_init: Rename ff_hevc_put_hevc->ff_hev

[FFmpeg-devel] [PATCH] avcodec/x86/hevc/dsp_init: Rename, ff_hevc_put_hevc->ff_hevc_put

2025-03-11 Thread Andreas Rheinhardt
Patch attached. - Andreas ___ 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 1/2] avcodec/vc2enc: Use LUT to assemble interleaved golomb, code

2025-03-11 Thread Andreas Rheinhardt
Patches attached. - Andreas From 362a2cdad8717c016cd05e8d782260bd1aa0751a Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 12 Mar 2025 03:26:09 +0100 Subject: [PATCH 1/2] avcodec/vc2enc: Use LUT to assemble interleaved golomb code Up until now, the encoder processed only one bit at

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

2025-03-11 Thread Niklas Haas
On Mon, 10 Mar 2025 16:18:11 +0100 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 ne

Re: [FFmpeg-devel] [PATCH 04/12] all: Use put_bytes_output() instead of put_bits_ptr - pb->buf

2025-03-11 Thread Michael Niedermayer
Hi Andreas On Sun, Mar 09, 2025 at 07:18:34PM +0100, Andreas Rheinhardt wrote: > Andreas Rheinhardt: > > Avoids accessing internals of PutBitContext. [...] > > @@ -323,7 +323,7 @@ static int swf_write_header(AVFormatContext *s) > > put_bits(&p, 5, 0); > > > > flush_put_bits(&p)

Re: [FFmpeg-devel] hevc: disable Unknown profile warning for small build

2025-03-11 Thread Andreas Rheinhardt
Sean McGovern: > Hi, > > > On Tue, Mar 11, 2025, 20:45 Wang Bin wrote: > >> annoying >> ___ >> ffmpeg-devel mailing list >> ffmpeg-devel@ffmpeg.org >> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel >> >> To unsubscribe, visit link above, or email >>

Re: [FFmpeg-devel] [RFC] New swscale internal design prototype

2025-03-11 Thread Rémi Denis-Courmont
Le 10 mars 2025 15:14:46 GMT+02:00, Niklas Haas a écrit : >On Sun, 09 Mar 2025 17:57:48 -0700 Rémi Denis-Courmont wrote: >> >> >> Le 9 mars 2025 12:57:47 GMT-07:00, Niklas Haas a écrit : >> >On Sun, 09 Mar 2025 11:18:04 -0700 Rémi Denis-Courmont >> >wrote: >> >> Hi, >> >> >> >> Le 8 mars 202

Re: [FFmpeg-devel] hevc: disable Unknown profile warning for small build

2025-03-11 Thread Sean McGovern
Hi, On Tue, Mar 11, 2025, 20:45 Wang Bin wrote: > annoying > ___ > 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

[FFmpeg-devel] hevc: disable Unknown profile warning for small build

2025-03-11 Thread Wang Bin
annoying 0001-hevc-disable-Unknown-profile-warning-for-small-build.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-d

[FFmpeg-devel] [PATCH v2 FFmpeg 19/20] libavfilter: New filter avgclass. Average Detection BBox Classifications over all incomming Frames for Audio and Video

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/avf_avgclass.c | 505 + 3 files changed, 507 insertions(+) create mode 100644 libavfilter/avf_avgclass.c diff --git a/libavfilter/Makefile

Re: [FFmpeg-devel] [RFC] New swscale internal design prototype

2025-03-11 Thread Niklas Haas
On Sun, 09 Mar 2025 20:45:23 +0100 Niklas Haas wrote: > On Sun, 09 Mar 2025 18:11:54 +0200 Martin Storsjö wrote: > > On Sat, 8 Mar 2025, Niklas Haas wrote: > > > > > What are the thoughts on the float-first approach? > > > > In general, for modern architectures, relying on floats probably is >

Re: [FFmpeg-devel] [PATCH v4] Mark C globals with small code model

2025-03-11 Thread Andreas Rheinhardt
Pranav Kant via ffmpeg-devel: > By default, all globals in C/C++ compiled by clang are allocated > in non-large data sections. See [1] for background on code models. > For PIC (Position independent code), this is fine as long as binary is > small but as binary size increases, users maybe want to us

[FFmpeg-devel] [PATCH] avcodec/x86/constants: Move constants only used by cavsdsp to, it

2025-03-11 Thread Andreas Rheinhardt
Patch attached. - Andreas From f6c7fec20401934c278f7544f928d5c84c700cf7 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 12 Mar 2025 00:26:30 +0100 Subject: [PATCH] avcodec/x86/constants: Move constants only used by cavsdsp to it And make them static. Signed-off-by: Andreas Rheinha

Re: [FFmpeg-devel] [PATCH v2 0/3] avutil/log: Replace addresses in log output with simple ids

2025-03-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas George > Sent: Donnerstag, 6. März 2025 11:04 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v2 0/3] avutil/log: Replace addresses > in log output with simple ids > > ffmpegagent (H

Re: [FFmpeg-devel] [PATCH] avutil/log: Replace addresses in log output with simple ids

2025-03-11 Thread Marvin Scholz
On 6 Mar 2025, at 19:16, Soft Works wrote: >> -Original Message- >> From: ffmpeg-devel On Behalf Of Marvin >> Scholz >> Sent: Donnerstag, 6. März 2025 18:49 >> To: FFmpeg development discussions and patches >> Subject: Re: [FFmpeg-devel] [PATCH] avutil/log: Replace addresses in log >>

Re: [FFmpeg-devel] [PATCH] avcodec/amfenc: add smart access video option

2025-03-11 Thread Araz
> It’s almost impossible to get what does this option do for user with good > background on video encoding. > Please add some comments here. > Yes, as Dennis Mungai said, this feature allows to use both APU and GPU for decoding/encoding in a single pipeline. It is supported on AMD Radeon CPU 5000 s

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

2025-03-11 Thread Andreas Rheinhardt
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

Re: [FFmpeg-devel] [PATCH] avutil/log: Replace addresses in log output with simple ids

2025-03-11 Thread Marvin Scholz
On 6 Mar 2025, at 18:02, Soft Works wrote: >> -Original Message- >> From: ffmpeg-devel On Behalf Of >> Nicolas George >> Sent: Donnerstag, 6. März 2025 11:09 >> To: FFmpeg development discussions and patches >> Subject: Re: [FFmpeg-devel] [PATCH] avutil/log: Replace addresses in log >>

[FFmpeg-devel] [PATCH 1/2] tests/fate/pixfmt: add conversion tests with semi planar YUV formats

2025-03-11 Thread James Almer
Signed-off-by: James Almer --- tests/fate/pixfmt.mak | 4 tests/ref/pixfmt/nv24-bgr24 | 2 ++ tests/ref/pixfmt/nv24-gbrp10be| 2 ++ tests/ref/pixfmt/nv24-gbrp10le| 2 ++ tests/ref/pixfmt/nv24-gbrp12be| 2 ++ tests/ref/pixfmt/nv24-gbrp12le| 2 ++ tests/ref/pi

[FFmpeg-devel] [PATCH v2 FFmpeg 15/20] libavfilter/dnn/dnn_backend_torch: Audio and Video preprocessing for CLIP/CLAP models

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn/dnn_backend_torch.cpp | 128 ++ 1 file changed, 128 insertions(+) diff --git a/libavfilter/dnn/dnn_backend_torch.cpp b/libavfilter/dnn/dnn_backend_torch.cpp index 12ba2674b3..1d2bfb191a 100644 --- a/libavfilter/dnn/dnn_

[FFmpeg-devel] [PATCH v2 FFmpeg 8/20] libavfilter/dnn_interface.h: define new fields in THOptions struct

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

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

2025-03-11 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 1/2] pixfmt: add AV_PIX_FMT_GBRAP32

2025-03-11 Thread Lynne
This commit adds a 32-bit *integer* planar RGBA format. Vulkan FFv1 decoding is best performed on separate planes, rather than packed RGBA (i.e. RGBA128), hence this is useful as an intermediate format. --- libavutil/pixdesc.c | 28 libavutil/pixfmt.h | 4 2 fil

[FFmpeg-devel] [PATCH 1/1] avcodec/pcm: fix build warning by replacing deprecated method with avcodec_get_supported_config.

2025-03-11 Thread joneyao6
From: Jingwei Yao Signed-off-by: Jingwei Yao --- libavcodec/pcm.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index a23293dca2..e04ca78101 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -252,8 +252,10 @@ typedef

[FFmpeg-devel] [PATCH v2 FFmpeg 11/20] libavfilter/dnn_filter_common: dnn execute functions for CLIP and CLAP

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn_filter_common.c | 81 +++-- libavfilter/dnn_filter_common.h | 34 +++--- 2 files changed, 76 insertions(+), 39 deletions(-) diff --git a/libavfilter/dnn_filter_common.c b/libavfilter/dnn_filter_common.c index

Re: [FFmpeg-devel] [PATCH v4] Mark C globals with small code model

2025-03-11 Thread Pranav Kant via ffmpeg-devel
Patch version v4. - Rebased - Missing "(" in __attribute__((model("small)) in the earlier patch version. On Tue, Mar 11, 2025 at 12:17 PM Pranav Kant wrote: > By default, all globals in C/C++ compiled by clang are allocated > in non-large data sections. See [1] for background on code models. > F

[FFmpeg-devel] [PATCH v4] Mark C globals with small code model

2025-03-11 Thread Pranav Kant via ffmpeg-devel
By default, all globals in C/C++ compiled by clang are allocated in non-large data sections. See [1] for background on code models. For PIC (Position independent code), this is fine as long as binary is small but as binary size increases, users maybe want to use medium/large code models (-mcmodel=m

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

2025-03-11 Thread James Almer
On 3/11/2025 11:13 AM, James Almer wrote: On 3/10/2025 9:59 PM, Michael Niedermayer wrote: 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

[FFmpeg-devel] [PATCH v2 2/4] libavcodec/vulkan: Add modifications to common shader for VC2 vulkan encoder

2025-03-11 Thread IndecisiveTurtle
--- libavcodec/vulkan/common.comp | 58 +++ 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/libavcodec/vulkan/common.comp b/libavcodec/vulkan/common.comp index e4e983b3e2..3dc1527529 100644 --- a/libavcodec/vulkan/common.comp +++ b/libavcodec/vulkan/

[FFmpeg-devel] [PATCH 07/13] vulkan_decode: adjust number of async contexts created

2025-03-11 Thread Lynne
This caps the number of contexts we create based on thread count. This saves VRAM and filters out cases where more async is of lesser benefit. --- libavcodec/vulkan_decode.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulka

Re: [FFmpeg-devel] [RFC] New swscale internal design prototype

2025-03-11 Thread Niklas Haas
On Sun, 09 Mar 2025 17:57:48 -0700 Rémi Denis-Courmont wrote: > > > Le 9 mars 2025 12:57:47 GMT-07:00, Niklas Haas a écrit : > >On Sun, 09 Mar 2025 11:18:04 -0700 Rémi Denis-Courmont > >wrote: > >> Hi, > >> > >> Le 8 mars 2025 14:53:42 GMT-08:00, Niklas Haas a écrit : > >> >https://github.com/

Re: [FFmpeg-devel] [PATCH v2 0/3] avutil/log: Replace addresses in log output with simple ids

2025-03-11 Thread Nicolas George
Soft Works (HE12025-03-06): > It is the GitGitGadget system which does this this automatically. Your choice to use that thing, your responsibility to not let it misbehave. > But I have removed you now and try to remove you again each time when you > reply. Do not Cc other people either if they

Re: [FFmpeg-devel] [PATCH v5 8/8] fftools/ffprobe: Rename AVTextFormatContext variables (w => tc)

2025-03-11 Thread Stefano Sabatini
Typo in the subject line (should be "tfc"). On date Saturday 2025-03-08 17:55:35 +, softworkz wrote: > From: softworkz > > Signed-off-by: softworkz > --- > fftools/ffprobe.c | 534 +++--- > 1 file changed, 267 insertions(+), 267 deletions(-) > > st

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

2025-03-11 Thread Tomas Härdin
tis 2025-03-04 klockan 10:13 -0500 skrev Devin Heitmueller: > On Tue, Mar 4, 2025 at 4:02 AM Tomas Härdin wrote: > > > > Even if the captions are intended to > > > serve other countries, the country code will stay the same (defining > > > the country code for individual languages goes in the PMT)

[FFmpeg-devel] [PATCH v2 FFmpeg 18/20] doc/filters.texi: add classify documentation

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- doc/filters.texi | 124 --- 1 file changed, 85 insertions(+), 39 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 0ba7d3035f..a7046e0f4e 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -119

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

2025-03-11 Thread James Almer
On 3/10/2025 11:40 AM, Zhao Zhili wrote: 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..7ea42

[FFmpeg-devel] [PATCH 2/2] vulkan: add support for AV_PIX_FMT_GBRAP32

2025-03-11 Thread Lynne
--- libavutil/hwcontext_vulkan.c | 1 + libavutil/vulkan.c | 12 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 10521ce685..7f13520a5c 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil

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

2025-03-11 Thread Romain Beauxis
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.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet > > extra data, attach them to the next decoded frame. > > > > --- > > libavcodec/decode.c | 20 ++

Re: [FFmpeg-devel] [PATCH 04/11] avutil/frame: av_frame_side_data_new_struct()

2025-03-11 Thread Andreas Rheinhardt
James Almer: > As well as the AV_SIDE_DATA_PROP_STRUCT prop, to define types that describe > a fixed-size C struct and not a flat byte array. > This excludes types like VIDEO_ENC_PARAMS as the struct it describes may have > extra bytes allocated past the end of the struct. > > Signed-off-by: James

Re: [FFmpeg-devel] [PATCH v6 5/8] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-03-11 Thread Stefano Sabatini
On date Saturday 2025-03-08 20:16:31 +, softworkz wrote: > From: softworkz > > --- > doc/APIchanges | 3 +++ > libavfilter/avfilter.c | 9 + > libavfilter/avfilter.h | 12 > libavfilter/version.h | 2 +- > 4 files changed, 25 insertions(+), 1 deletion(-) > >

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

2025-03-11 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 v5 1/5] avutil/log: Add AV_LOG_PRINT_MEMADDRESSES logging flag

2025-03-11 Thread softworkz
From: softworkz which is meant to control prefix formatting. The actual formatting has to be performed by the consuming application which needs to provide a custom logging callback via av_log_set_callback(). Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavutil/log.h | 5

[FFmpeg-devel] [PATCH 13/13] ffv1: add a Vulkan-based decoder

2025-03-11 Thread Lynne
This patch adds a fully-featured level 3 and 4 decoder for FFv1, supporting Golomb and all Range coding variants, all pixel formats, and all features, except for the newly added floating-point formats. On a 6000 Ada, for 3840x2160 bgr0 content at 50Mbps (standard desktop recording), it is able to

[FFmpeg-devel] [PATCH] doc/filters: Add CUDA Video Filters section for CUDA-based and CUDA+NPP based filters.

2025-03-11 Thread Danil Iashchenko
--- doc/filters.texi | 1353 -- 1 file changed, 713 insertions(+), 640 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 0ba7d3035f..37b8674756 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -8619,45 +8619,6 @@ Set planes to f

[FFmpeg-devel] [PATCH v2 FFmpeg 3/20] libavfilter/dnn: move contain_valid_detection_bbox to dnn_backend_common

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn/dnn_backend_common.c | 38 + libavfilter/dnn/dnn_backend_common.h | 8 ++ libavfilter/dnn/dnn_backend_openvino.c | 39 +- 3 files changed, 47 insertions(+), 38 deletions(-) diff --git a/l

[FFmpeg-devel] [PATCH v2 FFmpeg 6/20] libavfilter/dnn_interface.h: define new Function Types CLIP and CLAP

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn_interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/dnn_interface.h b/libavfilter/dnn_interface.h index 66086409be..f4552d4287 100644 --- a/libavfilter/dnn_interface.h +++ b/libavfilter/dnn_interface.h @@ -58,6 +58,8 @@

[FFmpeg-devel] Brainstorming out of tree filters

2025-03-11 Thread Leandro Santiago
I've noticed that there is some kind of discontentment with current state of the libavfilter directory and a wish to reduce the number of mainstreamed filters there, relying on some kind of interface for keeping non essential plugins out of tree. Al noticed was the desire to make it easier for

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

2025-03-11 Thread Niklas Haas
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 renames the existing utils.h header, which di

[FFmpeg-devel] [PATCH v2 FFmpeg 10/20] libavfilter/dnn_filter_common: add support for new loading function with ff_dnn_init_with_tokenizer

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn_filter_common.c | 33 - libavfilter/dnn_filter_common.h | 1 + 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/libavfilter/dnn_filter_common.c b/libavfilter/dnn_filter_common.c index c4ad000409..89

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

2025-03-11 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

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

2025-03-11 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

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

2025-03-11 Thread Andreas Rheinhardt
Leandro Santiago: > The functions are: > > av_frame_side_data_get_nth_c() > av_frame_side_data_get_nth() > av_frame_get_nth_side_data() > > They mimic the counterparts without the `_nth` suffix/infix, with an extra > argument, which specifies the relative position of the entry of a given > type.

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

2025-03-11 Thread James Almer
On 3/10/2025 11:57 AM, Andreas Rheinhardt wrote: Leandro Santiago: The functions are: av_frame_side_data_get_nth_c() av_frame_side_data_get_nth() av_frame_get_nth_side_data() They mimic the counterparts without the `_nth` suffix/infix, with an extra argument, which specifies the relative posit

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

2025-03-11 Thread Michael Niedermayer
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.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet > > > extra data, attach

[FFmpeg-devel] [PATCH v2 FFmpeg 2/20] libavfilter/dnn_filter_common: batch tokenizer implementation

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn_filter_common.c | 154 libavfilter/dnn_filter_common.h | 19 2 files changed, 173 insertions(+) diff --git a/libavfilter/dnn_filter_common.c b/libavfilter/dnn_filter_common.c index 6b9c6f8d7f..c4ad000409 1

Re: [FFmpeg-devel] [PATCH 11/13] ffv1dec: reference the current packet into the main context

2025-03-11 Thread Lynne
On 10/03/2025 04:14, Andreas Rheinhardt wrote: Lynne: --- libavcodec/ffv1.h| 3 +++ libavcodec/ffv1dec.c | 19 +-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/libavcodec/ffv1.h b/libavcodec/ffv1.h index 8c0e71284d..860a5c14b1 100644 --- a/libavcodec/f

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

2025-03-11 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

[FFmpeg-devel] [PATCH v2 FFmpeg 9/20] libavfilter/dnn_interface.h: new model loading function load_model_with_tokenizer

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn_interface.h | 40 - 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/libavfilter/dnn_interface.h b/libavfilter/dnn_interface.h index f284665768..914bd76240 100644 --- a/libavfilter/dnn_interface

[FFmpeg-devel] [PATCH v2 FFmpeg 14/20] libavfilter/dnn/dnn_backend_torch: Similarity and Softmax calculation functions for CLIP/CLAP

2025-03-11 Thread m.kaindl0208
Signed-off-by: MaximilianKaindl --- libavfilter/dnn/dnn_backend_torch.cpp | 76 +++ 1 file changed, 76 insertions(+) diff --git a/libavfilter/dnn/dnn_backend_torch.cpp b/libavfilter/dnn/dnn_backend_torch.cpp index 3a0ef931f9..12ba2674b3 100644 --- a/libavfilter/dnn/dnn_b

Re: [FFmpeg-devel] [PATCH v8 0/8] Properly decode ogg metadata in ogg/{vorbis, flac, opus} chained bitstreams

2025-03-11 Thread Romain Beauxis
Le mar. 11 mars 2025 à 11:55, Romain Beauxis a écrit : > > This is a series of patches to allow proper decoding of ogg metadata in > chained > `ogg/vorbis, `ogg/flac` and `ogg/opus` streams. > > ## Changes since last version: > * Moved textual reference output for tests to test/ref/fate > * Updat

[FFmpeg-devel] [PATCH v8 7/8] libavformat/oggparseopus.c: Parse comments from secondary chained streams header packet.

2025-03-11 Thread Romain Beauxis
--- libavformat/oggparseopus.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c index 218e9df581..fe25ad44f3 100644 --- a/libavformat/oggparseopus.c +++ b/libavformat/oggparseopus.c @@ -29,6 +29,7 @@ struct

[FFmpeg-devel] [PATCH v8 8/8] tests: Add chained ogg/opus stream dump test.

2025-03-11 Thread Romain Beauxis
--- tests/Makefile | 1 + tests/fate/ogg-opus.mak | 11 ++ tests/ref/fate/ogg-opus-chained-meta.txt | 27 3 files changed, 39 insertions(+) create mode 100644 tests/fate/ogg-opus.mak create mode 100644 tests/ref/fate/og

[FFmpeg-devel] [PATCH v8 6/8] tests: Add chained ogg/flac stream dump test.

2025-03-11 Thread Romain Beauxis
--- tests/Makefile | 1 + tests/fate/ogg-flac.mak | 11 +++ tests/ref/fate/ogg-flac-chained-meta.txt | 13 + 3 files changed, 25 insertions(+) create mode 100644 tests/fate/ogg-flac.mak create mode 100644 tests/ref/fate/ogg-flac-cha

[FFmpeg-devel] [PATCH v8 5/8] libavformat/oggparseflac.c: Parse ogg/flac comments in new ogg packets, add them to ogg stream new_metadata.

2025-03-11 Thread Romain Beauxis
--- libavformat/oggparseflac.c | 21 + 1 file changed, 21 insertions(+) diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c index f25ed9cc15..29f5904575 100644 --- a/libavformat/oggparseflac.c +++ b/libavformat/oggparseflac.c @@ -78,6 +78,25 @@ flac_header (AV

[FFmpeg-devel] [PATCH v8 4/8] libavformat/oggdec.h, libavformat/oggparsevorbis.c: Factor out vorbis metadata update mechanism.

2025-03-11 Thread Romain Beauxis
--- libavformat/oggdec.h | 14 ++ libavformat/oggparsevorbis.c | 25 + 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h index 43df23f4cb..c8460a66e9 100644 --- a/libavformat/oggdec.h +++ b/libavf

[FFmpeg-devel] [PATCH v8 3/8] tests: Add chained ogg/vorbis stream dump test.

2025-03-11 Thread Romain Beauxis
--- tests/Makefile | 1 + tests/fate/ogg-vorbis.mak | 11 +++ tests/ref/fate/ogg-vorbis-chained-meta.txt | 17 + 3 files changed, 29 insertions(+) create mode 100644 tests/fate/ogg-vorbis.mak create mode 100644 tests/ref/fate/

[FFmpeg-devel] [PATCH v8 2/8] tests: Add stream dump test API util.

2025-03-11 Thread Romain Beauxis
--- tests/Makefile| 1 + tests/api/Makefile| 2 +- tests/api/api-dump-stream-meta-test.c | 179 ++ 3 files changed, 181 insertions(+), 1 deletion(-) create mode 100644 tests/api/api-dump-stream-meta-test.c diff --git a/tests

[FFmpeg-devel] [PATCH v8 1/8] libavcodec/decode.c: intercept `AV_PKT_DATA_METADATA_UPDATE` packet extra data, attach them to the next decoded frame.

2025-03-11 Thread Romain Beauxis
--- libavcodec/decode.c | 20 1 file changed, 20 insertions(+) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index c5a577f4f1..8907e4e5a2 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -97,6 +97,8 @@ typedef struct DecodeContext { int lcevc_frame;

[FFmpeg-devel] [PATCH v8 0/8] Properly decode ogg metadata in ogg/{vorbis, flac, opus} chained bitstreams

2025-03-11 Thread Romain Beauxis
This is a series of patches to allow proper decoding of ogg metadata in chained `ogg/vorbis, `ogg/flac` and `ogg/opus` streams. ## Changes since last version: * Moved textual reference output for tests to test/ref/fate * Updated test binary to only output stream metadata when AVSTREAM_EVENT_FLAG

Re: [FFmpeg-devel] [PATCH] avcodec/amfenc: add smart access video option

2025-03-11 Thread Dennis Mungai
On Tue, 11 Mar 2025 at 19:24, Zhao Zhili < quinkblack-at-foxmail@ffmpeg.org> wrote: > > > > On Mar 11, 2025, at 22:48, Araz Iusubov wrote: > > > > From: Evgeny Pavlov > > > > This commit adds option for enabling SmartAccess Video (SAV) > > in AMF encoders. SAV is an AMD hardware-specific fea

Re: [FFmpeg-devel] [PATCH] avcodec/amfenc: add smart access video option

2025-03-11 Thread Zhao Zhili
> On Mar 11, 2025, at 22:48, Araz Iusubov wrote: > > From: Evgeny Pavlov > > This commit adds option for enabling SmartAccess Video (SAV) > in AMF encoders. SAV is an AMD hardware-specific feature which > enables the parallelization of encode and decode streams across > multiple Video Codec E

Re: [FFmpeg-devel] [PATCH 11/13] ffv1dec: reference the current packet into the main context

2025-03-11 Thread Andreas Rheinhardt
Lynne: > --- > libavcodec/ffv1.h| 3 +++ > libavcodec/ffv1dec.c | 19 +-- > 2 files changed, 20 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/ffv1.h b/libavcodec/ffv1.h > index 8c0e71284d..860a5c14b1 100644 > --- a/libavcodec/ffv1.h > +++ b/libavcodec/ffv1.h > @@

[FFmpeg-devel] [PATCH 2/2] avfilter/vsrc_testsrc: use aligned macros for writing

2025-03-11 Thread James Almer
Signed-off-by: James Almer --- libavfilter/vsrc_testsrc.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 71188e624a..0da8cb0fa4 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilt

[FFmpeg-devel] [PATCH v2 FFmpeg 0/20] Zero-Shot Classification Support for FFMPEG (CLIP and CLAP)

2025-03-11 Thread m.kaindl0208
Hi, I'm excited to propose a series of patches adding support for modern zero-shot classification models to FFmpeg. These patches enable FFmpeg to leverage CLIP (Contrastive Language-Image Pre-training) and CLAP (Contrastive Language-Audio Pre-training) models for media classification. Key Fea

Re: [FFmpeg-devel] [PATCH] libavfilter: guard against ff_draw_init/ff_draw_init2 failures

2025-03-11 Thread Nil Fons Miret via ffmpeg-devel
Thanks for the clarification, attaching an updated patch. The only change is the one comment on qrencode.c. Thank you, Nil On Fri, Mar 7, 2025 at 7:28 PM Michael Niedermayer wrote: > > On Tue, Mar 04, 2025 at 10:17:25AM -0800, Nil Fons Miret via ffmpeg-devel > wrote: > > I'm not sure I understa

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement jeromes idea of making remap flip optional

2025-03-11 Thread Jerome Martinez
Le 11/03/2025 à 15:04, Michael Niedermayer a écrit : Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement jeromes idea of making remap flip optional Thanks. -if (sc->remap > 1U || -sc->remap == 1 && !f->flt) { +if (sc->remap > 2U || +sc-

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

2025-03-11 Thread Zhao Zhili
> 在 2025年3月11日,下午6:16,Wang Bin 写道: > > Zhao Zhili 于2025年3月11日周二 16:45写道: > >> >> On Mar 11, 2025, at 14:20, Wang Bin wrote: >>> supported by apple silicon >>> --- >>> libavcodec/videotoolboxenc.c | 10 ++ >>> 1 file changed, 10 insertions(+) >>> >>> diff --git a/libavcodec/vid

[FFmpeg-devel] [PATCH 9/9] avcodec/sanm: codec21 decoder

2025-03-11 Thread Manuel Lauss
similar to codec23, this one alternatingly skips and writes bytes. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 45 + 1 file changed, 45 insertions(+) diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index dbd78de0bc..edce76c7f4 100644 --- a/

[FFmpeg-devel] [PATCH 8/9] avcodec/sanm: codec23 decoder

2025-03-11 Thread Manuel Lauss
This codec alternatingly skips and changes existing pixels. A second 16bit parameter in the FOBJ header indicates how to do the pixel changes: either by specifying a LUT in the codec datastream or by adding a constant value to the pixel. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 66 +++

[FFmpeg-devel] [PATCH 7/9] avcodec/sanm: codec2 decoder

2025-03-11 Thread Manuel Lauss
this codec consists of 4 byte packets: 2bytes delta-x, 1 byte delta-y and 1 byte color to put at that spot. Used in Rebel Assault 1 only. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 20 1 file changed, 20 insertions(+) diff --git a/libavcodec/sanm.c b/libavcodec/san

[FFmpeg-devel] [PATCH 6/9] avcodec/sanm: misc fixes

2025-03-11 Thread Manuel Lauss
- clear the front buffer with color 0 when a new frame starts. Fixes a lot of Rebel Assault 1 videos and Rebel Assault 2 space scenes (e.g. 08PLAY.SAN which consists only of codec1+21 objects which only ever touch parts of the buffer). - for ANIMv1 (Rebel Assault 1): set palette index 0 to al

[FFmpeg-devel] [PATCH 5/9] avcodec/sanm: FOBJ left/top are signed values

2025-03-11 Thread Manuel Lauss
The left/top parameters of a FOBJ are signed values. Adjust codec1 code accordingly to not draw outside the buffer area. Rebel Assault 1 makes heavy use of this. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletio

  1   2   >