[FFmpeg-devel] [PATCH 01/11] avfilter/overlay_vaapi: use FILTER_SINGLE_PIXFMT

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 30 +- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 3e6a0de13f..218daf571f 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH 02/11] avfilter/overlay_vaapi: build filter params just once

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 218daf571f..cf17426b5d 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b

[FFmpeg-devel] [PATCH 03/11] avfilter/overlay_vaapi: remove double framesync init

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 31 +-- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index cf17426b5d..66e736cce4 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH 04/11] avfilter/overlay_vaapi: handle secondary null input

2022-10-10 Thread softworkz
From: softworkz Currently segfaults in this case. Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 94 ++ 1 file changed, 49 insertions(+), 45 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index

[FFmpeg-devel] [PATCH 05/11] avfilter/overlay_vaapi: reformat options

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 1281038c36..c14aacbb5d 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH 06/11] avfilter/overlay_vaapi: remove redundant .get_buffer assignments

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index c14aacbb5d..71fc90a86b 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b/libavfilter

[FFmpeg-devel] [PATCH 07/11] avfilter/overlay_vaapi: add framesync options

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 71fc90a86b..f4f9cc58ec 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH 08/11] avfilter/overlay_vaapi: precalculate blend_state, enable pixel alpha

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 44 -- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index f4f9cc58ec..b2c254d9dd 100644 --- a

[FFmpeg-devel] [PATCH 09/11] avfilter/overlay_vaapi: enable expressions for overlay parameters

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 141 + 1 file changed, 127 insertions(+), 14 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index b2c254d9dd..7be7d52589 100644 --- a

[FFmpeg-devel] [PATCH 10/11] doc/filters.texi: remove incorrect statement

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/filters.texi | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 68205147f0..2d0b5db909 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -26267,7 +26267,6 @@ To use vaapi filters, you need to setup

[FFmpeg-devel] [PATCH 11/11] doc/filters.texi: update overlay_vaapi documentation

2022-10-10 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/filters.texi | 49 +--- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 2d0b5db909..5f4604a834 100644 --- a/doc/filters.texi +++ b/doc

[FFmpeg-devel] [PATCH 2/2] ftools/opt_common: Print filter input/output formats in help output

2022-10-11 Thread softworkz
From: softworkz Exmaple command: ffmpeg -h filters=overlay Output: Filter overlay Overlay a video source on top of the input. slice threading supported Inputs: #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p

[FFmpeg-devel] [PATCH 1/2] avfilter/avfilter: add avfilter_print_config_formats()

2022-10-11 Thread softworkz
From: softworkz Prints the following to AVBPrint: For pass-through filter links: "All (passthrough)" For filters using query_formats: "Dynamic" For filters using query_formats where a call to query_formats succeeds (example): "Dynamic, Defaults: [yu

[FFmpeg-devel] [PATCH v2 1/2] avfilter/avfilter: add avfilter_print_config_formats()

2022-10-11 Thread softworkz
From: softworkz Prints the following to AVBPrint: For pass-through filter links: "All (passthrough)" For filters using query_formats: "Dynamic" For filters using query_formats where a call to query_formats succeeds (example): "Dynamic, Defaults: [yu

[FFmpeg-devel] [PATCH v2 2/2] ftools/opt_common: Print filter input/output formats in help output

2022-10-11 Thread softworkz
From: softworkz Exmaple command: ffmpeg -h filters=overlay Output: Filter overlay Overlay a video source on top of the input. slice threading supported Inputs: #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p

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

2022-10-24 Thread softworkz
From: softworkz Signed-off-by: softworkz Signed-off-by: Anton Khirnov --- doc/APIchanges | 4 +++ libavutil/frame.c | 67 +++-- libavutil/frame.h | 32 ++ libavutil/version.h | 4 +-- 4 files changed, 79 insertions(+), 28

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

2022-10-24 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 6 ++ libavfilter/vf_overlay_qsv.c | 19 +++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 8428ee89ab..ae9766d12f 100644 --- a

[FFmpeg-devel] [PATCH v6 1/3] avcodec/hevcdec: factor out ff_hevc_set_set_to_frame

2022-10-24 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/hevc_sei.c | 252 ++ libavcodec/hevc_sei.h | 3 + libavcodec/hevcdec.c | 249 + 3 files changed, 260 insertions(+), 244 deletions(-) diff --git a

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

