[FFmpeg-devel] [PATCH v22 01/23] avcodec, avutil: Move enum AVSubtitleType to avutil, add new and deprecate old values

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/avcodec.h | 19 + libavutil/Makefile | 1 + libavutil/subfmt.h | 66 libavutil/version.h | 1 + 4 files changed, 69 insertions(+), 18 deletions(-) create mode 100644 libavutil/subfmt.h diff -

[FFmpeg-devel] [PATCH v22 02/23] avutil/frame: Prepare AVFrame for subtitle handling

2021-12-09 Thread Soft Works
Root commit for adding subtitle filtering capabilities. In detail: - Add type (AVMediaType) field to AVFrame Replaces previous way of distinction which was based on checking width and height to determine whether a frame is audio or video - Add subtitle fields to AVFrame - Add new struct AVSubt

[FFmpeg-devel] [PATCH v22 03/23] avcodec/subtitles: Introduce new frame-based subtitle decoding API

2021-12-09 Thread Soft Works
- Add avcodec_decode_subtitle3 which takes subtitle frames, serving as compatibility shim to legacy subtitle decoding - Add additional methods for conversion between old and new API Signed-off-by: softworkz --- libavcodec/avcodec.h| 8 +- libavcodec/codec_desc.c | 11 +++ libavcodec/cod

[FFmpeg-devel] [PATCH v22 04/23] avfilter/subtitles: Update vf_subtitles to use new decoding api

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/vf_subtitles.c | 54 +- 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 3fc4eeb63d..66b2082894 100644 --- a/libavfilter/vf_subtitles.c +++ b/l

[FFmpeg-devel] [PATCH v22 05/23] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/Makefile | 56 +++ libavcodec/ass.h | 147 ++ libavcodec/assdec.c | 2 +- libavcodec/assenc.c | 2 +- libavcodec/ccaption_dec

[FFmpeg-devel] [PATCH v22 06/23] avcodec/subtitles: Migrate subtitle encoders to frame-based API and provide a compatibility shim for the legacy api

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/assenc.c| 90 + libavcodec/avcodec.h | 5 +- libavcodec/dvbsubenc.c | 96 +-- libavcodec/dvdsubenc.c | 100 +++-- libavcodec/encode.c| 63

[FFmpeg-devel] [PATCH v22 07/23] avcodec/subtitles: Replace deprecated enum values

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/ass.h | 2 +- libavcodec/assdec.c| 2 +- libavcodec/dvbsubdec.c | 2 +- libavcodec/dvdsubdec.c | 2 +- libavcodec/dvdsubenc.c | 2 +- libavcodec/pgssubdec.c | 2 +- libavcodec/xsubdec.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) d

[FFmpeg-devel] [PATCH v22 08/23] fftools/play, probe: Adjust for subtitle changes

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffplay.c | 102 +- fftools/ffprobe.c | 48 ++ 2 files changed, 78 insertions(+), 72 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index e7b20be76b..0af32888da 100644 --- a/fftoo

[FFmpeg-devel] [PATCH v22 09/23] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2021-12-09 Thread Soft Works
Analog to avfilter/video.c and avfilter/audio.c Signed-off-by: softworkz --- libavfilter/Makefile| 1 + libavfilter/avfilter.c | 4 +++ libavfilter/internal.h | 1 + libavfilter/subtitles.c | 63 + libavfilter/subtitles.h | 44

[FFmpeg-devel] [PATCH v22 10/23] avfilter/avfilter: Handle subtitle frames

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/avfilter.c | 8 +--- libavfilter/avfilter.h | 11 +++ libavfilter/avfiltergraph.c | 5 + libavfilter/formats.c | 22 ++ libavfilter/formats.h | 3 +++ libavfilter/internal.h | 18 +++

[FFmpeg-devel] [PATCH v22 11/23] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 54 ++ libavfilter/buffersink.h | 7 libavfilter/buffersrc.c | 72 libavfilter/buffersrc.h | 1

