Re: [FFmpeg-devel] Politics

2021-12-11 Thread Paul B Mahol
On Sun, Dec 12, 2021 at 7:15 AM Soft Works wrote: > Good Morning, > > yesterday, it happened for the 4th and 5th times that another developer > called my patchset a “hack”. > > One time I didn’t ask, but in all other four cases I had distinctly and > insistingly asked for specifics about how the

[FFmpeg-devel] Politics

2021-12-11 Thread Soft Works
Good Morning, yesterday, it happened for the 4th and 5th times that another developer called my patchset a “hack”. One time I didn’t ask, but in all other four cases I had distinctly and insistingly asked for specifics about how the one has come to that conclusion and what would be the reasons fo

Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n for subtitle handling

2021-12-11 Thread Daniel Cantarín
> > I'm afraid, the only reply that I have to this is: > > - Take my patchset > - Remove subtitle_pts > - Get everything working >   (all example command lines in filters.texi) > > => THEN start talking > > The same goes out to everybody else who keeps telling it can be > removed and that it's an

Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n for subtitle handling

2021-12-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Daniel > Cantarín > Sent: Sunday, December 12, 2021 12:39 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n > for subtitle handling > > > One of the important points to

Re: [FFmpeg-devel] [PATCH v3 0/5] Switch mmaldec to receive_frame API

2021-12-11 Thread Cameron Gutman
On 12/9/2021 7:01 AM, Andreas Rheinhardt wrote: This is an updated and extended version of [1] by Ho Ming Shun together with some additions by me. Notice that I am unable to test these patches (not even compilation), so I hope that others (Ho Ming Shun) do so. [1]: https://ffmpeg.org/pipermail/f

Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n for subtitle handling

2021-12-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Daniel > Cantarín > Sent: Sunday, December 12, 2021 12:39 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n > for subtitle handling > > > One of the important points to

Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n for subtitle handling

2021-12-11 Thread Daniel Cantarín
> One of the important points to understand is that - in case of subtitles, > the AVFrame IS NOT the subtitle event. The subtitle event is actually > a different and separate entity. (...) Wouldn't it qualify then as a different abstraction? I mean: instead of avframe.subtitle_property, perhaps

Re: [FFmpeg-devel] [PATCH v2] lavfi/drawtext: Add localtime_ms for millisecond precision

2021-12-11 Thread Andreas Rheinhardt
Thilo Borgmann: > > > On 10 Dec 2021, at 17:46, Michael Niedermayer wrote: > >> On Fri, Dec 10, 2021 at 12:36:21PM +0100, Thilo Borgmann wrote: >>> >>> >>> On 10 Dec 2021, at 3:47, zhilizhao(赵志立) wrote: >>> > On Dec 10, 2021, at 3:11 AM, Thilo Borgmann > wrote: > > Hi, > >>>

Re: [FFmpeg-devel] [PATCH v2] lavfi/drawtext: Add localtime_ms for millisecond precision

2021-12-11 Thread Thilo Borgmann
On 10 Dec 2021, at 17:46, Michael Niedermayer wrote: On Fri, Dec 10, 2021 at 12:36:21PM +0100, Thilo Borgmann wrote: On 10 Dec 2021, at 3:47, zhilizhao(赵志立) wrote: On Dec 10, 2021, at 3:11 AM, Thilo Borgmann wrote: Hi, add %{localtime_ms}, %{gmtime_ms} functions to the drawtext filter

Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n for subtitle handling

2021-12-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Michael > Niedermayer > Sent: Saturday, December 11, 2021 6:21 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n > for subtitle handling > > On Fri,

Re: [FFmpeg-devel] [PATCH v23 19/21] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-12-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Daniel > Cantarín > Sent: Saturday, December 11, 2021 9:24 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v23 19/21] avfilter/graphicsub2text: Add > new graphicsub2text filter (OCR) > > > Basically, this is li

Re: [FFmpeg-devel] [PATCH v23 19/21] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-12-11 Thread Daniel Cantarín
Hi Daniel, I don't think that any of that will be necessary. For the generic ocr filter, this might make sense, because it is meant to work in many different situations, different text sizes, different (not necessarily uniform) backgrounds, static or moving, a wide spectrum of colours, and no

[FFmpeg-devel] [PATCH 12/12] avcodec/decode: Reset *got_sub_ptr on error

2021-12-11 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index afe2c0c3c1..0912f86a14 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -862,8 +862,8 @@ int avcodec_decod

[FFmpeg-devel] [PATCH 11/12] avcodec/xsubdec: Use dedicated pointer for AVSubtitleRect

2021-12-11 Thread Andreas Rheinhardt
Improves readability and slightly reduces codesize. Signed-off-by: Andreas Rheinhardt --- libavcodec/xsubdec.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c index b483699d0a..85cd7d1c20 100644

[FFmpeg-devel] [PATCH 10/12] avcodec/xsubdec: Cleanup generically upon allocation error

2021-12-11 Thread Andreas Rheinhardt
This is possible by incrementing the counter of allocated rects directly after said allocation succeeded. Signed-off-by: Andreas Rheinhardt --- libavcodec/xsubdec.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c inde

[FFmpeg-devel] [PATCH 09/12] avcodec/ass: Fix leaks upon ff_ass_add_rect() error

2021-12-11 Thread Andreas Rheinhardt
Do this by actually incrementing the counter for the number of rects at the right time. Signed-off-by: Andreas Rheinhardt --- libavcodec/ass.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/ass.c b/libavcodec/ass.c index 907e2d7b88..725e4d42ba 100644

[FFmpeg-devel] [PATCH 08/12] avcodec/decode: Fix leaks upon subtitle decoding errors

2021-12-11 Thread Andreas Rheinhardt
Up until now, various subtitle decoders have not cleaned up the AVSubtitle on error; this task must not be left to the user because the documentation explicitly states that the AVSubtitle "must be freed with avsubtitle_free if *got_sub_ptr is set" (which it isn't on error). Leaks happen upon failur

[FFmpeg-devel] [PATCH 07/12] avcodec/pgssubdec: Use dedicated pointer for accesses

2021-12-11 Thread Andreas Rheinhardt
Improves readability and decreases codesize. Signed-off-by: Andreas Rheinhardt --- libavcodec/pgssubdec.c | 66 -- 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index d2824f5bbf..8a200aa01b

[FFmpeg-devel] [PATCH 06/12] avcodec/pgssubdec: Remove redundant freeing code

2021-12-11 Thread Andreas Rheinhardt
The caller of display_end_segment() frees the AVSubtitle on error in case ENOMEM is returned or err_recognition is set to explode, so display_end_segment() doesn't have to. Signed-off-by: Andreas Rheinhardt --- libavcodec/pgssubdec.c | 17 - 1 file changed, 4 insertions(+), 13 de

[FFmpeg-devel] [PATCH 05/12] avcodec/pgssubdec: Always return error upon allocation error

2021-12-11 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/pgssubdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index 388639a110..2d5700a51e 100644 --- a/libavcodec/pgssubdec.c +++ b/libavcodec/pgssubdec.c @@ -677,7 +677,8 @@ stat

[FFmpeg-devel] [PATCH 04/12] avformat/demux: Remove redundant prevention against infinite loop

2021-12-11 Thread Andreas Rheinhardt
This piece of code has been added as FFmpeg's answer to infinite loops in try_decode_frame() in commit 6072a19b4f311cb172d45e90daad90824e40e4b6. There is no loop around try_decode_frame() any more, so this code can be removed. This code is only triggered in case a) the codec parameter could not be

[FFmpeg-devel] [PATCH 03/12] avformat/demux: Remove fake-loop

2021-12-11 Thread Andreas Rheinhardt
When flushing, try_decode_frame() itself loops until the desired properties have been found or the decoder is drained. Signed-off-by: Andreas Rheinhardt --- libavformat/demux.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libavformat/demux.c b/libavformat/demux.c i

[FFmpeg-devel] [PATCH 02/12] avcodec/h2645_parse: Move ref_idc further up in H2645NAL

2021-12-11 Thread Andreas Rheinhardt
This puts it directly near the NALU type which is more natural and furthermore reduces the size of the structure because it can be placed in padding (on 64-bit systems). Signed-off-by: Andreas Rheinhardt --- libavcodec/h2645_parse.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-)

[FFmpeg-devel] [PATCH 01/12] avcodec/h2645_parse: Remove H2645NAL.rbsp_buffer

2021-12-11 Thread Andreas Rheinhardt
Forgotten in 03b82b3ab9883cef017e513c7d0b3b986b3b3e7b. (Moving data to the front is only done to make existing initializations like H2645NAL nal = { NULL } not emit int->pointer conversion warnings.) Signed-off-by: Andreas Rheinhardt --- libavcodec/h2645_parse.c | 3 +-- libavcodec/h2645_parse.

Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-12-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Michael > Niedermayer > Sent: Saturday, December 11, 2021 6:03 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, > censor and show_speaker filters >

Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n for subtitle handling