2022-10-24 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/h264_sei.c | 197 libavcodec/h264_sei.h | 2 + libavcodec/h264_slice.c | 190 +- 3 files changed, 200 insertions(+), 189 deletions(-) diff --git a

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

2022-10-24 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/Makefile | 2 +- libavcodec/qsvdec.c | 321 2 files changed, 322 insertions(+), 1 deletion(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 90c7f113a3..cbddbb0ace 100644 --- a

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

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/avcodec.h | 19 + libavutil/Makefile | 1 + libavutil/subfmt.h | 68 libavutil/version.h | 5 ++-- 4 files changed, 73 insertions(+), 20 deletions(-) create mode 100644

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

2022-10-25 Thread softworkz
From: softworkz 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

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

2022-10-25 Thread softworkz
From: softworkz - Modify avcodec_send_packet() to support subtitles via the regular frame based decoding API - Add decode_subtitle_shim() which takes subtitle frames, and serves as a compatibility shim to the legacy subtitle decoding API until all subtitle decoders are migrated to the

[FFmpeg-devel] [PATCH v9 04/25] avcodec/libzvbi: set subtitle type

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/libzvbi-teletextdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index 45e30eb01c..486aa1724e 100644 --- a/libavcodec/libzvbi-teletextdec.c +++ b/libavcodec

[FFmpeg-devel] [PATCH v9 05/25] avfilter/subtitles: Update vf_subtitles to use new decoding api

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_subtitles.c | 67 ++ 1 file changed, 54 insertions(+), 13 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 82e140e986..0ae156ad07 100644 --- a/libavfilter

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

2022-10-25 Thread softworkz
From: softworkz 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 v9 10/25] avfilter/avfilter: Handle subtitle frames

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/avfilter.c | 20 +--- libavfilter/avfilter.h | 11 +++ libavfilter/avfiltergraph.c | 5 + libavfilter/formats.c | 16 libavfilter/formats.h | 3 +++ libavfilter

[FFmpeg-devel] [PATCH v9 07/25] avcodec/subtitles: Replace deprecated enum values

2022-10-25 Thread softworkz
From: softworkz 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

[FFmpeg-devel] [PATCH v9 11/25] avfilter/avfilter: Fix hardcoded input index

2022-10-25 Thread softworkz
From: softworkz 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

[FFmpeg-devel] [PATCH v9 06/25] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

2022-10-25 Thread softworkz
From: softworkz Also add - hard_space callback (for upcoming fix) - extensible callback (for future extension) - new API which allows tag filtering Signed-off-by: softworkz --- libavcodec/Makefile | 56 +++--- libavcodec/ass.h | 151

[FFmpeg-devel] [PATCH v9 12/25] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 54 ++ libavfilter/buffersink.h | 7 libavfilter/buffersrc.c | 72 libavfilter

[FFmpeg-devel] [PATCH v9 13/25] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2022-10-25 Thread softworkz
From: softworkz - 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: sof

[FFmpeg-devel] [PATCH v9 14/25] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2022-10-25 Thread softworkz
From: softworkz - 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 + libav

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

2022-10-25 Thread softworkz
From: softworkz - 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

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

2022-10-25 Thread softworkz
From: softworkz - 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_ch

[FFmpeg-devel] [PATCH v9 16/25] avfilter/stripstyles: Add stripstyles filter

2022-10-25 Thread softworkz
From: softworkz - 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 |

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

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffplay.c | 102 +- fftools/ffprobe.c | 47 + 2 files changed, 77 insertions(+), 72 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index bcc00afe31..4ec186a0b3

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

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure|1 + doc/filters.texi | 55 ++ libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/sf_graphicsub2text.c | 1137 ++ 5

[FFmpeg-devel] [PATCH v9 20/25] avfilter/subfeed: add subtitle feed filter

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subfeed.c | 412 +++ 3 files changed, 414 insertions(+) create mode 100644 libavfilter/sf_subfeed.c diff --git a/libavfilter

[FFmpeg-devel] [PATCH v9 21/25] avfilter/text2graphicsub: Added text2graphicsub subtitle filter

2022-10-25 Thread softworkz
From: softworkz Added a text2graphicsub subtitle filter which converts text-based subtitle tracks to bitmap-based subtitle tracks. The filter uses libass to render the subtitles. It takes as parameters an output height and width, as well as a number of colors in the output palette as well as

[FFmpeg-devel] [PATCH v9 22/25] avfilter/snull, strim: Add snull and strim filters

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure| 2 +- libavfilter/Makefile | 2 ++ libavfilter/allfilters.c | 2 ++ libavfilter/sf_snull.c | 61 libavfilter/trim.c | 60 ++- 5

[FFmpeg-devel] [PATCH v9 23/25] avcodec/subtitles: Migrate subtitle encoders to frame-based API

2022-10-25 Thread softworkz
From: softworkz and provide a compatibility shim for the legacy api Signed-off-by: softworkz --- libavcodec/assenc.c | 189 ++-- libavcodec/avcodec.h| 5 +- libavcodec/codec_internal.h | 12 --- libavcodec/dvbsubenc.c | 96

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

2022-10-25 Thread softworkz
From: softworkz 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

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

2022-10-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure | 1 + doc/filters.texi | 164 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subscale.c | 884 ++ 5 files changed, 1051

[FFmpeg-devel] [PATCH v2 03/11] avfilter/overlay_vaapi: remove double framesync init

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 31 +-- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index cf17426b5d..66e736cce4 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH v2 05/11] avfilter/overlay_vaapi: reformat options

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 1281038c36..c14aacbb5d 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH v2 06/11] avfilter/overlay_vaapi: remove redundant .get_buffer assignments

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index c14aacbb5d..71fc90a86b 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b/libavfilter

[FFmpeg-devel] [PATCH v2 07/11] avfilter/overlay_vaapi: add framesync options

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 71fc90a86b..f4f9cc58ec 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH v2 08/11] avfilter/overlay_vaapi: precalculate blend_state, enable pixel alpha

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 44 -- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index f4f9cc58ec..b2c254d9dd 100644 --- a

[FFmpeg-devel] [PATCH v2 01/11] avfilter/overlay_vaapi: use FILTER_SINGLE_PIXFMT

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 30 +- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 3e6a0de13f..218daf571f 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH v2 09/11] avfilter/overlay_vaapi: enable expressions for overlay parameters

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 141 + 1 file changed, 127 insertions(+), 14 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index b2c254d9dd..307f3cf7fc 100644 --- a

[FFmpeg-devel] [PATCH v2 02/11] avfilter/overlay_vaapi: build filter params just once

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 218daf571f..cf17426b5d 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b

[FFmpeg-devel] [PATCH v2 10/11] doc/filters.texi: remove incorrect statement

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/filters.texi | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 68205147f0..2d0b5db909 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -26267,7 +26267,6 @@ To use vaapi filters, you need to setup

[FFmpeg-devel] [PATCH v2 11/11] doc/filters.texi: update overlay_vaapi documentation

2022-10-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/filters.texi | 51 +--- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 2d0b5db909..1d50db0e54 100644 --- a/doc/filters.texi +++ b/doc

[FFmpeg-devel] [PATCH v2 04/11] avfilter/overlay_vaapi: handle secondary null input

2022-10-30 Thread softworkz
From: softworkz Currently segfaults in this case. Signed-off-by: softworkz --- libavfilter/vf_overlay_vaapi.c | 94 ++ 1 file changed, 49 insertions(+), 45 deletions(-) diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index

[FFmpeg-devel] [PATCH v2 1/2] avutil/frame: Add av_frame_copy_side_data() and av_frame_remove_all_side_data()

2022-11-03 Thread softworkz
From: softworkz Signed-off-by: softworkz Signed-off-by: Anton Khirnov --- doc/APIchanges | 4 +++ libavutil/frame.c | 67 +++-- libavutil/frame.h | 32 ++ libavutil/version.h | 2 +- 4 files changed, 78 insertions(+), 27

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

2022-11-03 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 6 ++ libavfilter/vf_overlay_qsv.c | 19 +++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 8428ee89ab..ae9766d12f 100644 --- a

[FFmpeg-devel] [PATCH] libavutil/tests/md5: Avoid warnings