[FFmpeg-devel] [PATCH v22 12/23] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2021-12-09 Thread Soft Works
- overlaygraphicsubs (VS -> V) Overlay graphic subtitles onto a video stream - graphicsub2video {S -> V) Converts graphic subtitles to video frames (with alpha) Gets auto-inserted for retaining compatibility with sub2video command lines Signed-off-by: softworkz --- doc/filters.texi

[FFmpeg-devel] [PATCH v22 14/23] avfilter/avfilter: Fix hardcoded input index

2021-12-09 Thread Soft Works
This fix targets (rare) cases where multiple input pads have a .filter_frame function. ff_request_frame_to_filter needs to call ff_request_frame with the correct input pad instead of the hardcoded first one. Signed-off-by: softworkz --- libavfilter/avfilter.c | 18 +- 1 file chan

[FFmpeg-devel] [PATCH v22 13/23] fftools/ffmpeg: Replace sub2video with subtitle frame filtering and use new frame-based subtitle encoding API

2021-12-09 Thread Soft Works
This commit actually enables subtitle filtering in ffmpeg by sending and receiving subtitle frames to and from a filtergraph. The heartbeat functionality from the previous sub2video implementation is retained and applied to all subtitle frames (bitmap, text, ..). The other part of sub2video funct

[FFmpeg-devel] [PATCH v22 15/23] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-12-09 Thread Soft Works
- overlaytextsubs {VS -> V) Overlay text subtitles onto a video stream. - textsubs2video {S -> V) Converts text subtitles to video frames Signed-off-by: softworkz --- configure| 2 + doc/filters.texi | 113 ++ libavfilter/Makefile |

[FFmpeg-devel] [PATCH v22 16/23] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-12-09 Thread Soft Works
- 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-off-by: softworkz --- doc/filters.texi | 206 libavfilte

[FFmpeg-devel] [PATCH v22 17/23] avfilter/stripstyles: Add stripstyles filter

2021-12-09 Thread Soft Works
- stripstyles {S -> S) Remove all inline styles from subtitle events Signed-off-by: softworkz --- doc/filters.texi | 37 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_stripstyles.c | 196 +++ 4 fi

[FFmpeg-devel] [PATCH v22 18/23] avfilter/splitcc: Add splitcc filter for closed caption handling

2021-12-09 Thread Soft Works
- splitcc {V -> VS) Extract closed-caption (A53) data from video frames as subtitle Frames ffmpeg -y -loglevel verbose -i "https://streams.videolan.org/streams/ts/CC/NewsStream-608-ac3.ts"; -filter_complex "[0:v]splitcc[vid1],textmod=mode=remove_chars:find='@',[vid1]overlay_textsubs" outpu

[FFmpeg-devel] [PATCH v22 19/23] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- configure| 1 + doc/filters.texi | 55 + libavfilter/Makefile | 2 + libavfilter/allfilters.c | 1 + libavfilter/sf_graphicsub2text.c | 354 +++ 5 files changed, 413 ins

[FFmpeg-devel] [PATCH v22 20/23] avfilter/subscale: Add filter for scaling and/or re-arranging graphical subtitles

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- configure | 1 + doc/filters.texi | 164 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subscale.c | 883 ++ 5 files changed, 1050 insertions(+) create mode 1

[FFmpeg-devel] [PATCH v22 21/23] doc/APIchanges: update for subtitle filtering changes

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- doc/APIchanges | 23 +++ libavcodec/version.h | 2 +- libavutil/version.h | 4 ++-- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 2914ad6734..bb47faf13d 100644 --- a/doc/APIchanges ++

[FFmpeg-devel] [PATCH v22 22/23] avutil/ass_split: Add parsing of hard-space tags (\h)

2021-12-09 Thread Soft Works
The \h tag in ASS/SSA is indicating a non-breaking space. See https://github.com/Aegisub/aegisite/blob/master/source/docs/3.2/ASS_Tags.html.md The ass_split implementation is used by almost all text subtitle encoders and it didn't handle this tag. Interestingly, several tests are testing for \h pa

[FFmpeg-devel] [PATCH v22 23/23] avcodec/webvttenc: convert hard-space tags to  