2021-12-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Michael > Niedermayer > Sent: Saturday, December 11, 2021 6:21 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n > for subtitle handling > > On Fri,

Re: [FFmpeg-devel] [PATCH v23 19/21] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-12-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Daniel > Cantarín > Sent: Saturday, December 11, 2021 4:18 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v23 19/21] avfilter/graphicsub2text: Add > new graphicsub2text filter (OCR) > > Hi there softworkz. >

Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame\n for subtitle handling

2021-12-11 Thread Michael Niedermayer
On Fri, Dec 10, 2021 at 03:02:32PM +, Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of Daniel > > Cantarín > > Sent: Thursday, December 9, 2021 10:33 PM > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Pre

Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-12-11 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Michael > Niedermayer > Sent: Saturday, December 11, 2021 6:03 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, > censor and show_speaker filters >

Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-12-11 Thread Michael Niedermayer
On Sat, Dec 11, 2021 at 04:24:14PM +, Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of Michael > > Niedermayer > > Sent: Saturday, December 11, 2021 4:33 PM > > To: FFmpeg development discussions and patches > > Subject: Re: [FFmpeg-devel] [PATCH v23

Re: [FFmpeg-devel] [PATCH v4 1/5] lavu/frame: Add Dolby Vision metadata side data type

2021-12-11 Thread Andreas Rheinhardt
Niklas Haas: > From: Niklas Haas > > Signed-off-by: Niklas Haas > --- > doc/APIchanges| 3 ++ > libavutil/dovi_meta.h | 116 ++ > libavutil/frame.c | 1 + > libavutil/frame.h | 9 +++- > libavutil/version.h | 2 +- > 5 files chan

Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-12-11 Thread Michael Niedermayer
On Fri, Dec 10, 2021 at 09:37:53PM +, Soft Works wrote: > - textmod {S -> S) > Modify subtitle text in a number of ways > > - censor {S -> S) > Censor subtitles using a word list > > - show_speaker {S -> S) > Prepend speaker names from ASS subtitles to the visible text lines > > Signed

Re: [FFmpeg-devel] [PATCH v4 4/5] lavc: Implement Dolby Vision RPU parsing

2021-12-11 Thread Andreas Rheinhardt
Niklas Haas: > On Sat, 11 Dec 2021 15:02:14 +0100 Andreas Rheinhardt > wrote: >> verification > > Fixed > >> lavu > > Fixed > >> Why is this always compiled when only the HEVC decoder needs it? >> (The way it is now will cause linking errors when CONFIG_GOLOMB is false.) > > In principle, pa

Re: [FFmpeg-devel] [PATCH v23 19/21] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-12-11 Thread Daniel Cantarín
Hi there softworkz. Having worked before with OCR filter output, I suggest you a modification for your new filter. It's not something that should delay the patch, but just a nice addenum. Could be done in another patch, or could even do it myself in the future. But I let the comment here anywa

Re: [FFmpeg-devel] [PATCH v4 4/5] lavc: Implement Dolby Vision RPU parsing

2021-12-11 Thread Niklas Haas
On Sat, 11 Dec 2021 15:02:14 +0100 Andreas Rheinhardt wrote: > verification Fixed > lavu Fixed > Why is this always compiled when only the HEVC decoder needs it? > (The way it is now will cause linking errors when CONFIG_GOLOMB is false.) In principle, parsing the RPU contents is orthogonal

Re: [FFmpeg-devel] [PATCH v4 5/5] lavc/hevcdec: Parse DOVI RPU NALs

2021-12-11 Thread Andreas Rheinhardt
Derek Buitenhuis: > On 12/11/2021 2:47 PM, Andreas Rheinhardt wrote: >> 11200 lines for the fate ref file. Don't you think that is a bit excessive? > > That would be my fault - it is an existing test. > Thanks for the info. Didn't notice that (just saw that there was no deletion at all). > I su

Re: [FFmpeg-devel] [PATCH v4 5/5] lavc/hevcdec: Parse DOVI RPU NALs

2021-12-11 Thread Derek Buitenhuis
On 12/11/2021 2:47 PM, Andreas Rheinhardt wrote: > 11200 lines for the fate ref file. Don't you think that is a bit excessive? That would be my fault - it is an existing test. I supposed there could be a separte commit to limit it? - Derek ___ ffmpeg-d

Re: [FFmpeg-devel] [PATCH v4 5/5] lavc/hevcdec: Parse DOVI RPU NALs

2021-12-11 Thread Andreas Rheinhardt
Niklas Haas: > From: Niklas Haas > > And expose the parsed values as frame side data. Update FATE results to > match. > > It's worth documenting that this relies on the dovi configuration record > being present on the first AVPacket fed to the decoder, which in > practice is the case if if the A

Re: [FFmpeg-devel] [PATCH v4 2/5] lavfi/showinfo: Support AV_FRAME_DATA_DOVI_METADATA

2021-12-11 Thread Niklas Haas
On Sat, 11 Dec 2021 13:58:53 +0100 Andreas Rheinhardt wrote: > Why are you using so many av_log calls? Every one of them poses the risk > of the output being torn apart by other av_log calls (with a different > logctx); and of course, it also leads to lower performance and bigger > binary size.

Re: [FFmpeg-devel] [PATCH v4 4/5] lavc: Implement Dolby Vision RPU parsing

2021-12-11 Thread Andreas Rheinhardt
Niklas Haas: > From: Niklas Haas > > Based on a mixture of guesswork, partial documentation in patents, and > reverse engineering of real-world samples. Confirmed working for all the > samples I've thrown at it. > > Contains some annoying machinery to persist these values in between > frames, wh

Re: [FFmpeg-devel] [PATCH v4 2/5] lavfi/showinfo: Support AV_FRAME_DATA_DOVI_METADATA

2021-12-11 Thread Andreas Rheinhardt
Niklas Haas: > From: Niklas Haas > > Signed-off-by: Niklas Haas > --- > libavfilter/vf_showinfo.c | 108 ++ > 1 file changed, 108 insertions(+) > > diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c > index 62c7833247..8a7efc15b7 100644 > ---

[FFmpeg-devel] [PATCH v4 4/5] lavc: Implement Dolby Vision RPU parsing

2021-12-11 Thread Niklas Haas
From: Niklas Haas Based on a mixture of guesswork, partial documentation in patents, and reverse engineering of real-world samples. Confirmed working for all the samples I've thrown at it. Contains some annoying machinery to persist these values in between frames, which is needed in theory even

[FFmpeg-devel] [PATCH v4 3/5] ffprobe: Support AV_FRAME_DATA_DOVI_METADATA

2021-12-11 Thread Niklas Haas
From: Jan Ekström Co-authored-by: Niklas Haas --- fftools/ffprobe.c | 173 +- 1 file changed, 170 insertions(+), 3 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 0711e02922..75263cd3a9 100644 --- a/fftools/ffprobe.c +++ b/fftoo

[FFmpeg-devel] [PATCH v4 2/5] lavfi/showinfo: Support AV_FRAME_DATA_DOVI_METADATA

2021-12-11 Thread Niklas Haas
From: Niklas Haas Signed-off-by: Niklas Haas --- libavfilter/vf_showinfo.c | 108 ++ 1 file changed, 108 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 62c7833247..8a7efc15b7 100644 --- a/libavfilter/vf_showinfo.c +++

[FFmpeg-devel] [PATCH v4 1/5] lavu/frame: Add Dolby Vision metadata side data type

2021-12-11 Thread Niklas Haas
From: Niklas Haas Signed-off-by: Niklas Haas --- doc/APIchanges| 3 ++ libavutil/dovi_meta.h | 116 ++ libavutil/frame.c | 1 + libavutil/frame.h | 9 +++- libavutil/version.h | 2 +- 5 files changed, 129 insertions(+), 2 deletio

Re: [FFmpeg-devel] [PATCH v2 1/4] lavu/frame: Add Dolby Vision metadata side data type

2021-12-11 Thread Niklas Haas
On Fri, 10 Dec 2021 19:06:15 +0100 Marton Balint wrote: > Don't we already have av_format_inject_global_side_data() for something > like this? It is not enabled by default however, only for ffplay, but I am > not sure why. Indeed, that seems to do exactly what we need - while testing though I n

Re: [FFmpeg-devel] [PATCH] avfilter: add audio dynamic equalizer filter

2021-12-11 Thread Paul B Mahol
will apply soon ___ 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".

Re: [FFmpeg-devel] [PATCH v2] avfilter/dnn: fix incompatible integer to pointer conversion warning

2021-12-11 Thread Hendrik Leppkes
On Sat, Dec 11, 2021 at 4:47 AM wrote: > > On Sat, Dec 11, 2021 at 03:06:42AM +, Guo, Yejun wrote: > > > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > lance.lmw...@gmail.com > > Sent: 2021年12月9日 22:37 > > To: ffmpeg-devel@ffmpeg.org > > Cc: Limin Wang > > Subject: