[FFmpeg-devel] [PATCH 0/3] Detect field_order when probing MP4/H264

2021-09-10 Thread Nicolas Gaullier
My use case is a typical ffprobe+ffmpeg scenario where there are many MP4/H264 progressive materials. I just want to avoid inserting a deinterlacing filter if it is not required. NOTE: many MP4 files don't have a 'fiel' box. I may be missing sth, but in my information, this is actually a quickti

[FFmpeg-devel] [PATCH 2/3] avformat/utils: Use r_frame_rate in compute_frame_duration if codec_framerate is unknown

2021-09-10 Thread Nicolas Gaullier
Signed-off-by: Nicolas Gaullier --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index b56190d2da..6d4a9bc3d6 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -884,7 +884,7 @@ static void compute_fra

[FFmpeg-devel] [PATCH 3/3] avformat/mov: Set AVSTREAM_PARSE_HEADERS flag for H264

2021-09-10 Thread Nicolas Gaullier
This is required to get the field_order. Signed-off-by: Nicolas Gaullier --- libavformat/mov.c | 2 ++ tests/ref/fate/mov-zombie | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index c5583e07c7..907a0c4cee 100644 --- a/libavform

[FFmpeg-devel] [PATCH 1/3] avcodec/h264_parser: Set AVCodecContext.framerate

2021-09-10 Thread Nicolas Gaullier
Signed-off-by: Nicolas Gaullier --- libavcodec/h264_parser.c | 11 + tests/ref/fate/h264-lossless | 18 +- tests/ref/fate/h264_mp4toannexb_ticket2991 | 238 ++--- 3 files changed, 139 insertions(+), 128 deletions(-) diff --git a/libavcodec/h264_p

Re: [FFmpeg-devel] [PATCHv2] avcodec/siren: add checksum calculation

2021-09-10 Thread Peter Ross
On Thu, Sep 09, 2021 at 10:40:06AM -0300, James Almer wrote: > On 9/9/2021 5:46 AM, Peter Ross wrote: > > --- > > > > Thanks for suggestion. I will apply in a couple days if no objections. > > > > libavcodec/siren.c | 32 +++- > > 1 file changed, 31 insertions(+), 1

Re: [FFmpeg-devel] [PATCH 3/3] avformat/mov: Set AVSTREAM_PARSE_HEADERS flag for H264

2021-09-10 Thread Nicolas Gaullier
It seems there is an email issue for the ml and patchwork despite the use of git send-email, certainly due to the overly long updated fate line. So please find this patch attached (fate pass with fate_samples set). Nicolas 0003-avformat-mov-Set-AVSTREAM_PARSE_HEADERS-flag-for-H26.patch Descripti

Re: [FFmpeg-devel] [PATCH 14/14] fftools/ffprobe: Don't access AVProgram.(start|end)_time

2021-09-10 Thread Tobias Rapp
On 09.09.2021 17:57, Andreas Rheinhardt wrote: These are internal fields. Signed-off-by: Andreas Rheinhardt --- show_program() is only entered by three tests: mpegts-probe-pmt-merge, mpegts-probe-program and mpegts-probe-latm. Even mpegts-probe-latm does not print detailed information about pro

Re: [FFmpeg-devel] [PATCH v2 4/5] libavfilter/x86/vf_gblur: add localbuf and ff_horiz_slice_avx2/512()

2021-09-10 Thread zhilizhao(赵志立)
Hi Wu, > On Aug 4, 2021, at 10:06 AM, Wu Jianhua wrote: > > We introduced a ff_horiz_slice_avx2/512() implemented on a new algorithm. > In a nutshell, the new algorithm does three things, gathering data from > 8/16 rows, blurring data, and scattering data back to the image buffer. > Here we used

[FFmpeg-devel] libavformat/rtpdec_jpeg.c patch to allow fragmentation offset to include q header and table data