2021-12-09 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/webvttenc.c | 6 ++ tests/ref/fate/sub-webvttenc | 10 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c index 43dace6575..a4997969ee 100644 --- a/libavcodec/webvttenc.c +++

Re: [FFmpeg-devel] [PATCH v22 01/23] avcodec, avutil: Move enum AVSubtitleType to avutil, add new and deprecate old values

2021-12-09 Thread Soft Works
deprecate old values > > Soft Works: > > Signed-off-by: softworkz > > --- > > libavcodec/avcodec.h | 19 + > > libavutil/Makefile | 1 + > > libavutil/subfmt.h | 66 > > libavutil/version

Re: [FFmpeg-devel] [PATCH v22 22/23] avutil/ass_split: Add parsing of hard-space tags (\h)

2021-12-09 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Soft Works > Sent: Thursday, December 9, 2021 1:13 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH v22 22/23] avutil/ass_split: Add parsing of > hard-space tags (\h) > > The \h tag in ASS

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

2021-12-10 Thread Soft Works
i there. > This is my first message to this list, so please excuse me if I > unintendedly break some rule. > > I've read the debate between Soft Works and others, and would like to > add something to it. > I don't have a deep knowledge of the libs as other people here sh

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_overlay_qsv: Use format of first input to set output format for overlay_qsv

2021-12-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Wenbin Chen > Sent: Friday, December 10, 2021 3:22 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Wenbin Chen > Subject: [FFmpeg-devel] [PATCH] libavfilter/vf_overlay_qsv: Use format of > first input to set output format for overlay_qsv >

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_overlay_qsv: Use format of first input to set output format for overlay_qsv

2021-12-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Wenbin Chen > Sent: Friday, December 10, 2021 3:22 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Wenbin Chen > Subject: [FFmpeg-devel] [PATCH] libavfilter/vf_overlay_qsv: Use format of > first input to set output format for overlay_qsv >

[FFmpeg-devel] FATE-Suite Data Test Data

2021-12-10 Thread Soft Works
Hi, can we add the attached file (SubRip_capability_tester2.srt) to the fate-suite data? Compared to SubRip_capability_tester.srt, it has one line removed that would cause (legitimate) trailing whitespace in some ref data files. It hasn’t been an issue so far due to a bug in the encoders which

Re: [FFmpeg-devel] FATE-Suite Data Test Data

2021-12-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Andreas > Rheinhardt > Sent: Friday, December 10, 2021 8:00 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] FATE-Suite Data Test Data > > Soft Works: > > Hi, > &

[FFmpeg-devel] [PATCH 1/1] Test ref file change

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- tests/ref/fate/sub-textenc | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ref/fate/sub-textenc b/tests/ref/fate/sub-textenc index 3ea56b38f0..2310227c3e 100644 --- a/tests/ref/fate/sub-textenc +++ b/tests/ref/fate/sub-textenc @@ -

Re: [FFmpeg-devel] FATE-Suite Data Test Data

2021-12-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Andreas > Rheinhardt > Sent: Friday, December 10, 2021 8:21 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] FATE-Suite Data Test Data > > Soft Works: > > > > > >> -

[FFmpeg-devel] [PATCH 1/1] Test ref file change as attachment

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- tests/ref/fate/sub-textenc | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ref/fate/sub-textenc b/tests/ref/fate/sub-textenc index 3ea56b38f0..2310227c3e 100644 --- a/tests/ref/fate/sub-textenc +++ b/tests/ref/fate/sub-textenc @@ -1

[FFmpeg-devel] [PATCH v23 00/21] Subtitle Filtering

2021-12-10 Thread Soft Works
New in V22 - subfmt.h: Fix includes, use #if rather than #ifdef - subfmt.c: Remove unused struct - move addition of ass hard_space callback to commit 5 - also add ass extensibility callback - remove bugfix commits regarding ass hard-space due to being incompatible with GIT e-mail workflow New i

