[FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply quality improvements

2025-04-22 Thread softworkz
From: softworkz Perform multiple improvements to increase code robustness. In particular: - favor unsigned counters for loops - add missing checks - avoid possibly leaks - move variable declarations to inner scopes when feasible - provide explicit type-casting when needed Signed-off-by

[FFmpeg-devel] [PATCH v5 04/14] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-04-22 Thread softworkz
From: softworkz This allows future addition of options without changes to the signature of avtext_context_open(). Signed-off-by: softworkz --- fftools/ffprobe.c | 13 + fftools/textformat/avtextformat.c | 21 - fftools/textformat/avtextformat.h

[FFmpeg-devel] [PATCH v5 13/14] fftools/graphprint: Add execution graph printing

2025-04-22 Thread softworkz
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 - all filters with their in- and output pads - all connections between

[FFmpeg-devel] [PATCH v5 14/14] fftools/graphprint: Now, make it a Killer-Feature!

2025-04-22 Thread softworkz
From: softworkz remember this: -sg <= show-graph Signed-off-by: softworkz --- doc/ffmpeg.texi | 4 + fftools/Makefile | 1 + fftools/ffmpeg.c | 2 +- fftools/ffmpeg.h | 1 + fftools/ffmpeg_filter.c | 2 +- fftools/ffmpeg_op

[FFmpeg-devel] [PATCH v5 12/14] fftools/ffmpeg_mux: Make ms_from_ost() inline

2025-04-22 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffmpeg_mux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h index f41f2c18fa..4ca8ab73a4 100644 --- a/fftools/ffmpeg_mux.h +++ b/fftools/ffmpeg_mux.h @@ -123,7 +123,7

[FFmpeg-devel] [PATCH v5 11/14] fftools/resources: Add resource manager files

2025-04-22 Thread softworkz
From: softworkz Signed-off-by: softworkz --- ffbuild/common.mak | 28 ++- fftools/Makefile | 3 +- fftools/resources/.gitignore | 4 + fftools/resources/Makefile | 27 +++ fftools/resources/graph.css | 353 +++ fftools/resources

[FFmpeg-devel] [PATCH v5 05/14] fftools/textformat: Introduce common header and deduplicate code

2025-04-22 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/tf_compact.c | 32 +--- fftools/textformat/tf_default.c | 27 +++--- fftools/textformat/tf_flat.c | 25 +++--- fftools/textformat/tf_ini.c | 24 +++-- fftools/textformat/tf_internal.h | 85

[FFmpeg-devel] [PATCH v5 09/14] fftools/ffmpeg_filter: Move some declaration to new header file

2025-04-22 Thread softworkz
From: softworkz to allow filtergraph printing to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 190 +--- fftools/ffmpeg_filter.h | 234 2 files changed, 235 insertions(+), 189 deletions

[FFmpeg-devel] [PATCH v5 10/14] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-04-22 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 3 files changed, 24 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 75d66f87f3..d0869561f3 100644 --- a/doc

[FFmpeg-devel] [PATCH v5 08/14] fftools/textformat: Add function avtext_print_integer_flags()

2025-04-22 Thread softworkz
From: softworkz This function works analog to the avtext_print_string() which already has a flags parameter. Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 21 + fftools/textformat/avtextformat.h | 2 ++ 2 files changed, 23 insertions(+) diff --git a

[FFmpeg-devel] [PATCH v5 06/14] fftools/textformat: AVTextWriter change writer_printf signature

2025-04-22 Thread softworkz
From: softworkz Using va_list provides greater flebility Signed-off-by: softworkz --- fftools/textformat/avtextwriters.h | 2 +- fftools/textformat/tw_avio.c | 7 ++- fftools/textformat/tw_buffer.c | 7 ++- fftools/textformat/tw_stdout.c | 8 ++-- 4 files changed, 7

[FFmpeg-devel] [PATCH v5 07/14] fftools/tf_internal: Use av_default_item_name

2025-04-22 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/tf_internal.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fftools/textformat/tf_internal.h b/fftools/textformat/tf_internal.h index 7b326328cb..e145bc83bb 100644 --- a/fftools/textformat/tf_internal.h

[FFmpeg-devel] [PATCH v2] avformat/dump: Stream start offsets: change precision and label

2025-04-22 Thread softworkz
From: softworkz - Change precision to 6 digits to align with other printed times - Change label to just "Start" - Add 's' unit to format 'start' value for consistency Signed-off-by: softworkz --- avformat/dump: Change precision of stream start offsets

Re: [FFmpeg-devel] [PATCH v4 04/11] fftools/tf_internal: Use ac_default_item_name

2025-04-23 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > softworkz . > Sent: Dienstag, 22. April 2025 23:11 > To: Stefano Sabatini ; FFmpeg development > discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v4 04/11] fftools/tf_internal: Use &