2021-09-10 Thread Hayden Myers
>From fb2b280e44b785b99b27c24503c61574168701b9 Mon Sep 17 00:00:00 2001 From: Hayden Myers Date: Fri, 10 Sep 2021 14:35:28 -0400 Subject: [PATCH] libavformat/rtpdec_jpeg.c: Allow fragmentation offset to include q header and data Some jpeg over rtp streams include the quantization header and tabl

[FFmpeg-devel] [PATCH v3 00/18] Subtitle Filtering

2021-09-10 Thread Soft Works
v3 Update: - Reworked, revised, rebased, reorganized, refactored - No more prototype/test-style code - Additional subtitle filters added - Filter documentation added - Adjusted FATE tests This patchset is about introducing filtering support for subtitles. The current sub2video "hack" implementa

[FFmpeg-devel] [PATCH v3 01/18] avutil/frame: Subtitle Filtering - Add AVMediaType property to AVFrame

2021-09-10 Thread Soft Works
This is the root commit for adding subtitle filtering capabilities. Adding the media type property to AVFrame replaces the previous way of distinction which was based on checking width and height to determine whether a frame is audio or video. Signed-off-by: softworkz --- libavutil/frame.c | 7

[FFmpeg-devel] [PATCH v3 06/18] avcodec/ass_split: Extend ass dialog parsing

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- libavcodec/ass_split.c | 12 ++-- libavcodec/ass_split.h | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libavcodec/ass_split.c b/libavcodec/ass_split.c index 05c5453e53..e58585d3da 100644 --- a/libavcodec/ass_split.c +++ b/libavcodec/

[FFmpeg-devel] [PATCH v3 02/18] avutil/subfmt: Move AVSubtitleType, AVSubtitle and AVSubtitleRect to avutil

2021-09-10 Thread Soft Works
Moving these type to avutil - analog to e.g. samplefmt, pixfmt Signed-off-by: softworkz --- libavutil/Makefile | 2 + libavutil/subfmt.c | 78 libavutil/subfmt.h | 125 + 3 files changed, 205 insertions(+) create mode 1

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

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffmpeg.c| 408 +--- fftools/ffmpeg.h| 12 +- fftools/ffmpeg_filter.c | 198 +-- fftools/ffmpeg_hw.c | 2 +- fftools/ffmpeg_opt.c| 3 +- 5 files changed, 323 insertions(+), 300 del

[FFmpeg-devel] [PATCH v3 03/18] avcodec/avcodec: Remove AVSubtitleType, AVSubtitle and AVSubtitleRect from avcodec

2021-09-10 Thread Soft Works
Moved to libavutil/subfmt, include subfmt.h from avcodec.h Signed-off-by: softworkz --- libavcodec/ass.c | 2 +- libavcodec/ass.h | 6 +-- libavcodec/assdec.c | 2 +- libavcodec/assenc.c | 4 +- libavcodec/avcodec.c | 19 -

[FFmpeg-devel] [PATCH v3 04/18] avcodec/avcodec: Add av_get_subtitle_format_from_codecdesc function

2021-09-10 Thread Soft Works
Introduce a single place for deriving an AVSubtitleType from AV_CODEC_PROP_xxx Signed-off-by: softworkz --- libavcodec/avcodec.h | 8 libavcodec/decode.c | 5 + libavcodec/utils.c | 11 +++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/libavcodec/avcod

[FFmpeg-devel] [PATCH v3 05/18] avcodec/avcodec: Remove sub_text_format parameter

2021-09-10 Thread Soft Works
It has never been used and going forward, there's no perspective that it would ever be. Signed-off-by: softworkz --- libavcodec/avcodec.h | 8 libavcodec/options_table.h | 2 -- libavcodec/version.h | 4 ++-- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/li

[FFmpeg-devel] [PATCH v3 09/18] avfilter/subtitles: Add subtitles.c

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/Makefile | 1 + libavfilter/f_interleave.c | 3 ++ libavfilter/internal.h | 1 + libavfilter/subtitles.c| 61 ++ libavfilter/subtitles.h| 44 +++ 5 files changed, 110 insertio