[FFmpeg-devel] [PATCH v23 01/21] avcodec, avutil: Move enum AVSubtitleType to avutil, add new and deprecate old values

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/avcodec.h | 19 + libavutil/Makefile | 1 + libavutil/subfmt.h | 68 libavutil/version.h | 1 + 4 files changed, 71 insertions(+), 18 deletions(-) create mode 100644 libavutil/subfmt.h diff -

[FFmpeg-devel] [PATCH v23 02/21] avutil/frame: Prepare AVFrame for subtitle handling

2021-12-10 Thread Soft Works
Root commit for adding subtitle filtering capabilities. In detail: - Add type (AVMediaType) field to AVFrame Replaces previous way of distinction which was based on checking width and height to determine whether a frame is audio or video - Add subtitle fields to AVFrame - Add new struct AVSubt

[FFmpeg-devel] [PATCH v23 04/21] avfilter/subtitles: Update vf_subtitles to use new decoding api

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/vf_subtitles.c | 54 +- 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 3fc4eeb63d..66b2082894 100644 --- a/libavfilter/vf_subtitles.c +++ b/l

[FFmpeg-devel] [PATCH v23 05/21] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

2021-12-10 Thread Soft Works
Also add - hard_space callback (for upcoming fix) - extensible callback (for future extension) Signed-off-by: softworkz --- libavcodec/Makefile | 56 +++ libavcodec/ass.h | 147 ++ libavcodec/assdec.c

[FFmpeg-devel] [PATCH v23 06/21] avcodec/subtitles: Migrate subtitle encoders to frame-based API and provide a compatibility shim for the legacy api

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/assenc.c| 90 + libavcodec/avcodec.h | 5 +- libavcodec/dvbsubenc.c | 96 +-- libavcodec/dvdsubenc.c | 100 +++-- libavcodec/encode.c| 63

[FFmpeg-devel] [PATCH v23 03/21] avcodec/subtitles: Introduce new frame-based subtitle decoding API

2021-12-10 Thread Soft Works
- Add avcodec_decode_subtitle3 which takes subtitle frames, serving as compatibility shim to legacy subtitle decoding - Add additional methods for conversion between old and new API Signed-off-by: softworkz --- libavcodec/avcodec.h| 8 +- libavcodec/codec_desc.c | 11 +++ libavcodec/cod

[FFmpeg-devel] [PATCH v23 07/21] avcodec/subtitles: Replace deprecated enum values

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/ass.h | 2 +- libavcodec/assdec.c| 2 +- libavcodec/dvbsubdec.c | 2 +- libavcodec/dvdsubdec.c | 2 +- libavcodec/dvdsubenc.c | 2 +- libavcodec/pgssubdec.c | 2 +- libavcodec/xsubdec.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) d

[FFmpeg-devel] [PATCH v23 08/21] fftools/play, probe: Adjust for subtitle changes

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffplay.c | 102 +- fftools/ffprobe.c | 48 ++ 2 files changed, 78 insertions(+), 72 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index e7b20be76b..0af32888da 100644 --- a/fftoo

[FFmpeg-devel] [PATCH v23 09/21] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2021-12-10 Thread Soft Works
Analog to avfilter/video.c and avfilter/audio.c Signed-off-by: softworkz --- libavfilter/Makefile| 1 + libavfilter/avfilter.c | 4 +++ libavfilter/internal.h | 1 + libavfilter/subtitles.c | 63 + libavfilter/subtitles.h | 44

[FFmpeg-devel] [PATCH v23 10/21] avfilter/avfilter: Handle subtitle frames

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/avfilter.c | 8 +--- libavfilter/avfilter.h | 11 +++ libavfilter/avfiltergraph.c | 5 + libavfilter/formats.c | 22 ++ libavfilter/formats.h | 3 +++ libavfilter/internal.h | 18 +++

[FFmpeg-devel] [PATCH v23 11/21] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 54 ++ libavfilter/buffersink.h | 7 libavfilter/buffersrc.c | 72 libavfilter/buffersrc.h | 1