[FFmpeg-devel] [PATCH v7 02/13] fftools/textformat: Apply quality improvements

2025-04-25 Thread softworkz
From: softworkz Perform multiple improvements to increase code robustness. In particular: - favor unsigned counters for loops - add missing checks - avoid possible leaks - move variable declarations to inner scopes when feasible - provide explicit type-casting when needed Signed-off-by

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-04-27 Thread softworkz .
n date Friday 2025-04-25 13:16:59 +, softworkz . wrote: > [...] > > Tell me what I should check for and what not in those four groups of > > functions and for those things which should be checked, tell me > which > > way (return error, return silently, allow segfault or u

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-04-29 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of softworkz . > Sent: Dienstag, 29. April 2025 20:07 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface > > > > > -Original

Re: [FFmpeg-devel] [PATCH v7 1/3] avutil/log: Add log flag AV_LOG_PRINT_MEMADDRESSES

2025-04-10 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > softworkz . > Sent: Mittwoch, 9. April 2025 09:51 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v7 1/3] avutil/log: Add log flag > AV_LOG_PRINT_MEMADDRESSES >

[FFmpeg-devel] [PATCH v10 1/3] avutil/log: Add log flag AV_LOG_PRINT_MEMADDRESSES

2025-04-10 Thread softworkz
From: softworkz which is controls prefix formatting. With this flag set, the prefix is printed without the memory address, otherwise it is included. Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavutil/log.c | 6 -- libavutil/log.h | 5 + libavutil/version.h | 2

Re: [FFmpeg-devel] [PATCH v8 0/4] print_graphs: Complete Filtergraph Printing

2025-04-10 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > softworkz . > Sent: Dienstag, 8. April 2025 12:54 > To: Stefano Sabatini > Cc: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v8 0/4] print_graphs: Complete &

[FFmpeg-devel] [PATCH] ffmpeg/repo: Add dot-folders in the repository root to .gitignore

2025-04-13 Thread softworkz
From: softworkz Those are often used by IDEs and FFmpeg doesn't have any such folders in the repo. Signed-off-by: softworkz --- ffmpeg/repo: Add dot-folders in the repository root to .gitignore Those are often used by IDEs and FFmpeg doesn't have any such folders in

Re: [FFmpeg-devel] [PATCH 1/2] avformat: add avformat_query_seekable

2025-04-13 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Gyan > Doshi > Sent: Montag, 14. April 2025 06:24 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/2] avformat: add > avformat_query_seekable > > > > On 2025-

Re: [FFmpeg-devel] [PATCH 2/2] ffprobe: show seekability details in format section

2025-04-13 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Gyan > Doshi > Sent: Montag, 14. April 2025 06:40 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/2] ffprobe: show seekability > details in format section > > > > On 2025-

Re: [FFmpeg-devel] [PATCH 2/2] ffprobe: show seekability details in format section

2025-04-13 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > softworkz . > Sent: Montag, 14. April 2025 06:52 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 2/2] ffprobe: show seekability > d

[FFmpeg-devel] [PATCH 7/9] fftools/resources: Add resource manager files

2025-04-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- ffbuild/common.mak | 28 ++- fftools/resources/.gitignore | 4 + fftools/resources/Makefile | 27 +++ fftools/resources/graph.css | 353 +++ fftools/resources/graph.html | 86 + fftools