[FFmpeg-devel] [PATCH v3 07/18] fftools/play, probe: Adjust for subtitle format type change

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- fftools/ffplay.c | 2 +- fftools/ffprobe.c | 23 ++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 46758b9f55..f6a4d242c3 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -2250,7

[FFmpeg-devel] [PATCH v3 10/18] avfilter/avfilter: Handle subtitle frames

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/avfilter.c | 8 +--- libavfilter/avfiltergraph.c | 5 + libavfilter/formats.c | 14 ++ libavfilter/formats.h | 3 +++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/libavfilter/avfilter.c b/libavfilt

[FFmpeg-devel] [PATCH v3 11/18] avfilter/subtitles: adjust for recent changes

2021-09-10 Thread Soft Works
- use new function av_get_subtitle_format_from_codecdesc - change error message - remove obsolete 'sub_text_format' parameter Signed-off-by: softworkz --- libavfilter/vf_subtitles.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/li

[FFmpeg-devel] [PATCH v3 12/18] avfilter/sbuffer: Add sbuffersrv and sbuffersink filters

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

[FFmpeg-devel] [PATCH v3 13/18] avfilter/overlay_graphicsubs: Add overlay_graphicsubs and graphicsub2video filters

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/Makefile | 2 + libavfilter/allfilters.c | 2 + libavfilter/vf_overlay_graphicsubs.c | 740 +++ 3 files changed, 744 insertions(+) create mode 100644 libavfilter/vf_overlay_graphicsubs.c diff --git

[FFmpeg-devel] [PATCH v3 14/18] avfilter/overlay_textsubs: Add overlay_textsubs and textsubs2video filters

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- configure | 2 + libavfilter/Makefile | 2 + libavfilter/allfilters.c | 2 + libavfilter/avfilter.c| 18 +- libavfilter/vf_overlay_textsubs.c | 633 ++ 5 files changed, 652 in

[FFmpeg-devel] [PATCH v3 15/18] avfilter/textmod: Add textmod filter

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/Makefile | 3 + libavfilter/allfilters.c | 1 + libavfilter/sf_textmod.c | 409 +++ 3 files changed, 413 insertions(+) create mode 100644 libavfilter/sf_textmod.c diff --git a/libavfilter/Makefile b/libavfilter

[FFmpeg-devel] [PATCH v3 16/18] avfilter/stripstyles: Add stripstyles filter

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_stripstyles.c | 246 +++ 3 files changed, 248 insertions(+) create mode 100644 libavfilter/sf_stripstyles.c diff --git a/libavfilter/Makefile b

[FFmpeg-devel] [PATCH v3 17/18] docs/filters: Add documentation for all new subtitle filters

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- doc/filters.texi | 263 +++ 1 file changed, 263 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 9ad6031d23..a7b80acada 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -25016,6 +25016,269 @@ tool

[FFmpeg-devel] [PATCH v3 18/18] tests/fate: Update subtitle tests

2021-09-10 Thread Soft Works
Signed-off-by: softworkz --- tests/ref/fate/filter-overlay-dvdsub-2397 | 181 +++--- tests/ref/fate/sub-dvb| 162 ++- tests/ref/fate/sub2video | 178 - tests/ref/fate/sub2video_basic| 93 ++--

[FFmpeg-devel] [PATCH v3 02/18] avutil/subfmt: Move AVSubtitleType, AVSubtitle and AVSubtitleRect to avutil

2021-09-10 Thread Soft Works
Moving these type to avutil - analog to e.g. samplefmt, pixfmt Signed-off-by: softworkz --- libavutil/Makefile | 2 + libavutil/subfmt.c | 78 libavutil/subfmt.h | 125 + 3 files changed, 205 insertions(+) create mode 1