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

2021-12-03 Thread Soft Works
Signed-off-by: softworkz --- doc/APIchanges | 6 libavcodec/avcodec.h | 19 + libavutil/Makefile | 1 + libavutil/subfmt.h | 66 libavutil/version.h | 1 + 5 files changed, 75 insertions(+), 18 deletions(-) create mode

[FFmpeg-devel] [PATCH v19 00/20] Subtitle Filtering

2021-12-03 Thread Soft Works
New in V19 - Document API changes in all relevant commits - Move enum AVSubtitleType: Improved commit message - Put deprecated enum values under removal guards - Document AV_SUBTITLE_FMT_NB - Fixed all trailing whitespace - splitcc: Add scatter_realtime_output option - splitcc: Emit empty

[FFmpeg-devel] [PATCH v2 1/1] avcodec/dvbsubdec: Fix conditions for fallback to default resolution

2021-12-03 Thread Soft Works
The previous code expected a segment of type CLUT definition to exist in order to accept a set of segments to be complete. This was an incorrect assumption as the presence of a CLUT segment is not mandatory. (version 1.6.1 of the spec is probably a bit more clear about this than earlier versions:

Re: [FFmpeg-devel] [PATCH v18 12/19] fftools/ffmpeg: Replace sub2video with subtitle frame filtering and use new frame-based subtitle encoding API

2021-12-03 Thread Soft Works
title frame filtering and use new frame-based subtitle > encoding API > > On Mon, Nov 29, 2021 at 07:48:25PM +, Soft Works wrote: > > This commit actually enables subtitle filtering in ffmpeg by > > sending and receiving subtitle frames to and from a filtergraph. > > &

[FFmpeg-devel] [PATCH] avcodec/dvbsubdec: Fix conditions for fallback to default resolution

2021-12-03 Thread Soft Works
The previous code expected a segment of type CLUT definition to exist in order to accept a set of segments to be complete. This was an incorrect assumption as the presence of a CLUT segment is not mandatory. (version 1.6.1 of the spec is probably a bit more clear about this than earlier

Re: [FFmpeg-devel] [PATCH v18 01/19] avcodec, avutil: Move enum AVSubtitleType

2021-12-03 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Wednesday, December 1, 2021 2:35 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v18 01/19] avcodec, avutil: Move enum > AVSubtitleType > > Quoting Soft

Re: [FFmpeg-devel] [PATCH v18 01/19] avcodec, avutil: Move enum AVSubtitleType

2021-12-03 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Wednesday, December 1, 2021 2:35 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v18 01/19] avcodec, avutil: Move enum > AVSubtitleType > > Quoting Soft

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

2021-12-03 Thread Soft Works
g > > > Subject: Re: [FFmpeg-devel] [PATCH v2 1/1] avcodec/vpp_qsv: Copy side > data > > > from input to output frame > > > > > > Quoting Soft Works (2021-11-30 15:22:38) > > > > Signed-off-by: softworkz > > > > --- >

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

2021-12-02 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 5 + libavfilter/vf_overlay_qsv.c | 19 +++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index d1218355c7..b291216292 100644 --- a/libavfilter/qsvvpp.c

[FFmpeg-devel] [PATCH v3 1/2] avutil/frame: Add av_frame_copy_side_data() function

2021-12-02 Thread Soft Works
Signed-off-by: softworkz --- V3: Split commits, add version bump, use flag param doc/APIchanges | 3 +++ libavutil/frame.c | 58 ++--- libavutil/frame.h | 16 + libavutil/version.h | 4 ++-- 4 files changed, 54 insertions(+), 27

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

2021-12-02 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Wednesday, December 1, 2021 11:55 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v2 1/1] avcodec/vpp_qsv: Copy side data > from input to output frame > >

[FFmpeg-devel] [PATCH v2 1/1] avcodec/vpp_qsv: Copy side data from input to output frame

2021-11-30 Thread Soft Works
Signed-off-by: softworkz --- V2: Add public method av_frame_copy_side_data() instead to copying the implementation. libavfilter/qsvvpp.c | 5 libavfilter/vf_overlay_qsv.c | 19 +--- libavutil/frame.c| 57 libavutil/frame.h

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