Re: [FFmpeg-devel] AVDictionary vs. AVSet (AVDictionary2 approximation)

2025-04-14 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > softworkz . > Sent: Montag, 14. April 2025 14:40 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] AVDictionary vs. AVSet (AVDictionary2 > approximation) &g

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

2025-04-14 Thread softworkz
From: softworkz remember this: -sg <= show-graph Signed-off-by: softworkz --- doc/ffmpeg.texi | 4 + fftools/Makefile | 1 + fftools/ffmpeg.c | 2 +- fftools/ffmpeg.h | 1 + fftools/ffmpeg_filter.c | 2 +- fftools/ffmpeg_op

Re: [FFmpeg-devel] [PATCH 0/3] avutil/dict2: Add AVDictionary2 with hash-based lookup

2025-04-14 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas George > Sent: Montag, 14. April 2025 13:02 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 0/3] avutil/dict2: Add > AVDictionary2 with hash-based lookup > > ffmpega

Re: [FFmpeg-devel] AVDictionary vs. AVSet (AVDictionary2 approximation)

2025-04-14 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Montag, 14. April 2025 13:33 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: [FFmpeg-devel] AVDictionary vs. AVSet (AVDictionary2 > approximation) > > Hi > > I just post

Re: [FFmpeg-devel] [PATCH v5] libavcodec/dvbsubenc.c: add a disable_2bpp option to work around some decoders.

2025-04-14 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Ronan Waide > Sent: Sonntag, 30. März 2025 12:18 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v5] libavcodec/dvbsubenc.c: add a > disable_2bpp option to work around some d

Re: [FFmpeg-devel] SW's Patchsets Overview

2025-04-14 Thread softworkz .
Hello, this is a follow-up to the list of patches I had posted recently. From those, I would like to push the following by the end of the week: avformat/hls demuxer: Add WebVTT subtitle support GitHub:https://github.com/ffstaging/FFmpeg/pull/53 Patchwork: https://patchwork.ffmpeg.org/proj

Re: [FFmpeg-devel] [RFC] AVDictionary2

2025-04-12 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Freitag, 11. April 2025 21:06 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [RFC] AVDictionary2 > > Hi > > On Tue, Apr 08, 2025 at 09:30

Re: [FFmpeg-devel] [PATCH 01/12] fftools/textformat/avtextformat: Simplify avtext_print_rational()

2025-04-15 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Mittwoch, 16. April 2025 07:37 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 01/12] > fftools/textformat/avtextformat: Simplify avtext_print_rati

Re: [FFmpeg-devel] [PATCH] fftools/textformat/avtextformat: Remove unused variable

2025-04-16 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Mittwoch, 16. April 2025 18:59 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: [FFmpeg-devel] [PATCH] fftools/textformat/avtextformat: > Remove unused variable > > Patch a

Re: [FFmpeg-devel] [PATCH 01/12] fftools/textformat/avtextformat: Simplify avtext_print_rational()

2025-04-15 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Mittwoch, 16. April 2025 06:28 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 01/12] > fftools/textformat/avtextformat: Simplify avtext_print_rati

Re: [FFmpeg-devel] [PATCH 01/12] fftools/textformat/avtextformat: Simplify avtext_print_rational()

2025-04-15 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > softworkz . > Sent: Mittwoch, 16. April 2025 06:38 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 01/12] > fftools/textformat/avtextformat: Simpli

Re: [FFmpeg-devel] [PATCH v10 2/3] fftools: add mem log flag and disable printing addresses by default

2025-04-16 Thread softworkz .
gt; and disable printing addresses by default > > Hi > > On Thu, Apr 10, 2025 at 08:51:04AM +0200, Nicolas George wrote: > > softworkz (HE12025-04-10): > > > From: softworkz > > > > > > This commit adds the mem log flag. > > > When specifying this

Re: [FFmpeg-devel] [PATCH 2/3] doc/dict2: Add doc and api change for AVDictionary2

2025-04-16 Thread softworkz .
change for AVDictionary2 > > Hi softworkz > > I think we should use AI to support us and reduce the workload > on people. > I think this here cost you money and iam not sure this isnt > adding workload and maybe even increased disagreements between > people > > can you get

Re: [FFmpeg-devel] [PATCH 2/9] fftools/textformat: Quality improvements

2025-04-15 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Mittwoch, 16. April 2025 06:51 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/9] fftools/textformat: Quality > improvements > > softworkz .: > &g

[FFmpeg-devel] [PATCH 1/9] fftools/textformat: Formatting and whitespace changes

2025-04-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 104 +++-- fftools/textformat/avtextformat.h | 16 ++--- fftools/textformat/avtextwriters.h | 11 ++- fftools/textformat/tf_compact.c| 91 ++--- fftools

[FFmpeg-devel] [PATCH 8/9] fftools/graphprint: Add execution graph printing

2025-04-14 Thread softworkz
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 - all filters with their in- and output pads - all connections between

[FFmpeg-devel] [PATCH 3/9] fftools/textformat: Introduce common header and deduplicate code

2025-04-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextwriters.h | 2 +- fftools/textformat/tf_compact.c| 31 --- fftools/textformat/tf_default.c| 27 +++--- fftools/textformat/tf_flat.c | 27 +++--- fftools/textformat/tf_ini.c| 24

[FFmpeg-devel] [PATCH 6/9] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-04-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 3 files changed, 24 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 65bf5a9419..32374f5453 100644 --- a/doc

[FFmpeg-devel] [PATCH 4/9] fftools/textformat: Add function avtext_print_integer_flags()

2025-04-14 Thread softworkz
From: softworkz This function works analog to the avtext_print_string() which already has a flags parameter. Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 21 + fftools/textformat/avtextformat.h | 2 ++ 2 files changed, 23 insertions(+) diff --git a

Re: [FFmpeg-devel] [PATCH 0/3] avutil/dict2: Add AVDictionary2 with hash-based lookup

2025-04-14 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas George > Sent: Montag, 14. April 2025 13:02 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 0/3] avutil/dict2: Add > AVDictionary2 with hash-based lookup > > ffmpeg

Re: [FFmpeg-devel] [PATCH 2/2] ffprobe: show seekability details in format section

2025-04-14 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Gyan > Doshi > Sent: Montag, 14. April 2025 08:54 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/2] ffprobe: show seekability > details in format section > > > > On 2025-

Re: [FFmpeg-devel] [PATCH 2/2] avformat/id3v2: Check that decode_str() did advance

2025-04-16 Thread softworkz .
decode_str() did advance > > Hi softworkz > > On Wed, Apr 16, 2025 at 02:52:21AM +, softworkz . wrote: > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of > > > Michael Niedermayer > > > Sent: Mittwoc

Re: [FFmpeg-devel] [PATCH 2/2] avformat/id3v2: Check that decode_str() did advance

2025-04-16 Thread softworkz .
tr() did advance > > On Wed, Apr 16, 2025 at 02:31:58AM +, softworkz . wrote: > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of > > > Michael Niedermayer > > > Sent: Mittwoch, 16. April 2025 03:34 > > &

Re: [FFmpeg-devel] [PATCH v2 04/10] fftools/tf_internal: Use ac_default_item_name

2025-04-16 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Mittwoch, 16. April 2025 12:51 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v2 04/10] fftools/tf_internal: Use > ac_default_item_name > > sof

Re: [FFmpeg-devel] [PATCH 2/2] avformat/id3v2: Check that decode_str() did advance

2025-04-16 Thread softworkz .
tr() did advance > > On Wed, Apr 16, 2025 at 02:39:44AM +, softworkz . wrote: > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of > > > Michael Niedermayer > > > Sent: Mittwoch, 16. April 2025 02:54 > > &

Re: [FFmpeg-devel] [PATCH 01/12] fftools/textformat/avtextformat: Simplify avtext_print_rational()

