[FFmpeg-devel] [PATCH v6 10/11] libavformat/asfdec: Fix parameter type in asf_read_stream_propertie()

2021-10-05 Thread Soft Works
Signed-off-by: softworkz --- libavformat/asfdec_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 024d77903b..b8140a6d57 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -323,7 +323,7 @@ static int asf_

[FFmpeg-devel] [PATCH v6 11/11] libavformat/asfdec: Fix variable types and add checks for unsupported values

2021-10-05 Thread Soft Works
Signed-off-by: softworkz --- libavformat/asfdec_f.c | 168 ++--- 1 file changed, 108 insertions(+), 60 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index b8140a6d57..c7141f6da1 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/

[FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add codec properties field to AVCodecParameters

2021-10-05 Thread Soft Works
This fixes incorrect display of closed_captions property in ffprobe. Repro Example: ffprobe -show_entries stream=closed_captions:disposition=:side_data= "http://streams.videolan.org/streams/ts/CC/NewsStream-608-ac3.ts"; While the codec string included "Closed Captions", the stream data is showe

[FFmpeg-devel] [PATCH v3 2/2] ffprobe: Use codec properties value from AvCodecParameters

2021-10-05 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffprobe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 90e895bbf9..f5c6335a13 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2655,9 +2655,9 @@ static int show_stream(WriterConte

Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add codec properties field to AVCodecParameters

2021-10-06 Thread Soft Works
odec properties field to AVCodecParameters > > On Wed, Oct 6, 2021 at 8:45 AM Soft Works > wrote: > > diff --git a/libavcodec/codec_par.h b/libavcodec/codec_par.h > > index 10cf79dff1..42ed8deb13 100644 > > --- a/libavcodec/codec_par.h > > +++ b/libavcodec/codec_par.h

Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add codec properties field to AVCodecParameters

2021-10-06 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Soft Works > Sent: Wednesday, October 6, 2021 8:45 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add codec > properties field to AVCodecParameters > > T

[FFmpeg-devel] [PATCH v12 00/14] Subtitle Filtering

2021-10-06 Thread Soft Works
v12 Update: - FEATURE-COMPLETE No more features or filters are needed for the introduction of subtitle filtering - Adapted patchset to the changes regarding .query_formats in avfilter - Removed underscores in filter names - Expose all options from cc_dec from the splitcc filter - Added 'ren

[FFmpeg-devel] [PATCH v12 01/14] global: Prepare AVFrame for subtitle handling

2021-10-06 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 v12 02/14] global: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

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

[FFmpeg-devel] [PATCH v12 03/14] fftools/play, probe: Adjust for subtitle changes

2021-10-06 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 ccea0e4578..e8d36485ae 100644 --- a/fftoo

[FFmpeg-devel] [PATCH v12 04/14] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2021-10-06 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 v12 05/14] avfilter/avfilter: Handle subtitle frames

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

[FFmpeg-devel] [PATCH v12 06/14] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-10-06 Thread Soft Works
Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 63 +++ libavfilter/buffersink.h | 15 + libavfilter/buffersrc.c | 72 libavfilter/buffersr

[FFmpeg-devel] [PATCH v12 07/14] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2021-10-06 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 v12 09/14] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-10-06 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 v12 10/14] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-10-06 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 | 211 libavfilte

[FFmpeg-devel] [PATCH v12 08/14] fftools/ffmpeg: Replace sub2video with subtitle frame filtering

2021-10-06 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 v12 11/14] avfilter/stripstyles: Add stripstyles filter

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

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

2021-10-06 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 v12 13/14] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-10-06 Thread Soft Works
Signed-off-by: softworkz --- configure| 1 + doc/filters.texi | 55 ++ libavfilter/Makefile | 2 + libavfilter/allfilters.c | 1 + libavfilter/sf_graphicsub2text.c | 323 +++ 5 files changed, 382 in

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

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

Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add codec properties field to AVCodecParameters

2021-10-06 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Wednesday, October 6, 2021 11:30 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add > codec properties field to AVCodecParam

Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add codec properties field to AVCodecParameters

2021-10-06 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Wednesday, October 6, 2021 12:18 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add > codec properties field to AVCodecParam

Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add codec properties field to AVCodecParameters

2021-10-06 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Wednesday, October 6, 2021 12:18 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add > codec properties field to AVCodecParam

[FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: Remove redundant loop

2021-10-10 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffmpeg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9d4f9d7a2b..e205945e63 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2178,7 +2178,7 @@ static int ifilter_send_frame(InputFilte

[FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg: Fix indentation after change

2021-10-10 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffmpeg.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index e205945e63..b47e596878 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2216,22 +2216,22 @@ static

Re: [FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg: Fix indentation after change

2021-10-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Sunday, October 10, 2021 6:41 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg: Fix > indentation after change > > Soft Works: &

[FFmpeg-devel] [PATCH v2 1/2] fftools/ffmpeg: Remove redundant loop

2021-10-10 Thread Soft Works
Signed-off-by: softworkz --- v2: Replaced tabs fftools/ffmpeg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9d4f9d7a2b..e205945e63 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2178,7 +2178,7 @@ static int ifilter_se

[FFmpeg-devel] [PATCH v2 2/2] fftools/ffmpeg: Fix indentation after change

2021-10-10 Thread Soft Works
Signed-off-by: softworkz --- v2: Replaced tabs fftools/ffmpeg.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index e205945e63..7545b7c68e 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2216,22 +2216

Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add codec properties field to AVCodecParameters

2021-10-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Soft Works > Sent: Wednesday, October 6, 2021 2:29 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/codec_par: Add > c

Re: [FFmpeg-devel] [PATCH v5 00/20] clean-up QSV filters

2021-10-10 Thread Soft Works
Haihao wrote: > > On Mon, 2021-08-30 at 08:04 +, Xiang, Haihao wrote: > > > On Mon, 2021-08-30 at 05:52 +, Soft Works wrote: [..] > > > > > > > > > > > > Hi Hihao, > > > > > > > > > > > > The gener

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

2021-10-10 Thread Soft Works
th directions > > On Fri, 2021-08-13 at 06:29 +, Xiang, Haihao wrote: > > On Tue, 2021-08-10 at 09:52 +, Soft Works wrote: > > > The test /libavutil/tests/hwdevice checks that when deriving a > device > > > from a source device and then deriving back t

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

2021-10-10 Thread Soft Works
The test /libavutil/tests/hwdevice checks that when deriving a device from a source device and then deriving back to the type of the source device, the result is matching the original source device, i.e. the derivation mechanism doesn't create a new device in this case. Previously, this test was u

[FFmpeg-devel] [PATCH v13 00/14] Subtitle Filtering

2021-10-10 Thread Soft Works
v13 Update: - FEATURE-COMPLETE - Adapted patchset to upstream changes regarding AVPacket handling (v12 couldn't be applied anymore) - Some adjustments for cases where hw acceleration is involved v12 Update: - FEATURE-COMPLETE No more features or filters are needed for the introduction of

[FFmpeg-devel] [PATCH v13 01/14] global: Prepare AVFrame for subtitle handling

2021-10-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 v13 02/14] global: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

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

[FFmpeg-devel] [PATCH v13 03/14] fftools/play, probe: Adjust for subtitle changes

2021-10-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 ccea0e4578..e8d36485ae 100644 --- a/fftoo

[FFmpeg-devel] [PATCH v13 04/14] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2021-10-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 v13 05/14] avfilter/avfilter: Handle subtitle frames

2021-10-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 v13 06/14] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-10-10 Thread Soft Works
Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 63 +++ libavfilter/buffersink.h | 15 + libavfilter/buffersrc.c | 72 libavfilter/buffersr

[FFmpeg-devel] [PATCH v13 07/14] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2021-10-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 v13 08/14] fftools/ffmpeg: Replace sub2video with subtitle frame filtering

2021-10-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 v13 09/14] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-10-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 v13 10/14] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-10-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 | 211 libavfilte

[FFmpeg-devel] [PATCH v13 11/14] avfilter/stripstyles: Add stripstyles filter

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

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

2021-10-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 v13 13/14] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-10-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 | 323 +++ 5 files changed, 382 in

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

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

Re: [FFmpeg-devel] [PATCH 1/1] avutil/frame: Document the possibility of negative line sizes

2021-10-10 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Soft Works > Sent: Thursday, September 30, 2021 5:31 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH 1/1] avutil/frame: Document the > possibility of negative line sizes > &g

[FFmpeg-devel] [PATCH v2 1/1] avutil/frame: Document the possibility of negative line sizes

2021-10-12 Thread Soft Works
Signed-off-by: softworkz --- libavutil/frame.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libavutil/frame.h b/libavutil/frame.h index ff2540a20f..f07e690410 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -304,7 +304,8 @@ typedef struct AVFrame {

[FFmpeg-devel] [PATCH 1/5] avfilter/avfilter: Add avfilter_alloc() and avfilter_query_formats() for initializing filters without a graph

2021-10-12 Thread Soft Works
The purpose of these additions is for being able to programatically retrieve the supported formats of a filter for each input and output without adding the filter to a graph and creating connections. Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c |

[FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print filter input/output formats in help output

2021-10-12 Thread Soft Works
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) [yuv420p, yuvj420p, yuva420p, nv12, nv21] #1: overlay (video) [yuva420p] Outputs: #0: default (video)

[FFmpeg-devel] [PATCH 3/5] avfilter/aphasemeter: add null check

2021-10-12 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/avf_aphasemeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c index d9302cf867..eca8751258 100644 --- a/libavfilter/avf_aphasemeter.c +++ b/libavfilter/avf_aphasemeter.c

[FFmpeg-devel] [PATCH 4/5] avfilter/ocr: add null check

2021-10-12 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/vf_ocr.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_ocr.c b/libavfilter/vf_ocr.c index f6249e61fc..a8be529033 100644 --- a/libavfilter/vf_ocr.c +++ b/libavfilter/vf_ocr.c @@ -115,8 +115,10 @@ static av_cold voi

[FFmpeg-devel] [PATCH 5/5] avfilter/movie: add null check

2021-10-12 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/src_movie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 573f363705..2002e176b3 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -332,7 +332,7 @@ static av_

[FFmpeg-devel] [PATCH 1/1] Print bit depth when executing 'ffmpeg -pix_fmts'

2021-10-12 Thread Soft Works
New output looks like this: Pixel formats: I = Supported Input format for conversion .O... = Supported Output format for conversion ..H.. = Hardware accelerated format ...P. = Paletted format B = Bitstream format FLAGS NAMENB_COMPONENTS BITS_PER_PIXEL BIT_DEPTH - IO... yuv

[FFmpeg-devel] [PATCH 1/1] libavutil/opt: fix mis-alignment of option and constant values for filter help

2021-10-12 Thread Soft Works
Before: overlay AVOptions: x ..FV... set the x expression (default "0") y ..FV... set the y expression (default "0") eof_action..FV... Action to take when encountering EOF from secondary input (from 0 to 2) (default repe

Re: [FFmpeg-devel] [PATCH 1/1] Print bit depth when executing 'ffmpeg -pix_fmts'

2021-10-13 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Tobias Rapp > Sent: Wednesday, October 13, 2021 8:56 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/1] Print bit depth when > executing 'ffmpeg -pix_fmts' > >

Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print filter input/output formats in help output

2021-10-13 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Paul B Mahol > Sent: Wednesday, October 13, 2021 9:18 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print > filter input/output formats in help o

Re: [FFmpeg-devel] [PATCH 1/5] avfilter/avfilter: Add avfilter_alloc() and avfilter_query_formats() for initializing filters without a graph

2021-10-13 Thread Soft Works
gt; avfilter_alloc() and avfilter_query_formats() for initializing > filters without a graph > > On Wed, Oct 13, 2021 at 6:50 AM Soft Works > wrote: > > > The purpose of these additions is for being able to programatically > > retrieve > > the supported formats of a filter for e

Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print filter input/output formats in help output

2021-10-13 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Paul B Mahol > Sent: Wednesday, October 13, 2021 9:27 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print > filter input/output formats in help o

Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print filter input/output formats in help output

2021-10-13 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Soft Works > Sent: Wednesday, October 13, 2021 9:36 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print > filter inpu

Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print filter input/output formats in help output

2021-10-13 Thread Soft Works
t/output formats in help output > > On Wed, Oct 13, 2021 at 9:58 AM Soft Works > wrote: > > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of > > > Soft Works > > > Sent: Wednesday, October 13, 202

[FFmpeg-devel] [PATCH v2 1/1] Print bit depths when executing 'ffmpeg -pix_fmts'

2021-10-13 Thread Soft Works
New output looks like this: Pixel formats: I = Supported Input format for conversion .O... = Supported Output format for conversion ..H.. = Hardware accelerated format ...P. = Paletted format B = Bitstream format FLAGS NAMENB_COMPONENTS BITS_PER_PIXEL BIT_DEPTHS - IO... yu

[FFmpeg-devel] [PATCH 1/1] fftools/ffmpeg: Output log message when interactive q command is received

2021-10-13 Thread Soft Works
When viewing logs, it's sometimes useful to be able to see whether execution was ended via q command. Signed-off-by: softworkz --- fftools/ffmpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 7545b7c68e..d141f34df9 100644 --- a

[FFmpeg-devel] [PATCH 1/1] avformat/dump: Print codec level and stream start offsets for input streams

2021-10-13 Thread Soft Works
Signed-off-by: softworkz --- libavformat/dump.c | 9 + 1 file changed, 9 insertions(+) diff --git a/libavformat/dump.c b/libavformat/dump.c index 4824965ee9..17e216bf0f 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -562,6 +562,10 @@ static void dump_stream_format(const AVFo

Re: [FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print filter input/output formats in help output

2021-10-13 Thread Soft Works
t/output formats in help output > > On Wed, Oct 13, 2021 at 10:24 AM Soft Works > wrote: > > > > > > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of > > > Paul B Mahol > > > Sent: Wednesday, October 13, 2021

[FFmpeg-devel] Commit Message Line Wrapping

2021-10-13 Thread Soft Works
Hi everybody, I have submitted a patch with the following commit message: (with the patch being about text column alignment) - Before: overlay AVOptions: x ..FV... set the x expression (default "0") y ..FV... set the

[FFmpeg-devel] [PATCH v3 1/1] fftools/cmdutils: Print bit depths when executing 'ffmpeg -pix_fmts'

2021-10-13 Thread Soft Works
New output looks like this: Pixel formats: I = Supported Input format for conversion .O... = Supported Output format for conversion ..H.. = Hardware accelerated format ...P. = Paletted format B = Bitstream format FLAGS NAMENB_COMPONENTS BITS_PER_PIXEL BIT_DEPTHS - IO... yu

[FFmpeg-devel] [PATCH v2 1/1] avformat/dump: Print codec level and stream start offsets for input streams

2021-10-13 Thread Soft Works
Signed-off-by: softworkz --- v2: rearrange code to fix warning libavformat/dump.c | 8 1 file changed, 8 insertions(+) diff --git a/libavformat/dump.c b/libavformat/dump.c index 4824965ee9..58bb28d06e 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -566,6 +566,9 @@ static v

Re: [FFmpeg-devel] [PATCH v6 00/10] make QSV works with the Intel's oneVPL

2021-10-15 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Haihao Xiang > Sent: Friday, October 15, 2021 3:39 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Haihao Xiang > Subject: [FFmpeg-devel] [PATCH v6 00/10] make QSV works with the > Intel's oneVPL > > The oneAPI Video Processing Library (

[FFmpeg-devel] [PATCH 1/1] swscale/swscale: check SWS_PRINT_INFO flag for printing alignment warnings

2021-10-16 Thread Soft Works
This makes output consistent with a similar warning just few lines above where this flag is checked in the same way. Signed-off-by: softworkz --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 75cde31f4f.

[FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-18 Thread Soft Works
Introduce a way for decoders to request application exit via error return Signed-off-by: softworkz --- fftools/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9d4f9d7a2b..dbbe670a0a 100644 --- a/fftools/ffmpeg.c +++ b/fftools

[FFmpeg-devel] [PATCH 2/2] avutil/cuda_check: request application exit when CUDA_ERROR_UNKNOWN is received

2021-10-18 Thread Soft Works
We've seen a case where an error from cuvid api is ending up in an endless loop, creating a log file of > 10 GB like this: [h264_cuvid @ 0xda1b40] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed -> CUDA_ERROR_UNKNOWN: unknown error Error while decoding stream #0:0: Generic error in a

[FFmpeg-devel] [PATCH 1/1] fftools/ffprobe: print size of attachment streams

2021-10-18 Thread Soft Works
Signed-off-by: softworkz --- doc/ffprobe.xsd | 3 +++ fftools/ffprobe.c | 4 2 files changed, 7 insertions(+) diff --git a/doc/ffprobe.xsd b/doc/ffprobe.xsd index b65e54dbef..d0cddd6130 100644 --- a/doc/ffprobe.xsd +++ b/doc/ffprobe.xsd @@ -258,6 +258,9 @@ + +

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-18 Thread Soft Works
> > On 2021-10-19 04:54 am, Soft Works wrote: > > Introduce a way for decoders to request application exit via error > return > > Why? The ffmpeg app may be processing multiple inputs and outputs. At > most, you can close the codec and end the stream. When a hardware dev

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-18 Thread Soft Works
> > On 2021-10-19 09:38 am, Soft Works wrote: > > > >> -Original Message- > >> From: ffmpeg-devel On Behalf Of > >> Gyan Doshi > >> Sent: Tuesday, October 19, 2021 6:01 AM > >> To: ffmpeg-devel@ffmpeg.org > >> Subjec

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-18 Thread Soft Works
> > On 2021-10-19 10:11 am, Soft Works wrote: > > > Maybe there's a better way than my patch, but what happens is > > a bug IMO, and I wouldn't say that it would be a fix to say that > > a certain option needs to be set by the user to "fix it".

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-19 Thread Soft Works
t: Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit > >> application when decoding returns AVERROR_EXIT > >> > >> > >> > >> On 2021-10-19 10:11 am, Soft Works wrote: > >> > >>> Maybe there's a better way than my patch, but what happen

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-19 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Paul B Mahol > Sent: Tuesday, October 19, 2021 9:52 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit > application when decoding returns AVERROR_

Re: [FFmpeg-devel] [PATCH v6 00/10] make QSV works with the Intel's oneVPL

2021-10-19 Thread Soft Works
t; > On Fri, 15 Oct 2021, at 22:23, Soft Works wrote: > > I really appreciate all the effort that Intel is taking to improve > > ffmppeg for QSV hw acceleration, but in this case I'm not convinced > > that this should be merged into ffmpeg at this time. > > > > [..

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-19 Thread Soft Works
t: Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit > >> application when decoding returns AVERROR_EXIT > >> > >> On 10/19/2021 2:07 AM, Soft Works wrote: > >>> > >>> > >>>> -Original Message- > >>>> From: ffmpeg-de

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-19 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > James Almer > Sent: Tuesday, October 19, 2021 10:51 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit > application when decoding returns AVERROR_EXIT > You didn't ask for alternativ

Re: [FFmpeg-devel] [PATCH v6 00/10] make QSV works with the Intel's oneVPL

2021-10-19 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Jean-Baptiste Kempf > Sent: Wednesday, October 20, 2021 8:01 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v6 00/10] make QSV works with the > Intel's oneVPL > > > &g

Re: [FFmpeg-devel] [PATCH v6 00/10] make QSV works with the Intel's oneVPL

2021-10-19 Thread Soft Works
FFmpeg-devel] [PATCH v6 00/10] make QSV works with > the > >> Intel's oneVPL > >> > >> Hello, > >> > >> On Fri, 15 Oct 2021, at 22:23, Soft Works wrote: > >> > I really appreciate all the effort that Intel is taking to > improve > &

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: exit application when decoding returns AVERROR_EXIT

2021-10-20 Thread Soft Works
on when decoding returns AVERROR_EXIT > > Soft Works (12021-10-18): > > Introduce a way for decoders to request application exit via error > return > > > > Signed-off-by: softworkz > > --- > > fftools/ffmpeg.c | 2 +- > > 1 file changed, 1 insertion(+), 1

[FFmpeg-devel] [PATCH v14 00/14] Subtitle Filtering

2021-10-20 Thread Soft Works
v14 Update: - FEATURE-COMPLETE Fixes: - get_subtitle_buffer: set extended data - overlaygraphicsubs: copy time base from input - subtitle_heartbeat: Fix pts when re-sending - subtitle_heartbeat: only beat on video stream timing - subtitle_heartbeat: propagate beat over all input files - overlay t

[FFmpeg-devel] [PATCH v14 01/14] global: Prepare AVFrame for subtitle handling

2021-10-20 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 v14 02/14] global: Move ass helper functions to avutil as avpriv_ and extend ass dialog parsing

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

[FFmpeg-devel] [PATCH v14 03/14] fftools/play, probe: Adjust for subtitle changes

2021-10-20 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 ccea0e4578..e8d36485ae 100644 --- a/fftoo

[FFmpeg-devel] [PATCH v14 04/14] avfilter/subtitles: Add subtitles.c for subtitle frame allocation

2021-10-20 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 v14 05/14] avfilter/avfilter: Handle subtitle frames

2021-10-20 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 v14 06/14] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2021-10-20 Thread Soft Works
Signed-off-by: softworkz --- configure| 2 +- libavfilter/allfilters.c | 2 ++ libavfilter/buffersink.c | 63 +++ libavfilter/buffersink.h | 15 + libavfilter/buffersrc.c | 72 libavfilter/buffersr

[FFmpeg-devel] [PATCH v14 07/14] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2021-10-20 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 v14 09/14] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2021-10-20 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 v14 08/14] fftools/ffmpeg: Replace sub2video with subtitle frame filtering

2021-10-20 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 v14 10/14] avfilter/textmod: Add textmod, censor and show_speaker filters

2021-10-20 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 | 211 libavfilte

[FFmpeg-devel] [PATCH v14 11/14] avfilter/stripstyles: Add stripstyles filter

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

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

2021-10-20 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 v14 13/14] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2021-10-20 Thread Soft Works
Signed-off-by: softworkz --- configure| 1 + doc/filters.texi | 55 ++ libavfilter/Makefile | 2 + libavfilter/allfilters.c | 1 + libavfilter/sf_graphicsub2text.c | 323 +++ 5 files changed, 382 in

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