[FFmpeg-devel] [PATCH v23 12/21] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2021-12-10 Thread Soft Works
- overlaygraphicsubs (VS -> V) Overlay graphic subtitles onto a video stream - graphicsub2video {S -> V) Converts graphic subtitles to video frames (with alpha) Gets auto-inserted for retaining compatibility with sub2video command lines Signed-off-by: softworkz --- doc/filters.texi

[FFmpeg-devel] [PATCH v23 13/21] fftools/ffmpeg: Replace sub2video with subtitle frame filtering and use new frame-based subtitle encoding API

2021-12-10 Thread Soft Works
This commit actually enables subtitle filtering in ffmpeg by sending and receiving subtitle frames to and from a filtergraph. The heartbeat functionality from the previous sub2video implementation is retained and applied to all subtitle frames (bitmap, text, ..). The other part of sub2video funct

[FFmpeg-devel] [PATCH v23 14/21] avfilter/avfilter: Fix hardcoded input index

2021-12-10 Thread Soft Works
This fix targets (rare) cases where multiple input pads have a .filter_frame function. ff_request_frame_to_filter needs to call ff_request_frame with the correct input pad instead of the hardcoded first one. Signed-off-by: softworkz --- libavfilter/avfilter.c | 18 +- 1 file chan

[FFmpeg-devel] [PATCH v23 15/21] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-12-10 Thread Soft Works
- overlaytextsubs {VS -> V) Overlay text subtitles onto a video stream. - textsubs2video {S -> V) Converts text subtitles to video frames Signed-off-by: softworkz --- configure| 2 + doc/filters.texi | 113 ++ libavfilter/Makefile |

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

2021-12-10 Thread Soft Works
- 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-off-by: softworkz --- doc/filters.texi | 206 libavfilte

[FFmpeg-devel] [PATCH v23 17/21] avfilter/stripstyles: Add stripstyles filter

2021-12-10 Thread Soft Works
- stripstyles {S -> S) Remove all inline styles from subtitle events Signed-off-by: softworkz --- doc/filters.texi | 37 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_stripstyles.c | 196 +++ 4 fi

[FFmpeg-devel] [PATCH v23 18/21] avfilter/splitcc: Add splitcc filter for closed caption handling

2021-12-10 Thread Soft Works
- splitcc {V -> VS) Extract closed-caption (A53) data from video frames as subtitle Frames ffmpeg -y -loglevel verbose -i "https://streams.videolan.org/streams/ts/CC/NewsStream-608-ac3.ts"; -filter_complex "[0:v]splitcc[vid1],textmod=mode=remove_chars:find='@',[vid1]overlay_textsubs" outpu

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

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- configure| 1 + doc/filters.texi | 55 + libavfilter/Makefile | 2 + libavfilter/allfilters.c | 1 + libavfilter/sf_graphicsub2text.c | 354 +++ 5 files changed, 413 ins

[FFmpeg-devel] [PATCH v23 21/21] doc/APIchanges: update for subtitle filtering changes

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- doc/APIchanges | 23 +++ libavcodec/version.h | 2 +- libavutil/version.h | 4 ++-- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 2914ad6734..bb47faf13d 100644 --- a/doc/APIchanges ++

[FFmpeg-devel] [PATCH v23 20/21] avfilter/subscale: Add filter for scaling and/or re-arranging graphical subtitles

2021-12-10 Thread Soft Works
Signed-off-by: softworkz --- configure | 1 + doc/filters.texi | 164 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subscale.c | 883 ++ 5 files changed, 1050 insertions(+) create mode 1

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

2021-12-11 Thread Soft Works
show_speaker filters > > 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 >

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 Soft Works
handling > > 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

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

2021-12-11 Thread Soft Works
show_speaker filters > > 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 >

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 v20 02/20] avutil/frame: Prepare AVFrame\n for subtitle handling

2021-12-11 Thread Soft Works
handling > > 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

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 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

[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] Politics

2021-12-12 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Soft Works > Sent: Sunday, December 12, 2021 7:16 AM > To: FFmpeg development discussions and patches > Subject: [FFmpeg-devel] Politics Hi, let me clarify a bit on the status and the motivation. I have started t