2025-04-15 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Mittwoch, 16. April 2025 08:31 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 01/12] > fftools/textformat/avtextformat: Simplify avtext_print_rati

Re: [FFmpeg-devel] [PATCH 2/9] fftools/textformat: Quality improvements

2025-04-16 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Dienstag, 15. April 2025 03:06 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/9] fftools/textformat: Quality > improvements > > softworkz: > > Fr

Re: [FFmpeg-devel] [PATCH v2 02/10] fftools/textformat: Quality improvements

2025-04-16 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Mittwoch, 16. April 2025 12:49 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v2 02/10] fftools/textformat: > Quality improvements > > softworkz: > >

[FFmpeg-devel] [PATCH v2 01/10] fftools/textformat: Formatting and whitespace changes

2025-04-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 104 +++-- fftools/textformat/avtextformat.h | 16 ++--- fftools/textformat/avtextwriters.h | 11 ++- fftools/textformat/tf_compact.c| 91 ++--- fftools

[FFmpeg-devel] [PATCH v2 03/10] fftools/textformat: Introduce common header and deduplicate code

2025-04-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextwriters.h | 2 +- fftools/textformat/tf_compact.c| 32 --- fftools/textformat/tf_default.c| 27 +++--- fftools/textformat/tf_flat.c | 25 +++-- fftools/textformat/tf_ini.c| 24

[FFmpeg-devel] [PATCH v2 02/10] fftools/textformat: Quality improvements

2025-04-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 111 +++--- fftools/textformat/avtextformat.h | 6 +- fftools/textformat/tf_default.c | 8 ++- fftools/textformat/tf_ini.c | 2 +- fftools/textformat/tf_json.c | 8

[FFmpeg-devel] [PATCH v2 06/10] fftools/ffmpeg_filter: Move some declaration to new header file

2025-04-16 Thread softworkz
From: softworkz to allow filtergraph printing to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 190 +--- fftools/ffmpeg_filter.h | 234 2 files changed, 235 insertions(+), 189 deletions

[FFmpeg-devel] [PATCH v2 07/10] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-04-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 3 files changed, 24 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 65bf5a9419..32374f5453 100644 --- a/doc

[FFmpeg-devel] [PATCH v2 05/10] fftools/textformat: Add function avtext_print_integer_flags()

2025-04-16 Thread softworkz
From: softworkz This function works analog to the avtext_print_string() which already has a flags parameter. Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 21 + fftools/textformat/avtextformat.h | 2 ++ 2 files changed, 23 insertions(+) diff --git a

[FFmpeg-devel] [PATCH v2 04/10] fftools/tf_internal: Use ac_default_item_name

2025-04-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/tf_internal.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fftools/textformat/tf_internal.h b/fftools/textformat/tf_internal.h index 7b326328cb..e145bc83bb 100644 --- a/fftools/textformat/tf_internal.h

[FFmpeg-devel] [PATCH v2 09/10] fftools/graphprint: Add execution graph printing

2025-04-16 Thread softworkz
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 - all filters with their in- and output pads - all connections between

[FFmpeg-devel] [PATCH v2 08/10] fftools/resources: Add resource manager files

2025-04-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- ffbuild/common.mak | 28 ++- fftools/resources/.gitignore | 4 + fftools/resources/Makefile | 27 +++ fftools/resources/graph.css | 353 +++ fftools/resources/graph.html | 86 + fftools

[FFmpeg-devel] [PATCH v2 10/10] fftools/graphprint: Now, make it a Killer-Feature!

2025-04-16 Thread softworkz
From: softworkz remember this: -sg <= show-graph Signed-off-by: softworkz --- doc/ffmpeg.texi | 4 + fftools/Makefile | 1 + fftools/ffmpeg.c | 2 +- fftools/ffmpeg.h | 1 + fftools/ffmpeg_filter.c | 2 +- fftools/ffmpeg_op

Re: [FFmpeg-devel] [PATCH v2 00/10] Execution Graph Printing

2025-04-16 Thread softworkz .
> -Original Message- > From: ffmpegagent > Sent: Mittwoch, 16. April 2025 12:12 > To: ffmpeg-devel@ffmpeg.org > Cc: softworkz > Subject: [PATCH v2 00/10] Execution Graph Printing > > Shortest cover letter for my longest-running FFmpeg patchset: > > *

Re: [FFmpeg-devel] [PATCH 1/3] avutil/dict2: Add AVDictionary2 with hash-based lookup

2025-04-17 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Mittwoch, 16. April 2025 23:25 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 1/3] avutil/dict2: Add > AVDictionary2 with hash-based lookup > >

Re: [FFmpeg-devel] [PATCH] avutil/map: replace passing Compare functions by flags

2025-04-16 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Mittwoch, 16. April 2025 22:12 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: [FFmpeg-devel] [PATCH] avutil/map: replace passing Compare > functions by flags > > This ma

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-05-06 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: Montag, 5. Mai 2025 16:32 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface > > Stefano Sabatini (HE12025-05-04): > > I don't understa

Re: [FFmpeg-devel] [PATCH v8 14/15] fftools/graphprint: Add execution graph printing

2025-05-01 Thread softworkz .
> On Tue, Apr 29, 2025 at 08:33:50PM +, softworkz . wrote: > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of Michael > > > Niedermayer > > > Sent: Dienstag, 29. April 2025 21:35 > > > To: FFmpeg development

[FFmpeg-devel] [PATCH v11 14/15] fftools/graphprint: Add execution graph printing

2025-05-04 Thread softworkz
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 - all filters with their in- and output pads - all connections between

[FFmpeg-devel] [PATCH v11 12/15] fftools/resources: Add resource manager files with build-time compression

2025-05-04 Thread softworkz
From: softworkz Compression requires zlib to be available, otherwise resources will be included uncompressed - in either case via BIN2C. It can also be disabled via ./configure --disable-resource-compression Size figures: graph.css 7752 graph.css.min 6655 (css is always minified

[FFmpeg-devel] [PATCH v11 10/15] fftools/ffmpeg_filter: Move some declaration to new header file

2025-05-04 Thread softworkz
From: softworkz to allow filtergraph printing to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 190 +--- fftools/ffmpeg_filter.h | 234 2 files changed, 235 insertions(+), 189 deletions

[FFmpeg-devel] [PATCH v11 11/15] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx()

2025-05-04 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c | 9 + libavfilter/avfilter.h | 12 3 files changed, 24 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 75d66f87f3..d0869561f3 100644 --- a/doc

[FFmpeg-devel] [PATCH v11 13/15] fftools/ffmpeg_mux: Make ms_from_ost() inline

2025-05-04 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffmpeg_mux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h index f41f2c18fa..4ca8ab73a4 100644 --- a/fftools/ffmpeg_mux.h +++ b/fftools/ffmpeg_mux.h @@ -123,7 +123,7

[FFmpeg-devel] [PATCH v11 01/15] fftools/textformat: Formatting and whitespace changes

2025-05-04 Thread softworkz
From: softworkz Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 92 +++--- fftools/textformat/avtextformat.h | 20 +++ fftools/textformat/avtextwriters.h | 11 ++-- fftools/textformat/tf_compact.c| 91

[FFmpeg-devel] [PATCH v11 07/15] fftools/textformat: Introduce common header and deduplicate code

2025-05-04 Thread softworkz
From: softworkz Also change writer_printf signature in AVTextWriter to use va_list, so that it can be called by the new function writer_printf() in tf_internal.h. Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/avtextwriters.h | 2 +- fftools/textformat

[FFmpeg-devel] [PATCH v11 02/15] fftools/textformat: Apply quality improvements

2025-05-04 Thread softworkz
From: softworkz Perform multiple improvements to increase code robustness. In particular: - favor unsigned counters for loops - add missing checks - avoid possible leaks - move variable declarations to inner scopes when feasible - provide explicit type-casting when needed Signed-off-by

[FFmpeg-devel] [PATCH v11 05/15] fftools/avtextformat: Re-use BPrint in loop

2025-05-04 Thread softworkz
From: softworkz Instead of initializing a new BPrint in each iteration of the loop, re-use the same BPrint struct and just clear it for each iteration. Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions

[FFmpeg-devel] [PATCH v11 06/15] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-05-04 Thread softworkz
From: softworkz This allows future addition of options without changes to the signature of avtext_context_open(). Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/ffprobe.c | 13 + fftools/textformat/avtextformat.c | 21

[FFmpeg-devel] [PATCH v11 04/15] fftools/textformat: Rename name param to key for API consistency

2025-05-04 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 14 +++--- fftools/textformat/avtextformat.h | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fftools/textformat/avtextformat.c b/fftools/textformat/avtextformat.c index

[FFmpeg-devel] [PATCH v11 09/15] fftools/textformat: Add flags param to function avtext_print_integer()

2025-05-04 Thread softworkz
From: softworkz Make this function work analog to avtext_print_string() which already has a flags parameter. Signed-off-by: softworkz --- fftools/ffprobe.c | 2 +- fftools/textformat/avtextformat.c | 24 ++-- fftools/textformat/avtextformat.h | 2 +- 3

[FFmpeg-devel] [PATCH v11 03/15] fftools/textformat: Remove unused print_rational() pointer from AVTextFormatter

2025-05-04 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/textformat/avtextformat.h | 1 - fftools/textformat/avtextwriters.h | 5 - 2 files changed, 6 deletions(-) diff --git a/fftools/textformat/avtextformat.h b/fftools/textformat/avtextformat.h index 86feb9d09d..c61dca159f 100644 --- a

[FFmpeg-devel] [PATCH v11 08/15] fftools/tf_internal: Use av_default_item_name

2025-05-04 Thread softworkz
From: softworkz Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/tf_internal.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fftools/textformat/tf_internal.h b/fftools/textformat/tf_internal.h index 362a4cbc38..484886b7a7 100644 --- a

[FFmpeg-devel] [PATCH v11 15/15] fftools/graphprint: Now, make it a Killer-Feature!

2025-05-04 Thread softworkz
From: softworkz remember this: -sg <= means Show Graph Signed-off-by: softworkz --- doc/ffmpeg.texi | 4 + fftools/Makefile | 1 + fftools/ffmpeg.c | 2 +- fftools/ffmpeg.h | 1 + fftools/ffmpeg_filter.c | 2 +- ffto

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-05-04 Thread softworkz .
are incomplete) Same for the graph printing schema: https://softworkz.github.io/ffmpeg_output_apis/graph_schema.html (fields are complete, relationship identifiers marked with PK and FK) Background: https://github.com/softworkz/ffmpeg_output_apis/wiki/Schema-Self-Printing Best regards, sw _

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-04-25 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas George > Sent: Donnerstag, 24. April 2025 19:12 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface > >

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-04-25 Thread softworkz .
25, 7.20.26 Itä-Euroopan kesäaika > softworkz . a > écrit : > > Hi Stefano, Andreas, Nicolas > > and of course, anybody who's interested in the AVTextFormat APIs, > > > > > > let me start by saying that I have no intention to rush the > > publicization of tho

Re: [FFmpeg-devel] On errors, asserts and crashing (was: Shaping the AVTextFormat API Surface)

2025-04-25 Thread softworkz .
AVTextFormat API Surface) > > softworkz . (HE12025-04-25): > > Once and for all, just GTFO from those kinds of comments. > > That was not directed at you. But you have now lost all rights to a > cordial reply from me with this rudeness. You are including those kinds of c

Re: [FFmpeg-devel] On errors, asserts and crashing (was: Shaping the AVTextFormat API Surface)

2025-04-25 Thread softworkz .
AVTextFormat API Surface) > > softworkz . (HE12025-04-25): > > You are including those kinds of comments almost every single time > when > > you are responding to me and I'm just sick of it: > > I include this kind of comments whenever the occasion presents i

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-04-25 Thread softworkz .
Subject: Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface > > softworkz . (HE12025-04-22): > > AVTextFormatter Implementations > > > > - print_section_header > > - print_section_footer > > - print_integer > > - print_string > > >