2021-11-30 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 59 libavfilter/qsvvpp.h | 2 ++ libavfilter/vf_overlay_qsv.c | 19 +--- 3 files changed, 76 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c

Re: [FFmpeg-devel] [PATCH v18 15/19] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-11-30 Thread Soft Works
show_speaker filters > > On Mon, Nov 29, 2021 at 07:48:38PM +, 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

[FFmpeg-devel] [PATCH 2/2] avcodec/dvbsub: Don't dump images to disk based on DEBUG define

2021-11-29 Thread Soft Works
It's been a regular annoyance. Introduce a debug-only parameter for this. Signed-off-by: softworkz --- libavcodec/dvbsubdec.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index d192f3251d..e629b315c7 100644

[FFmpeg-devel] [PATCH 1/2] avcodec/dvdsub: Don't dump images to disk based on DEBUG define

2021-11-29 Thread Soft Works
It's been a regular annoyance. Introduce a debug-only parameter for this. Signed-off-by: softworkz --- libavcodec/dvdsubdec.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 52259f0730..c0f796068e 100644 ---

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

2021-11-29 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

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

2021-11-29 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

[FFmpeg-devel] [PATCH v18 17/19] avfilter/splitcc: Add splitcc filter for closed caption handling

2021-11-29 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"

[FFmpeg-devel] [PATCH v18 16/19] avfilter/stripstyles: Add stripstyles filter

2021-11-29 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

[FFmpeg-devel] [PATCH v18 15/19] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-11-29 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

[FFmpeg-devel] [PATCH v18 14/19] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-11-29 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 v18 13/19] avfilter/avfilter: Fix hardcoded input index

2021-11-29 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

[FFmpeg-devel] [PATCH v18 12/19] fftools/ffmpeg: Replace sub2video with subtitle frame filtering and use new frame-based subtitle encoding API

2021-11-29 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

[FFmpeg-devel] [PATCH v18 11/19] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2021-11-29 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 v18 10/19] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-11-29 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 v18 09/19] avfilter/avfilter: Handle subtitle frames

2021-11-29 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 v18 08/19] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2021-11-29 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 v18 07/19] fftools/play, probe: Adjust for subtitle changes

2021-11-29 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 ---

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

2021-11-29 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 v18 05/19] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

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

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

2021-11-29 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 377160c72b..a240cbd415 100644 --- a/libavfilter/vf_subtitles.c +++

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

2021-11-29 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

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

2021-11-29 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 +++

[FFmpeg-devel] [PATCH v18 01/19] avcodec, avutil: Move enum AVSubtitleType

2021-11-29 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/avcodec.h | 19 +-- libavutil/subfmt.h | 58 2 files changed, 59 insertions(+), 18 deletions(-) create mode 100644 libavutil/subfmt.h diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h

[FFmpeg-devel] [PATCH v18 00/19] Subtitle Filtering

2021-11-29 Thread Soft Works
New in V18 - rebased to latest head (to fix merge conflict in allfilters.c) - textmod: Removed two trailing blanks from sf_textmod.c - xsubdec: fix xsubdec regression found by Michael; packet size estimation as flawed - splitcc: Fix uninitialzed locals - splitcc: Do not propagate hwcontext on

Re: [FFmpeg-devel] [PATCH v17 15/19] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-11-29 Thread Soft Works
show_speaker filters > > On Sun, Nov 28, 2021 at 07:22:10PM +, Soft Works wrote: > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of Michael > > > Niedermayer > > > Sent: Sunday, November 28, 2021 8:05 PM > > &

[FFmpeg-devel] [PATCH 5/5] avcodec/qsvenc: Ensure payload array is initialized when using enc_ctrl

2021-11-29 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/qsvenc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 06f55604b5..2c3b22e5f7 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -1477,7 +1477,16 @@ static int

[FFmpeg-devel] [PATCH 4/5] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2021-11-29 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/qsvdec.c | 210 1 file changed, 210 insertions(+) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 8bce9f2cf0..62f3e65455 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -45,6 +45,12

[FFmpeg-devel] [PATCH 3/5] avcodec/h264dec: make h264_export_frame_props() accessible