Re: [FFmpeg-devel] Politics

2021-12-12 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Paul B > Mahol > Sent: Sunday, December 12, 2021 9:09 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] Politics > > On Sun, Dec 12, 2021 at 8:42 PM Nicolas George wrote: > > > Ronald S. Bultje (1

Re: [FFmpeg-devel] [PATCH v3 2/2] avcodec/vpp_qsv: Copy side data from input to output frame

2021-12-12 Thread Soft Works
e > data > > > from input to output frame > > > > > > On Tue, 2021-12-07 at 12:39 +, Soft Works wrote: > > > > > -Original Message- > > > > > From: ffmpeg-devel On Behalf Of > Anton > > > > > Khirnov > > &g

Re: [FFmpeg-devel] Politics

2021-12-13 Thread Soft Works
> -Original Message- > From: Jean-Baptiste Kempf > Sent: Monday, December 13, 2021 7:01 PM > To: FFmpeg development discussions and patches > Cc: Soft Works > Subject: Re: [FFmpeg-devel] Politics > > Hello Softworkz > > On Sun, 12 Dec 2021, at 07:15, S

Re: [FFmpeg-devel] Politics

2021-12-13 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Calvin > Walton > Sent: Monday, December 13, 2021 8:32 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] Politics > > On Sun, 2021-12-12 at 06:15 +, Soft Works

Re: [FFmpeg-devel] Politics

2021-12-13 Thread Soft Works
> > > >> -Original Message- > >> From: Jean-Baptiste Kempf > >> Sent: Monday, December 13, 2021 7:01 PM > >> To: FFmpeg development discussions and patches > >> Cc: Soft Works > >> Subject: Re: [FFmpeg-devel] Politics > >> &

[FFmpeg-devel] [PATCH v24 00/21] Subtitle Filtering

2021-12-13 Thread Soft Works
New in V24 - Fixes bugs as reported by Michal - graphicsub2video: use 1x1 output frame size as long as subtitle size is unknown (0x0) and no size is not explicitly set - decode: set subtitle frame size from decoding context - ffmpeg: re-init graph when subtitle size changes - ffmpeg_filter: alway

[FFmpeg-devel] [PATCH v24 01/21] avcodec, avutil: Move enum AVSubtitleType to avutil, add new and deprecate old values

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/avcodec.h | 19 + libavutil/Makefile | 1 + libavutil/subfmt.h | 68 libavutil/version.h | 1 + 4 files changed, 71 insertions(+), 18 deletions(-) create mode 100644 libavutil/subfmt.h diff -

[FFmpeg-devel] [PATCH v24 02/21] avutil/frame: Prepare AVFrame for subtitle handling

2021-12-13 Thread Soft Works
Root commit for adding subtitle filtering capabilities. In detail: - Add type (AVMediaType) field to AVFrame Replaces previous way of distinction which was based on checking width and height to determine whether a frame is audio or video - Add subtitle fields to AVFrame - Add new struct AVSubt

[FFmpeg-devel] [PATCH v24 03/21] avcodec/subtitles: Introduce new frame-based subtitle decoding API

2021-12-13 Thread Soft Works
- Add avcodec_decode_subtitle3 which takes subtitle frames, serving as compatibility shim to legacy subtitle decoding - Add additional methods for conversion between old and new API Signed-off-by: softworkz --- libavcodec/avcodec.h| 8 +- libavcodec/codec_desc.c | 11 +++ libavcodec/cod

[FFmpeg-devel] [PATCH v24 04/21] avfilter/subtitles: Update vf_subtitles to use new decoding api

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/vf_subtitles.c | 54 +- 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 3fc4eeb63d..66b2082894 100644 --- a/libavfilter/vf_subtitles.c +++ b/l

[FFmpeg-devel] [PATCH v24 05/21] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

2021-12-13 Thread Soft Works
Also add - hard_space callback (for upcoming fix) - extensible callback (for future extension) Signed-off-by: softworkz --- libavcodec/Makefile | 56 +++ libavcodec/ass.h | 147 ++ libavcodec/assdec.c