Re: [FFmpeg-devel] On errors, asserts and crashing

2025-04-25 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > James Almer > Sent: Freitag, 25. April 2025 16:43 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] On errors, asserts and crashing > > On 4/25/2025 10:05 AM, softworkz . wrote: > > On

Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface

2025-04-25 Thread softworkz .
> -Original Message- > From: ffmpeg-devel On Behalf Of > Nicolas George > Sent: Freitag, 25. April 2025 16:05 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [RFC] Shaping the AVTextFormat API Surface > >

Re: [FFmpeg-devel] [PATCH v5 02/14] fftools/textformat: Apply quality improvements

2025-04-23 Thread softworkz .
Hi Stefano, > > > if (ret < 0) { > > AVBPrint bp; > > -av_bprint_init(&bp, 0, AV_BPRINT_SIZE_AUTOMATIC); > > +av_bprint_init(&bp, 0, AV_BPRINT_SIZE_UNLIMITED); > > bprint_bytes(&bp, p0, p - p0), > > Is this really ne

[FFmpeg-devel] [PATCH v6 05/13] fftools/textformat: Introduce common header and deduplicate code

2025-04-23 Thread softworkz
From: softworkz Also change writer_printf signature in AVTextWriter to use va_list, so that it can be called by the new function writer_printf() in tf_internal.h. Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/avtextwriters.h | 2 +- fftools/textformat

[FFmpeg-devel] [PATCH v6 02/13] fftools/textformat: Apply quality improvements

2025-04-23 Thread softworkz
From: softworkz Perform multiple improvements to increase code robustness. In particular: - favor unsigned counters for loops - add missing checks - avoid possible leaks - move variable declarations to inner scopes when feasible - provide explicit type-casting when needed Signed-off-by

[FFmpeg-devel] [PATCH v6 04/13] fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()

2025-04-23 Thread softworkz
From: softworkz This allows future addition of options without changes to the signature of avtext_context_open(). Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/ffprobe.c | 13 + fftools/textformat/avtextformat.c | 21

[FFmpeg-devel] [PATCH v6 08/13] fftools/ffmpeg_filter: Move some declaration to new header file

2025-04-23 Thread softworkz
From: softworkz to allow filtergraph printing to access the information. Signed-off-by: softworkz --- fftools/ffmpeg_filter.c | 190 +--- fftools/ffmpeg_filter.h | 234 2 files changed, 235 insertions(+), 189 deletions

[FFmpeg-devel] [PATCH v6 07/13] fftools/textformat: Add function avtext_print_integer_flags()

2025-04-23 Thread softworkz
From: softworkz This function works analog to the avtext_print_string() which already has a flags parameter. Signed-off-by: softworkz --- fftools/textformat/avtextformat.c | 25 + fftools/textformat/avtextformat.h | 2 ++ 2 files changed, 23 insertions(+), 4 deletions

[FFmpeg-devel] [PATCH v6 06/13] fftools/tf_internal: Use av_default_item_name

2025-04-23 Thread softworkz
From: softworkz Reviewed-by: Stefano Sabatini Signed-off-by: softworkz --- fftools/textformat/tf_internal.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fftools/textformat/tf_internal.h b/fftools/textformat/tf_internal.h index 362a4cbc38..484886b7a7 100644 --- a

[FFmpeg-devel] [PATCH v6 11/13] fftools/ffmpeg_mux: Make ms_from_ost() inline

2025-04-23 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffmpeg_mux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h index f41f2c18fa..4ca8ab73a4 100644 --- a/fftools/ffmpeg_mux.h +++ b/fftools/ffmpeg_mux.h @@ -123,7 +123,7

[FFmpeg-devel] [PATCH v6 12/13] fftools/graphprint: Add execution graph printing

2025-04-23 Thread softworkz
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 - all filters with their in- and output pads - all connections between

<    1   2   3   4   5   6   7   8   9   >