2021-11-29 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/h264_slice.c | 98 + libavcodec/h264dec.h| 2 + 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 4467882775..5c1f38de03 100644 ---

[FFmpeg-devel] [PATCH 2/5] avcodec/hevcdec: make set_side_data() accessible

2021-11-29 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/hevcdec.c | 112 +-- libavcodec/hevcdec.h | 2 + 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 46d9edf8eb..53593d6186 100644 ---

[FFmpeg-devel] [PATCH 1/5] avcodec/mpeg12dec: make mpeg_decode_user_data() accessible

2021-11-29 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/mpeg12.h| 25 + libavcodec/mpeg12dec.c | 36 +--- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h index fb2b37e7c8..630afa4072 100644 ---

[FFmpeg-devel] [PATCH 0/5] Implement SEI parsing for QSV decoders

2021-11-29 Thread Soft Works
Missing SEI information has always been a major drawback when using the QSV decoders. I used to think that there's no chance to get at the data without explicit implementation from the MSDK side (or doing something weird like parsing in parallel). It turned out that there's a hardly known api

Re: [FFmpeg-devel] [PATCH v17 14/19] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-11-29 Thread Soft Works
bs and textsubs2video filters > > On Sat, Nov 27, 2021 at 07:38:07PM +, Soft Works wrote: > > - overlaytextsubs {VS -> V) > > Overlay text subtitles onto a video stream. > > > > - textsubs2video {S -> V) > > Converts text subtitles to video

Re: [FFmpeg-devel] [PATCH v17 15/19] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-11-28 Thread Soft Works
show_speaker filters > > On Sat, Nov 27, 2021 at 07:38:09PM +, 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

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

2021-11-27 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

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

2021-11-27 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

[FFmpeg-devel] [PATCH v17 17/19] avfilter/splitcc: Add splitcc filter for closed caption handling

2021-11-27 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"

[FFmpeg-devel] [PATCH v17 16/19] avfilter/stripstyles: Add stripstyles filter

2021-11-27 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

[FFmpeg-devel] [PATCH v17 15/19] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-11-27 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

[FFmpeg-devel] [PATCH v17 14/19] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-11-27 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 v17 13/19] avfilter/avfilter: Fix hardcoded input index

2021-11-27 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

[FFmpeg-devel] [PATCH v17 12/19] fftools/ffmpeg: Replace sub2video with subtitle frame filtering and use new frame-based subtitle encoding API

2021-11-27 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

[FFmpeg-devel] [PATCH v17 11/19] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2021-11-27 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 v17 10/19] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-11-27 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 v17 09/19] avfilter/avfilter: Handle subtitle frames

2021-11-27 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 v17 08/19] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2021-11-27 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 v17 04/19] avfilter/subtitles: Update vf_subtitles to use new decoding api

2021-11-27 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 377160c72b..a240cbd415 100644 --- a/libavfilter/vf_subtitles.c +++

[FFmpeg-devel] [PATCH v17 07/19] fftools/play, probe: Adjust for subtitle changes

2021-11-27 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 ---

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

2021-11-27 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 v17 05/19] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

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

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

2021-11-27 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 +++

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

2021-11-27 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

[FFmpeg-devel] [PATCH v17 01/19] avcodec, avutil: Move enum AVSubtitleType

2021-11-27 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/avcodec.h | 19 +-- libavutil/subfmt.h | 58 2 files changed, 59 insertions(+), 18 deletions(-) create mode 100644 libavutil/subfmt.h diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h

[FFmpeg-devel] [PATCH v17 00/19] Subtitle Filtering

2021-11-27 Thread Soft Works
New in V17 - Applied almost all suggestions that were made (thanks everybody!) - Split the initial commit, no longer moving the legacy structs (AVSubtitle..) - Use the regular encoding API for subtitles - Updated subtitle encoders to handle packet allocation - Removed compatibility layer for

Re: [FFmpeg-devel] [PATCH] avfilter/vf_paletteuse: Add missing parentheses

2021-11-27 Thread Soft Works
> -Original Message- > From: Andreas Rheinhardt > Sent: Saturday, November 27, 2021 3:03 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Andreas Rheinhardt ; Soft Works > > Subject: [PATCH] avfilter/vf_paletteuse: Add missing parentheses

