[FFmpeg-devel] [PATCH 8/8] vf_dnn_processing.c: add async support

2020-12-21 Thread Guo, Yejun
Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- doc/filters.texi| 4 ++ libavfilter/vf_dnn_processing.c | 78 - 2 files changed, 81 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi inde

[FFmpeg-devel] [PATCH 7/8] dnn_interface: change from 'void *userdata' to 'AVFilterContext *filter_ctx'

2020-12-21 Thread Guo, Yejun
'void *' is too flexible, since we can derive info from AVFilterContext*, so we just unify the interface with this data structure. Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 8 libavfilter/dnn/dnn_backend_na

[FFmpeg-devel] [PATCH 6/8] dnn: add async execution support for openvino backend

2020-12-21 Thread Guo, Yejun
Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_openvino.c | 162 +++-- libavfilter/dnn/dnn_backend_openvino.h | 3 + libavfilter/dnn/dnn_interface.c| 2 + libavfilter/dnn_interface.h| 2 +-

[FFmpeg-devel] [PATCH 5/8] dnn_interface: add interface to support async execution

2020-12-21 Thread Guo, Yejun
Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_interface.c | 2 +- libavfilter/dnn_interface.h | 12 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interfa

[FFmpeg-devel] [PATCH 4/8] dnn_backend_openvino.c: refine code for error handle

2020-12-21 Thread Guo, Yejun
Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_openvino.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c inde

[FFmpeg-devel] [PATCH 3/8] dnn_backend_openvino.c: separate function execute_model_ov

2020-12-21 Thread Guo, Yejun
function fill_model_input_ov and infer_completion_callback are extracted, it will help the async execution for reuse. Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_openvino.c | 292 +++-- 1 file changed, 175 inser

[FFmpeg-devel] [PATCH 2/8] dnn/queue: add queue and safe_queue support

2020-12-21 Thread Guo, Yejun
From: "Xie, Lin" Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- libavfilter/dnn/Makefile | 2 + libavfilter/dnn/queue.c | 176 +++ libavfilter/dnn/queue.h | 41 libavfilter/dnn/safe_queue.c | 92 +++

[FFmpeg-devel] [PATCH 1/8] vf_dnn_processing.c: replace filter_frame with activate func

2020-12-21 Thread Guo, Yejun
with this change, dnn_processing can use DNN async interface later. Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- libavfilter/vf_dnn_processing.c | 49 +++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/libavfilter/

Re: [FFmpeg-devel] [PATCH 1/2] ffmpeg: add option stats_period

2020-12-21 Thread Gyan Doshi
On 22-12-2020 04:28 am, Michael Niedermayer wrote: On Mon, Dec 21, 2020 at 02:51:20PM +0530, Gyan Doshi wrote: At present, progress stats are updated at a hardcoded interval of half a second. For long processes, this can lead to bloated logs and progress reports. Users can now set a custom pe

Re: [FFmpeg-devel] [PATCH] dnn: add NV12 pixel format support

2020-12-21 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Ting Fu > Sent: 2020年12月18日 16:08 > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH] dnn: add NV12 pixel format support > > Signed-off-by: Ting Fu > --- > libavfilter/dnn/dnn_io_proc.c | 2 ++ > libavfilter/vf_dnn_

Re: [FFmpeg-devel] [PATCH] avformat: add mpegtsraw muxer

2020-12-21 Thread Aman Gupta
On Mon, Dec 21, 2020 at 4:58 PM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: > Aman Karmani: > > From: Aman Karmani > > > > Allows easier writing of a AV_CODEC_ID_MPEG2TS stream out to disk. > > > > Signed-off-by: Aman Karmani > > --- > > libavformat/Makefile | 1 + > > libavf

[FFmpeg-devel] [PATCH 1/3] avformat/rtsp: add support for satip://

2020-12-21 Thread Aman Karmani
From: Aman Karmani The SAT>IP protocol[1] is similar to RTSP. However SAT>IP servers are assumed to speak only MP2T, so DESCRIBE is not used in the same way. When no streams are active, DESCRIBE will return 404 according to the spec (see section 3.5.7). When streams are active, DESCRIBE will retu