[FFmpeg-devel] [PATCH v24 06/21] avcodec/subtitles: Migrate subtitle encoders to frame-based API and provide a compatibility shim for the legacy api

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/assenc.c| 90 + libavcodec/avcodec.h | 5 +- libavcodec/dvbsubenc.c | 96 +-- libavcodec/dvdsubenc.c | 100 +++-- libavcodec/encode.c| 63

[FFmpeg-devel] [PATCH v24 07/21] avcodec/subtitles: Replace deprecated enum values

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/ass.h | 2 +- libavcodec/assdec.c| 2 +- libavcodec/dvbsubdec.c | 2 +- libavcodec/dvdsubdec.c | 2 +- libavcodec/dvdsubenc.c | 2 +- libavcodec/pgssubdec.c | 2 +- libavcodec/xsubdec.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) d

[FFmpeg-devel] [PATCH v24 08/21] fftools/play, probe: Adjust for subtitle changes

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffplay.c | 102 +- fftools/ffprobe.c | 48 ++ 2 files changed, 78 insertions(+), 72 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index e7b20be76b..0af32888da 100644 --- a/fftoo

[FFmpeg-devel] [PATCH v24 09/21] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2021-12-13 Thread Soft Works
Analog to avfilter/video.c and avfilter/audio.c Signed-off-by: softworkz --- libavfilter/Makefile| 1 + libavfilter/avfilter.c | 4 +++ libavfilter/internal.h | 1 + libavfilter/subtitles.c | 63 + libavfilter/subtitles.h | 44

[FFmpeg-devel] [PATCH v24 10/21] avfilter/avfilter: Handle subtitle frames

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/avfilter.c | 8 +--- libavfilter/avfilter.h | 11 +++ libavfilter/avfiltergraph.c | 5 + libavfilter/formats.c | 22 ++ libavfilter/formats.h | 3 +++ libavfilter/internal.h | 18 +++

[FFmpeg-devel] [PATCH v24 11/21] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 54 ++ libavfilter/buffersink.h | 7 libavfilter/buffersrc.c | 72 libavfilter/buffersrc.h | 1

[FFmpeg-devel] [PATCH v24 12/21] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2021-12-13 Thread Soft Works
- overlaygraphicsubs (VS -> V) Overlay graphic subtitles onto a video stream - graphicsub2video {S -> V) Converts graphic subtitles to video frames (with alpha) Gets auto-inserted for retaining compatibility with sub2video command lines Signed-off-by: softworkz --- doc/filters.texi

[FFmpeg-devel] [PATCH v24 13/21] fftools/ffmpeg: Replace sub2video with subtitle frame filtering and use new frame-based subtitle encoding API

2021-12-13 Thread Soft Works
This commit actually enables subtitle filtering in ffmpeg by sending and receiving subtitle frames to and from a filtergraph. The heartbeat functionality from the previous sub2video implementation is retained and applied to all subtitle frames (bitmap, text, ..). The other part of sub2video funct

[FFmpeg-devel] [PATCH v24 14/21] avfilter/avfilter: Fix hardcoded input index

2021-12-13 Thread Soft Works
This fix targets (rare) cases where multiple input pads have a .filter_frame function. ff_request_frame_to_filter needs to call ff_request_frame with the correct input pad instead of the hardcoded first one. Signed-off-by: softworkz --- libavfilter/avfilter.c | 18 +- 1 file chan

[FFmpeg-devel] [PATCH v24 15/21] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-12-13 Thread Soft Works
- overlaytextsubs {VS -> V) Overlay text subtitles onto a video stream. - textsubs2video {S -> V) Converts text subtitles to video frames Signed-off-by: softworkz --- configure| 2 + doc/filters.texi | 113 ++ libavfilter/Makefile |

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

2021-12-13 Thread Soft Works
s- 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-off-by: softworkz --- doc/filters.texi | 206 libavfilt

[FFmpeg-devel] [PATCH v24 17/21] avfilter/stripstyles: Add stripstyles filter

2021-12-13 Thread Soft Works
- stripstyles {S -> S) Remove all inline styles from subtitle events Signed-off-by: softworkz --- doc/filters.texi | 37 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_stripstyles.c | 196 +++ 4 fi

[FFmpeg-devel] [PATCH v24 18/21] avfilter/splitcc: Add splitcc filter for closed caption handling

2021-12-13 Thread Soft Works
- splitcc {V -> VS) Extract closed-caption (A53) data from video frames as subtitle Frames ffmpeg -y -loglevel verbose -i "https://streams.videolan.org/streams/ts/CC/NewsStream-608-ac3.ts"; -filter_complex "[0:v]splitcc[vid1],textmod=mode=remove_chars:find='@',[vid1]overlay_textsubs" outpu

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

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- configure| 1 + doc/filters.texi | 55 + libavfilter/Makefile | 2 + libavfilter/allfilters.c | 1 + libavfilter/sf_graphicsub2text.c | 354 +++ 5 files changed, 413 ins

[FFmpeg-devel] [PATCH v24 20/21] avfilter/subscale: Add filter for scaling and/or re-arranging graphical subtitles

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- configure | 1 + doc/filters.texi | 164 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subscale.c | 883 ++ 5 files changed, 1050 insertions(+) create mode 1

[FFmpeg-devel] [PATCH v24 21/21] doc/APIchanges: update for subtitle filtering changes

2021-12-13 Thread Soft Works
Signed-off-by: softworkz --- doc/APIchanges | 23 +++ libavcodec/version.h | 2 +- libavutil/version.h | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 17aa664ca3..1e12225b60 100644 --- a/doc/APIchanges +++

Re: [FFmpeg-devel] Politics

2021-12-13 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Daniel > Cantarín > Sent: Tuesday, December 14, 2021 4:05 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] Politics > > > > > > As mentioned already, I have an offer to make. It might not be exactly > > what you wa

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for vaapi

2021-12-13 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of U. Artie > Eoff > Sent: Tuesday, December 14, 2021 5:08 AM > To: ffmpeg-devel@ffmpeg.org > Cc: U. Artie Eoff > Subject: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for vaapi > > Current listed maintainers for vaapi plugin

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for qsv

2021-12-14 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Eoff, > Ullysses A > Sent: Tuesday, December 14, 2021 5:00 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for qsv > > > -Original Message- > > From:

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for vaapi

2021-12-14 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Michael > Niedermayer > Sent: Tuesday, December 14, 2021 10:40 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for vaapi > > On Tue, Dec 14, 2021 at 12:16:16P

Re: [FFmpeg-devel] [PATCH v24 00/21] Subtitle Filtering

2021-12-14 Thread Soft Works
2021 at 11:40:16PM +, Soft Works wrote: > > New in V24 > > > > - Fixes bugs as reported by Michal > > - graphicsub2video: use 1x1 output frame size as long as subtitle size is > unknown (0x0) and no size is not explicitly set > > - decode: set subtitle frame si

[FFmpeg-devel] [PATCH v1 1/1] TEST Committing ref files with mixed EOL, marked as binary

2021-12-14 Thread Soft Works
This commit couldn't be applied due to mixed line endings in the ref files. For this test, I have added a .gitattributes file, marking these as binary (-diff) Signed-off-by: softworkz --- libavcodec/ass_split.c | 7 +++ tests/ref/fate/.gitattributes| 3 +++ tests/ref/fate/m

Re: [FFmpeg-devel] [PATCH v1 1/1] TEST Committing ref files with mixed EOL, marked as binary

2021-12-14 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Soft Works > Sent: Wednesday, December 15, 2021 1:04 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH v1 1/1] TEST Committing ref files with mixed > EOL, marked as binary > > This commit co

Re: [FFmpeg-devel] Politics

2021-12-15 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Paul B > Mahol > Sent: Wednesday, December 15, 2021 10:34 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] Politics > > On Tue, Dec 14, 2021 at 5

<    3   4   5   6   7   8   9   10   11   12   >