Re: [FFmpeg-devel] [PATCH v3 1/1] fftools/ffprobe: print size of attachment streams (extradata_size)

2021-11-27 Thread Soft Works
reams (extradata_size) > > On Sat, Nov 27, 2021 at 01:12:31PM +, Soft Works wrote: > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of Michael > > > Niedermayer > > > Sent: Saturday, November 27, 2021 1:19 PM >

Re: [FFmpeg-devel] [PATCH v3 1/1] fftools/ffprobe: print size of attachment streams (extradata_size)

2021-11-27 Thread Soft Works
reams (extradata_size) > > On Sat, Nov 27, 2021 at 12:58:30AM +0100, Michael Niedermayer wrote: > > On Fri, Nov 26, 2021 at 10:01:23PM +, Soft Works wrote: > > > > > > > > > > -Original Message- > > > > From: ffmpeg-devel <mail

Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for subtitle handling

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: Saturday, November 27, 2021 11:39 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for > subtitle handling > > Anton Khirnov

Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for subtitle handling

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Saturday, November 27, 2021 11:33 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for > subtitle handling > > Quoting Andreas

Re: [FFmpeg-devel] [PATCH v16 15/16] avcodec/subtitles: Migrate subtitle encoders to frame-based API and provide a compatibility shim for the legacy api

2021-11-27 Thread Soft Works
based API and provide a compatibility shim for the > legacy api > > Soft Works: > > > > > >> -Original Message- > >> From: ffmpeg-devel On Behalf Of Andreas > >> Rheinhardt > >> Sent: Friday, November 26, 2021 4:09 PM > >> To: ffmpe

Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for subtitle handling

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: Saturday, November 27, 2021 10:55 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for > subtitle handling > > Andreas Rheinhardt

Re: [FFmpeg-devel] [PATCH v16 15/16] avcodec/subtitles: Migrate subtitle encoders to frame-based API and provide a compatibility shim for the legacy api

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Andreas > Rheinhardt > Sent: Friday, November 26, 2021 4:09 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v16 15/16] avcodec/subtitles: Migrate > subtitle encoders to frame-based API and provide a

Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for subtitle handling

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Saturday, November 27, 2021 10:25 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for > subtitle handling > > Quoting Andreas

Re: [FFmpeg-devel] [PATCH v16 08/16] fftools/ffmpeg: Replace sub2video with subtitle frame filtering

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Andreas > Rheinhardt > Sent: Saturday, November 27, 2021 10:29 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v16 08/16] fftools/ffmpeg: Replace > sub2video with subtitle frame filt

Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for subtitle handling

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Saturday, November 27, 2021 10:01 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for > subtitle handling &g

Re: [FFmpeg-devel] [PATCH v16 08/16] fftools/ffmpeg: Replace sub2video with subtitle frame filtering

2021-11-27 Thread Soft Works
title frame filtering > > Quoting Soft Works (2021-11-27 08:18:37) > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of Andreas > > > Rheinhardt > > > Sent: Friday, November 26, 2021 2:02 PM > > > To: ffmpeg-devel@ffmpeg.org >

Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for subtitle handling

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Saturday, November 27, 2021 9:52 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for > subtitle handling > > Quoting Soft

Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for subtitle handling

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Saturday, November 27, 2021 9:45 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for > subtitle handling &g

Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for subtitle handling

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Saturday, November 27, 2021 9:45 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for > subtitle handling &g

Re: [FFmpeg-devel] [PATCH v16 09/16] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-11-27 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Andreas > Rheinhardt > Sent: Friday, November 26, 2021 2:16 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v16 09/16] avfilter/overlaytextsubs: Add > overlaytextsubs and textsubs2video filters > > Changes to

Re: [FFmpeg-devel] [PATCH v16 08/16] fftools/ffmpeg: Replace sub2video with subtitle frame filtering

2021-11-26 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Soft Works > Sent: Saturday, November 27, 2021 8:19 AM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v16 08/16] fftools/ffmpeg: Replace > sub2video with subtit

Re: [FFmpeg-devel] [PATCH v16 08/16] fftools/ffmpeg: Replace sub2video with subtitle frame filtering

