[FFmpeg-devel] [PATCH v1] avformat/mov: get endian format from pcmC

2022-05-28 Thread zedong . xzd
From: xiong zedong Signed-off-by: xiong zedong --- libavformat/mov.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index d7be593a86..a3a79679ad 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1552,10

[FFmpeg-devel] [PATCH v4] libavutil/tests/md5: Remove 'volatile workaround' to avoid warnings

2022-05-28 Thread softworkz
From: softworkz Those are always showing up on Patchwork when FATE tests are failing, covering some possibly more useful information. The volatile keyword was used as a workaround for an eight year old clang version. Signed-off-by: softworkz --- libavutil/tests/md5: Avoid warnings

[FFmpeg-devel] [PATCH v3] avcodec/dvdsubdec, dvbsubdec: remove bitmap dumping in DEBUG builds

2022-05-28 Thread softworkz
From: softworkz It's been a regular annoyance and often undesired. There will be a subtitle filter which allows to dump individual subtitle bitmaps. Signed-off-by: softworkz --- avcodec/dvdsubdec,dvbsubdec: remove bitmap dumping in DEBUG builds Original Message: > It's

[FFmpeg-devel] [PATCH v7 0/1] avutil/csp: create public API for colorspace structs

2022-05-28 Thread Leo Izen
Changes in v7: - remove #define AVUTIL_CSP_DENOM, a.r.b. Andreas R and Ronald B Changes in v6: - Reordered avutil/csp.h functions to be in alphabetical order, as requested by Lynne on IRC (which also matches the order they occur in csp.c) - Clarified that RGB->YUV matrix works for similar ones

[FFmpeg-devel] [PATCH v7 1/1] avutil/csp: create public API for colorspace structs

2022-05-28 Thread Leo Izen
This commit moves some of the functionality from avfilter/colorspace into avutil/csp and exposes it as a public API so it can be used by libavcodec and/or libavformat. It also converts those structs from double values to AVRational to make regression testing easier and more consistent. ---

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

2022-05-28 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 v4 21/23] avcodec/subtitles: Migrate subtitle encoders to frame-based API

2022-05-28 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 v4 20/23] avfilter/subfeed: add subtitle feed filter

2022-05-28 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subfeed.c | 402 +++ 3 files changed, 404 insertions(+) create mode 100644 libavfilter/sf_subfeed.c diff --git

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

2022-05-28 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 v4 18/23] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2022-05-28 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 | 1132 ++ 5

[FFmpeg-devel] [PATCH v4 16/23] avfilter/stripstyles: Add stripstyles filter

2022-05-28 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 | 211

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

2022-05-28 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],

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

2022-05-28 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 | 206

[FFmpeg-devel] [PATCH v4 14/23] avfilter/overlaytextsubs: Add overlaytextsubs and textsubs2video filters

2022-05-28 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 +

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

2022-05-28 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

[FFmpeg-devel] [PATCH v4 13/23] avfilter/overlaygraphicsubs: Add overlaygraphicsubs and graphicsub2video filters

2022-05-28 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: softworkz ---

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

2022-05-28 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 v4 12/23] avfilter/sbuffer: Add sbuffersrc and sbuffersink filters

2022-05-28 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

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

2022-05-28 Thread softworkz
From: softworkz Also add - hard_space callback (for upcoming fix) - extensible callback (for future extension) Signed-off-by: softworkz --- libavcodec/Makefile | 56 +++ libavcodec/ass.h | 151 ++ libavcodec/assdec.c

[FFmpeg-devel] [PATCH v4 11/23] avfilter/avfilter: Fix hardcoded input index

2022-05-28 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 v4 10/23] avfilter/avfilter: Handle subtitle frames

2022-05-28 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 v4 05/23] avfilter/subtitles: Update vf_subtitles to use new decoding api

2022-05-28 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 ---

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

2022-05-28 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 v4 04/23] avcodec/libzvbi: set subtitle type

2022-05-28 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 +++

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

2022-05-28 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 v4 02/23] avutil/frame: Prepare AVFrame for subtitle handling

2022-05-28 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 v4 01/23] avcodec, avutil: Move enum AVSubtitleType to avutil, add new and deprecate old values

2022-05-28 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

Re: [FFmpeg-devel] [PATCH v2] tests/fate/vcodec: Limit mem alignment for vsynth..mpeg2-422 tests

2022-05-28 Thread Soft Works
From: Kieran Kunhya Sent: Saturday, May 28, 2022 3:11 PM To: FFmpeg development discussions and patches Cc: softworkz Subject: Re: [FFmpeg-devel] [PATCH v2] tests/fate/vcodec: Limit mem alignment for vsynth..mpeg2-422 tests On Sat, 28 May 2022, 11:20 softworkz,

Re: [FFmpeg-devel] [PATCH v2] tests/fate/vcodec: Limit mem alignment for vsynth..mpeg2-422 tests

2022-05-28 Thread Kieran Kunhya
On Sat, 28 May 2022, 11:20 softworkz, wrote: > From: softworkz > > These tests: > > - vsynth2-mpeg2-422 > - vsynth1-mpeg2-422 > - vsynth_lena-mpeg2-422 > > were failing on newer CPUs where av_cpu_max_align() returns > values > 32. This patch sets cpuflags to disable avx512 > extensions for