Re: [FFmpeg-devel] [PATCH] avformat: add mpegtsraw muxer

2020-12-21 Thread Andreas Rheinhardt
Aman Karmani: > From: Aman Karmani > > Allows easier writing of a AV_CODEC_ID_MPEG2TS stream out to disk. > > Signed-off-by: Aman Karmani > --- > libavformat/Makefile | 1 + > libavformat/allformats.c | 1 + > libavformat/rawenc.c | 14 ++ > 3 files changed, 16 insertions

[FFmpeg-devel] [PATCH 2/3] avformat/rtpdec_mpegts: add ff_mpegtsraw_dynamic_handler

2020-12-21 Thread Aman Karmani
From: Aman Karmani Passthrough handler which can be used to receive MP2T stream over RTP, and repackage it into a AV_CODEC_ID_MPEG2TS data stream. Signed-off-by: Aman Karmani --- libavformat/rtpdec_formats.h | 1 + libavformat/rtpdec_mpegts.c | 55 2 file

[FFmpeg-devel] [PATCH 3/3] avformat/rtsp: add satip_raw flag to receive raw mpegts stream

2020-12-21 Thread Aman Karmani
From: Aman Karmani This can be used to receive the raw mpegts stream from a SAT>IP server, by letting avformat handle the RTSP/RTP/UDP negotiation and setup, but then simply passing the MP2T stream through instead of demuxing it further. For example, this command would demux/remux the mpegts s

Re: [FFmpeg-devel] [PATCH] libswscale/swscale.c: Clarify what exactly 'data is not aligned' to

2020-12-21 Thread Michael Niedermayer
On Sat, Dec 19, 2020 at 07:50:39PM +0100, Franziska Thul wrote: > libswscale/swscale.c emits a Warning that 'data is not aligned', but doesn't > explain > why, leaving users without any clue on how to address this issue. > This patch simply adds that data is not aligned 'to 16 pixel boundaries'. >

Re: [FFmpeg-devel] [PATCH] libswscale: avoid UB nullptr-with-offset.

2020-12-21 Thread Michael Niedermayer
On Mon, Dec 21, 2020 at 01:52:08PM +, jleconte wrote: > --- > libswscale/slice.c| 12 +--- > libswscale/swscale_unscaled.c | 5 +++-- > 2 files changed, 8 insertions(+), 9 deletions(-) > > diff --git a/libswscale/slice.c b/libswscale/slice.c > index 7849b70f4d..b1cfc0e506

[FFmpeg-devel] [PATCH] avformat: add mpegtsraw muxer

2020-12-21 Thread Aman Karmani
From: Aman Karmani Allows easier writing of a AV_CODEC_ID_MPEG2TS stream out to disk. Signed-off-by: Aman Karmani --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 14 ++ 3 files changed, 16 insertions(+) diff --git a/libavformat/Make

Re: [FFmpeg-devel] [PATCH 1/2] ffmpeg: add option stats_period

2020-12-21 Thread Michael Niedermayer
On Mon, Dec 21, 2020 at 02:51:20PM +0530, Gyan Doshi wrote: > At present, progress stats are updated at a hardcoded interval of > half a second. For long processes, this can lead to bloated > logs and progress reports. > > Users can now set a custom period using option -stats_period > Default is k

Re: [FFmpeg-devel] [PATCH 4/6] avcodec: add cbs for h266

2020-12-21 Thread Mark Thompson
On 21/12/2020 06:07, Nuo Mi wrote: --- libavcodec/Makefile |1 + libavcodec/cbs.c |6 + libavcodec/cbs_h2645.c| 337 ++ libavcodec/cbs_h266.h | 711 libavcodec/cbs_h266_syntax_template.c | 1493

Re: [FFmpeg-devel] [PATCH 14/39] avcodec/h261dec: Don't use too big max_depth in get_vlc2()

2020-12-21 Thread Michael Niedermayer
On Mon, Dec 21, 2020 at 12:57:17PM +0100, Andreas Rheinhardt wrote: > Michael Niedermayer: > > On Thu, Dec 10, 2020 at 12:16:32PM +0100, Andreas Rheinhardt wrote: > >> Signed-off-by: Andreas Rheinhardt > >> --- > >> libavcodec/h261dec.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [FFmpeg-devel] [PATCH v3] avcodec/libvpxenc: add a way to set VP9E_SET_SVC_REF_FRAME_CONFIG