2021-11-26 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Andreas > Rheinhardt > Sent: Friday, November 26, 2021 2:02 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v16 08/16] fftools/ffmpeg: Replace > sub2video with subtitle frame filtering > > > -int

Re: [FFmpeg-devel] [PATCH v16 06/16] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-11-26 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Andreas > Rheinhardt > Sent: Friday, November 26, 2021 12:14 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v16 06/16] avfilter/sbuffer: Add > sbuffersrc and sbuffersink filters > > > +#include

Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for subtitle handling

2021-11-26 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Andreas > Rheinhardt > Sent: Friday, November 26, 2021 11:35 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for > subtitle handling Hi Andreas, thanks for the detailed

Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for subtitle handling

2021-11-26 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Thursday, November 25, 2021 4:56 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v15 01/16] global: Prepare AVFrame for > subtitle handling > > Quoting Soft

Re: [FFmpeg-devel] [PATCH v3 1/1] fftools/ffprobe: print size of attachment streams (extradata_size)

2021-11-26 Thread Soft Works
reams (extradata_size) > > On Fri, Nov 26, 2021 at 07:55:40PM +, Soft Works wrote: > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of Michael > > > Niedermayer > > > Sent: Friday, November 26, 2021 7:50 PM > > &

Re: [FFmpeg-devel] [PATCH v3 1/1] fftools/ffprobe: print size of attachment streams (extradata_size)

2021-11-26 Thread Soft Works
reams (extradata_size) > > On Thu, Nov 25, 2021 at 04:59:41PM +, Soft Works wrote: > > Another attempt: Created on Linux and zipped... > > tested and works > LGTM Thanks. Today I've seen that the v3 version with the patch as an attachment has been processed by patchwork: h

Re: [FFmpeg-devel] [PATCH v4 1/1] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions

2021-11-26 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Soft Works > Sent: Friday, November 26, 2021 8:29 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v4 1/1] avutils/hwcontext: When deriving a > hwdevice, search for exist

Re: [FFmpeg-devel] [PATCH v4 1/1] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions

2021-11-26 Thread Soft Works
h for existing device in both directions > > Quoting Soft Works (2021-11-26 19:43:58) > > Maybe I'm missing something, but hw device contexts are refcounted. > > What happens in hwdevice_ctx_free() is this: > > > > av_buffer_unref(>internal->source_device); > &

Re: [FFmpeg-devel] [PATCH v4 1/1] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions

2021-11-26 Thread Soft Works
h for existing device in both directions > > Quoting Soft Works (2021-11-25 18:02:54) > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of Anton > > > Khirnov > > > Sent: Thursday, November 25, 2021 5:40 PM > > >

Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for subtitle handling

2021-11-26 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: Friday, November 26, 2021 5:21 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v16 01/16] global: Prepare AVFrame for > subtitle handling > > You have completely disregarded my

Re: [FFmpeg-devel] [PATCH v4 1/1] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions

2021-11-26 Thread Soft Works
h for existing device in both directions > > Quoting Soft Works (2021-11-25 18:02:54) > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of Anton > > > Khirnov > > > Sent: Thursday, November 25, 2021 5:40 PM > > >

[FFmpeg-devel] [PATCH v16 16/16] fftools/ffmpeg: Use new frame-based subtitle encoding API

2021-11-25 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffmpeg.c | 60 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index c697c12777..603b4c23e0 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -896,10

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

2021-11-25 Thread Soft Works
Also introduce deferred loading of ass headers for all cases where it can't be taken from the context of a decoder. Signed-off-by: softworkz --- libavcodec/assenc.c| 81 - libavcodec/avcodec.h | 7 +++ libavcodec/dvbsubenc.c | 85

[FFmpeg-devel] [PATCH v16 14/16] avfilter/subscale: Add filter for scaling and/or re-arranging graphical subtitles

2021-11-25 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

[FFmpeg-devel] [PATCH v16 13/16] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-11-25 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

[FFmpeg-devel] [PATCH v16 12/16] avfilter/splitcc: Add splitcc filter for closed caption handling

2021-11-25 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"

[FFmpeg-devel] [PATCH v16 11/16] avfilter/stripstyles: Add stripstyles filter

2021-11-25 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

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

2021-11-25 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

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