Re: [FFmpeg-devel] [PATCH v5 1/1] avutil/csp: create public API for colorspace structs

2022-05-28 Thread Andreas Rheinhardt
Leo Izen: > > On 5/24/22 16:56, Andreas Rheinhardt wrote: >> Leo Izen: >>> +#define AVUTIL_CSP_DENOM 10 >> >> Why not 30 given that the denominator of one of the constants has a >> factor of three? >> (Sorry if this has already been answered before.) >> > > I suggested this to haasn, but

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2022-05-28 Thread Andreas Rheinhardt
Paul B Mahol: > Signed-off-by: Paul B Mahol > --- > configure |1 + > libavcodec/Makefile |1 + > libavcodec/allcodecs.c |1 + > libavcodec/bink2.c | 479 + > libavcodec/bink2f.c | 1234 > libavcodec/bink2g.c

[FFmpeg-devel] [PATCH v2] tests/fate/vcodec: Limit mem alignment for vsynth..mpeg2-422 tests

2022-05-28 Thread softworkz
From: softworkz These tests: - vsynth2-mpeg2-422 - vsynth1-mpeg2-422 - vsynth_lena-mpeg2-422 were failing on newer CPUs where av_cpu_max_align() returns values > 32. This patch sets cpuflags to disable avx512 extensions for those tests only. Signed-off-by: softworkz ---

[FFmpeg-devel] [PATCH] tests/fate/vcodec: Limit mem alignment for vsynth..mpeg2-422 tests

2022-05-28 Thread softworkz
From: softworkz These tests: - vsynth2-mpeg2-422 - vsynth1-mpeg2-422 - vsynth_lena-mpeg2-422 were failing on newer CPUs where av_cpu_max_align() returns values > 32. This patch sets cpuflags to disable avx512 extensions for those tests only. Signed-off-by: softworkz ---

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Paul B Mahol > Sent: Saturday, May 28, 2022 10:50 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] FATE Errors > > On Sat, May 28, 2022 at 10:41 AM Soft Works > wrote: > > >

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Paul B Mahol
On Sat, May 28, 2022 at 10:41 AM Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Paul B Mahol > > Sent: Saturday, May 28, 2022 10:33 AM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] FATE

Re: [FFmpeg-devel] [PATCH] avfilter/asrc_sine: Generate full amplitude sine wave.

2022-05-28 Thread Paul B Mahol
On Sat, May 28, 2022 at 10:39 AM Santanu Biswas wrote: > Previously, generating a full amplitude sine wave require to either > use the 'volume' filter in combination with this filter or manually > generate sine wave using 'aevalsrc' (e.g "aevalsrc=sin(2*PI*t*440)"). > This method is not

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Paul B Mahol > Sent: Saturday, May 28, 2022 10:33 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] FATE Errors > > On Sat, May 28, 2022 at 10:12 AM Soft Works > wrote: > > >

[FFmpeg-devel] [PATCH] avfilter/asrc_sine: Generate full amplitude sine wave.

2022-05-28 Thread Santanu Biswas
Previously, generating a full amplitude sine wave require to either use the 'volume' filter in combination with this filter or manually generate sine wave using 'aevalsrc' (e.g "aevalsrc=sin(2*PI*t*440)"). This method is not bit-exact; therefore it is much coherent to not scale the amplitude by

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Paul B Mahol
On Sat, May 28, 2022 at 10:12 AM Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Paul B Mahol > > Sent: Saturday, May 28, 2022 10:04 AM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] FATE

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Paul B Mahol > Sent: Saturday, May 28, 2022 10:04 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] FATE Errors > > On Sat, May 28, 2022 at 9:47 AM Soft Works > wrote: > > > >

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Paul B Mahol
On Sat, May 28, 2022 at 9:47 AM Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Paul B Mahol > > Sent: Saturday, May 28, 2022 9:35 AM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] FATE Errors

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Paul B Mahol > Sent: Saturday, May 28, 2022 9:35 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] FATE Errors > > On Sat, May 28, 2022 at 9:26 AM Soft Works > wrote: > > > >

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Paul B Mahol
On Sat, May 28, 2022 at 9:26 AM Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Paul B Mahol > > Sent: Saturday, May 28, 2022 9:26 AM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] FATE Errors

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Paul B Mahol > Sent: Saturday, May 28, 2022 9:26 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] FATE Errors > > On Fri, May 27, 2022 at 11:11 PM Soft Works > wrote: > > > >

Re: [FFmpeg-devel] FATE Errors

2022-05-28 Thread Paul B Mahol
On Fri, May 27, 2022 at 11:11 PM Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Andreas Rheinhardt > > Sent: Saturday, April 30, 2022 10:02 PM > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] FATE Errors > > > > James Almer: > > > > >

[FFmpeg-devel] [PATCH] avfilter: add tiltshelf audio filter

2022-05-28 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 91 libavfilter/af_biquads.c | 39 ++--- libavfilter/allfilters.c | 1 + 3 files changed, 125 insertions(+), 6 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index