2020-12-21 Thread Wonkap Jang
On Mon, Dec 21, 2020 at 1:40 PM James Zern wrote: > On Thu, Dec 17, 2020 at 2:43 PM Wonkap Jang wrote: > > > > > > > > On Thu, Dec 17, 2020 at 10:48 AM James Zern wrote: > >> > >> On Tue, Dec 15, 2020 at 9:24 AM Wonkap Jang wrote: > >> > > >> > Hi James > >> > > >> > On Tue, Dec 15, 2020 at 9:

Re: [FFmpeg-devel] [PATCH v3] avcodec/libvpxenc: add a way to set VP9E_SET_SVC_REF_FRAME_CONFIG

2020-12-21 Thread James Zern
On Thu, Dec 17, 2020 at 2:43 PM Wonkap Jang wrote: > > > > On Thu, Dec 17, 2020 at 10:48 AM James Zern wrote: >> >> On Tue, Dec 15, 2020 at 9:24 AM Wonkap Jang wrote: >> > >> > Hi James >> > >> > On Tue, Dec 15, 2020 at 9:18 AM Wonkap Jang wrote: >> >> >> >> In order to fine-control referencing

Re: [FFmpeg-devel] [PATCH 4/8] avcodec/ffv1dec: Fix off by 1 error with quant tables