2022-01-20 Thread softworkz
From: softworkz Those are always showing up on Patchwork when FATE tests are failing, covering some possibly more useful information. Signed-off-by: softworkz --- libavutil/tests/md5: Avoid warnings Those are always showing up on Patchwork when FATE tests are failing, covering

[FFmpeg-devel] [PATCH v2] libavutil/tests/md5: Avoid warnings

2022-01-20 Thread softworkz
From: softworkz Those are always showing up on Patchwork when FATE tests are failing, covering some possibly more useful information. Signed-off-by: softworkz --- libavutil/tests/md5: Avoid warnings Those are always showing up on Patchwork when FATE tests are failing, covering

[FFmpeg-devel] [PATCH v3] libavutil/tests/md5: Avoid warnings

2022-01-20 Thread softworkz
From: softworkz Those are always showing up on Patchwork when FATE tests are failing, covering some possibly more useful information. Signed-off-by: softworkz --- libavutil/tests/md5: Avoid warnings Those are always showing up on Patchwork when FATE tests are failing, covering

[FFmpeg-devel] [PATCH] Update ReadMe.md for PR submission and reference Developer Documentation

2022-02-03 Thread softworkz
From: softworkz Signed-off-by: softworkz --- Update ReadMe.md for PR submission and reference Developer Documentation . Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-22%2Fsoftworkz%2Fpatch-2-v1 Fetch-It-Via: git fetch https://github.com/ffstaging

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

2022-06-25 Thread softworkz
From: softworkz 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

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

2022-06-25 Thread softworkz
From: softworkz 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

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

2022-06-25 Thread softworkz
From: softworkz - Modify avcodec_send_packet() to support subtitles via the regular frame based decoding API - Add decode_subtitle_shim() which takes subtitle frames, and serves as a compatibility shim to the legacy subtitle decoding API until all subtitle decoders are migrated to the

[FFmpeg-devel] [PATCH v5 05/25] avfilter/subtitles: Update vf_subtitles to use new decoding api

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_subtitles.c | 67 ++ 1 file changed, 54 insertions(+), 13 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 82e140e986..0ae156ad07 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH v5 04/25] avcodec/libzvbi: set subtitle type

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/libzvbi-teletextdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index 92466cc11e..2aab10a548 100644 --- a/libavcodec/libzvbi-teletextdec.c +++ b/libavcodec

[FFmpeg-devel] [PATCH v5 10/25] avfilter/avfilter: Handle subtitle frames

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/avfilter.c | 12 +--- libavfilter/avfilter.h | 11 +++ libavfilter/avfiltergraph.c | 5 + libavfilter/formats.c | 16 libavfilter/formats.h | 3 +++ libavfilter/internal.h

[FFmpeg-devel] [PATCH v5 06/25] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

2022-06-25 Thread softworkz
From: softworkz Also add - hard_space callback (for upcoming fix) - extensible callback (for future extension) - new API which allows tag filtering Signed-off-by: softworkz --- libavcodec/Makefile | 56 +++--- libavcodec/ass.h | 151

[FFmpeg-devel] [PATCH v5 07/25] avcodec/subtitles: Replace deprecated enum values

2022-06-25 Thread softworkz
From: softworkz 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

[FFmpeg-devel] [PATCH v5 11/25] avfilter/avfilter: Fix hardcoded input index

2022-06-25 Thread softworkz
From: softworkz 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

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

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffplay.c | 102 +- fftools/ffprobe.c | 47 + 2 files changed, 77 insertions(+), 72 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 040afa0189..111e157979

[FFmpeg-devel] [PATCH v5 12/25] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 54 ++ libavfilter/buffersink.h | 7 libavfilter/buffersrc.c | 72 libavfilter

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

2022-06-25 Thread softworkz
From: softworkz 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 v5 13/25] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2022-06-25 Thread softworkz
From: softworkz - 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: sof

[FFmpeg-devel] [PATCH v5 14/25] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2022-06-25 Thread softworkz
From: softworkz - 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 + libav

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

2022-06-25 Thread softworkz
From: softworkz - 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

[FFmpeg-devel] [PATCH v5 16/25] avfilter/stripstyles: Add stripstyles filter

2022-06-25 Thread softworkz
From: softworkz - 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 |

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

2022-06-25 Thread softworkz
From: softworkz - 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_ch

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

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure|1 + doc/filters.texi | 55 ++ libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/sf_graphicsub2text.c | 1137 ++ 5

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

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure | 1 + doc/filters.texi | 164 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subscale.c | 884 ++ 5 files changed, 1051

[FFmpeg-devel] [PATCH v5 20/25] avfilter/subfeed: add subtitle feed filter

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subfeed.c | 412 +++ 3 files changed, 414 insertions(+) create mode 100644 libavfilter/sf_subfeed.c diff --git a/libavfilter

[FFmpeg-devel] [PATCH v5 22/25] avfilter/snull, strim: Add snull and strim filters

2022-06-25 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure| 2 +- libavfilter/Makefile | 2 ++ libavfilter/allfilters.c | 2 ++ libavfilter/sf_snull.c | 50 libavfilter/trim.c | 46 +++- 5 files

[FFmpeg-devel] [PATCH v5 23/25] avcodec/subtitles: Migrate subtitle encoders to frame-based API

2022-06-25 Thread softworkz
From: softworkz and provide a compatibility shim for the legacy api Signed-off-by: softworkz --- libavcodec/assenc.c | 189 ++-- libavcodec/avcodec.h| 5 +- libavcodec/codec_internal.h | 12 --- libavcodec/dvbsubenc.c | 96

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

2022-06-25 Thread softworkz
From: softworkz 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

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

2022-06-26 Thread softworkz
From: softworkz 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

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

2022-06-26 Thread softworkz
From: softworkz 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

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

2022-06-26 Thread softworkz
From: softworkz - Modify avcodec_send_packet() to support subtitles via the regular frame based decoding API - Add decode_subtitle_shim() which takes subtitle frames, and serves as a compatibility shim to the legacy subtitle decoding API until all subtitle decoders are migrated to the

[FFmpeg-devel] [PATCH v6 04/25] avcodec/libzvbi: set subtitle type

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/libzvbi-teletextdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index 92466cc11e..2aab10a548 100644 --- a/libavcodec/libzvbi-teletextdec.c +++ b/libavcodec

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

2022-06-26 Thread softworkz
From: softworkz 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 v6 10/25] avfilter/avfilter: Handle subtitle frames

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/avfilter.c | 20 +--- libavfilter/avfilter.h | 11 +++ libavfilter/avfiltergraph.c | 5 + libavfilter/formats.c | 16 libavfilter/formats.h | 3 +++ libavfilter

[FFmpeg-devel] [PATCH v6 05/25] avfilter/subtitles: Update vf_subtitles to use new decoding api

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_subtitles.c | 67 ++ 1 file changed, 54 insertions(+), 13 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 82e140e986..0ae156ad07 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH v6 12/25] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 54 ++ libavfilter/buffersink.h | 7 libavfilter/buffersrc.c | 72 libavfilter

[FFmpeg-devel] [PATCH v6 11/25] avfilter/avfilter: Fix hardcoded input index

2022-06-26 Thread softworkz
From: softworkz 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

[FFmpeg-devel] [PATCH v6 06/25] avcodec, avutil: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

2022-06-26 Thread softworkz
From: softworkz Also add - hard_space callback (for upcoming fix) - extensible callback (for future extension) - new API which allows tag filtering Signed-off-by: softworkz --- libavcodec/Makefile | 56 +++--- libavcodec/ass.h | 151

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

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/ffplay.c | 102 +- fftools/ffprobe.c | 47 + 2 files changed, 77 insertions(+), 72 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 040afa0189..111e157979

[FFmpeg-devel] [PATCH v6 07/25] avcodec/subtitles: Replace deprecated enum values

2022-06-26 Thread softworkz
From: softworkz 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

[FFmpeg-devel] [PATCH v6 13/25] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2022-06-26 Thread softworkz
From: softworkz - 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: sof

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

2022-06-26 Thread softworkz
From: softworkz - 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

[FFmpeg-devel] [PATCH v6 14/25] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2022-06-26 Thread softworkz
From: softworkz - 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 + libav

[FFmpeg-devel] [PATCH v6 16/25] avfilter/stripstyles: Add stripstyles filter

2022-06-26 Thread softworkz
From: softworkz - 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 |

  1   2   3   4   5   6   7   8   9   >