2020-12-21 Thread Michael Niedermayer
On Mon, Dec 21, 2020 at 08:44:33PM +0100, Paul B Mahol wrote: > Trivially ok will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Awnsering whenever a program halts or runs forever is On a turing machine, in general impossible (turings halting problem

Re: [FFmpeg-devel] [PATCH 2/8] avformat/mpegts: simplify nb_packets code

2020-12-21 Thread Michael Niedermayer
On Sun, Dec 20, 2020 at 11:30:05PM +0100, Marton Balint wrote: > > > On Sat, 19 Dec 2020, Michael Niedermayer wrote: > > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/mpegts.c | 7 ++- > > 1 file changed, 2 insertions(+), 5 deletions(-) > > > > diff --git a/libavformat/mpegts

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/h266: add shared header for h266

2020-12-21 Thread James Almer
On 12/21/2020 5:42 PM, Mark Thompson wrote: On 21/12/2020 06:07, Nuo Mi wrote: ---   libavcodec/h266.h | 121 ++   1 file changed, 121 insertions(+)   create mode 100644 libavcodec/h266.h diff --git a/libavcodec/h266.h b/libavcodec/h266.h new file mode

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/h266: add shared header for h266

2020-12-21 Thread Mark Thompson
On 21/12/2020 06:07, Nuo Mi wrote: --- libavcodec/h266.h | 121 ++ 1 file changed, 121 insertions(+) create mode 100644 libavcodec/h266.h diff --git a/libavcodec/h266.h b/libavcodec/h266.h new file mode 100644 index 00..d5793b76fc --- /dev

Re: [FFmpeg-devel] [PATCH 4/8] avcodec/ffv1dec: Fix off by 1 error with quant tables

2020-12-21 Thread Paul B Mahol
Trivially ok On Sat, Dec 19, 2020 at 1:42 AM Michael Niedermayer wrote: > Fixes: assertion failure > Fixes: > 28447/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-5369575948550144 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ff

Re: [FFmpeg-devel] [PATCH 6/6] avcodec: add vvdec H.266/VVC decoder

2020-12-21 Thread chen
A little update The sequence passed only 163 because they are not update their CMakeLists.txt. I had been updated CMakeLists.txt and these patches in my github tree as well, I can found 81.93% (195/238) passed, Moreover, there have two of Field video clips, the decoder works, but output as sep

Re: [FFmpeg-devel] [PATCH 5/6] avcodec: add h266 parser

2020-12-21 Thread James Almer
On 12/21/2020 3:07 AM, Nuo Mi wrote: --- configure| 3 + libavcodec/Makefile | 1 + libavcodec/h2645_parse.c | 73 +- libavcodec/h266_parser.c | 284 +++ libavcodec/parsers.c | 1 + 5 files changed, 360 insertions(

Re: [FFmpeg-devel] [PATCH 7/8] avformat/aviobuf: Check for overflow in ffio_read_varlen()

2020-12-21 Thread Michael Niedermayer
On Mon, Dec 21, 2020 at 12:30:48PM +0100, Andreas Rheinhardt wrote: > Michael Niedermayer: > > No testcase > > > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/aviobuf.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c

Re: [FFmpeg-devel] [PATCH 6/6] avcodec: add vvdec H.266/VVC decoder

2020-12-21 Thread Paul B Mahol
On Mon, Dec 21, 2020 at 7:08 AM Nuo Mi wrote: > you can download test clips here: > > https://www.itu.int/wftp3/av-arch/jvet-site/bitstream_exchange/VVC/under_test/VTM-11.0/ > > 68.48% (163/238) clips are md5 matched with VTM 11: > > passed: > 10b400_A_Bytedance_2.bit > 10b400_B_Bytedance_2.bit >

Re: [FFmpeg-devel] [PATCH 5/6] avcodec: add h266 parser

2020-12-21 Thread James Almer
On 12/21/2020 3:07 AM, Nuo Mi wrote: --- configure| 3 + libavcodec/Makefile | 1 + libavcodec/h2645_parse.c | 73 +- libavcodec/h266_parser.c | 284 +++ libavcodec/parsers.c | 1 + 5 files changed, 360 insertions(

Re: [FFmpeg-devel] [PATCH 2/6] avcodec: add h266 codec id and profiles

2020-12-21 Thread James Almer
On 12/21/2020 3:07 AM, Nuo Mi wrote: --- libavcodec/avcodec.h| 2 ++ libavcodec/codec_desc.c | 8 libavcodec/codec_id.h | 2 ++ libavcodec/profiles.c | 5 + libavcodec/profiles.h | 1 + 5 files changed, 18 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec

[FFmpeg-devel] [PATCH] libswscale: avoid UB nullptr-with-offset.

2020-12-21 Thread jleconte
--- libswscale/slice.c| 12 +--- libswscale/swscale_unscaled.c | 5 +++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/libswscale/slice.c b/libswscale/slice.c index 7849b70f4d..b1cfc0e506 100644 --- a/libswscale/slice.c +++ b/libswscale/slice.c @@ -158,14 +15

Re: [FFmpeg-devel] [PATCH 14/39] avcodec/h261dec: Don't use too big max_depth in get_vlc2()

2020-12-21 Thread Andreas Rheinhardt
Michael Niedermayer: > On Thu, Dec 10, 2020 at 12:16:32PM +0100, Andreas Rheinhardt wrote: >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/h261dec.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > ok assuming its not better to make H261_CBP_VLC_BITS smaller > > thx > > [

Re: [FFmpeg-devel] [PATCH 7/8] avformat/aviobuf: Check for overflow in ffio_read_varlen()

2020-12-21 Thread Andreas Rheinhardt
Michael Niedermayer: > No testcase > > Signed-off-by: Michael Niedermayer > --- > libavformat/aviobuf.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c > index 78cc60b2ae..7730547106 100644 > --- a/libavformat/aviobuf.c > +++ b/libavforma

[FFmpeg-devel] [PATCH 1/2] ffmpeg: add option stats_period

2020-12-21 Thread Gyan Doshi
At present, progress stats are updated at a hardcoded interval of half a second. For long processes, this can lead to bloated logs and progress reports. Users can now set a custom period using option -stats_period Default is kept at 0.5 seconds. --- doc/ffmpeg.texi | 7 ++- fftools/ffmp

[FFmpeg-devel] [PATCH 2/2] ffmpeg: don't delay printing initial stats

2020-12-21 Thread Gyan Doshi
The first stats is printed after the initial stats_period has elapsed. With a large period, it may appear that ffmpeg has frozen at startup. The initial stats is now printed after the first transcode_step. --- fftools/ffmpeg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --g