[FFmpeg-devel] [PATCH v2 05/11] avcodec/cbs_h265: fix undef SEI_TYPE_X

2021-01-08 Thread Nuo Mi
--- libavcodec/cbs_h265_syntax_template.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/cbs_h265_syntax_template.c b/libavcodec/cbs_h265_syntax_template.c index 48fae82d04..c0e94683a2 100644 --- a/libavcodec/cbs_h265_syntax_template.c +++

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

2021-01-08 Thread Nuo Mi
On Tue, Dec 22, 2020 at 6:53 AM Mark Thompson wrote: > 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

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

2021-01-08 Thread Nuo Mi
According to James and Lynne, merge this patch needs further discussion. I send out it just to make sure the metadata bsf workable. A basic bsf command like this need a workable decoder: "ffmpeg -i in.bin -c:v copy -bsf vvc_metadata out.266" On Sat, Jan 9, 2021 at 3:35 PM Nuo Mi wrote: > you

[FFmpeg-devel] [PATCH v2 00/11] add vvc raw demuxer, muxer, parser, metadata bsf, vvdec decoder

2021-01-08 Thread Nuo Mi
Nuo Mi (11): avcodec/vvc: add shared header for vvc avcodec: add vvc codec id and profiles avformat: add vvc raw demux avcodec: add SEI enum for vvc avcodec/cbs_h265: fix undef SEI_TYPE_X avcodec: add cbs for h266/vvc avcodec/h2645_parse: add nal header parser for h266/vvc

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

2021-01-08 Thread Nuo Mi
On Tue, Dec 22, 2020 at 4:49 AM 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

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

2021-01-08 Thread Nuo Mi
On Sat, Jan 9, 2021 at 2:56 PM Nuo Mi wrote: > > > On Mon, Dec 21, 2020 at 11:15 PM James Almer wrote: > >> On 12/21/2020 3:07 AM, Nuo Mi wrote: >> > --- >> > configure| 3 + >> > libavcodec/Makefile | 1 + >> > libavcodec/h2645_parse.c | 73 +- >> >

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

2021-01-08 Thread Nuo Mi
you can download test clips here: https://www.itu.int/wftp3/av-arch/jvet-site/bitstream_exchange/VVC/under_test/VTM-11.0/ 76.71% (191/249) clips are md5 matched with VTM 11: passed: 10b400_A_Bytedance_2.bit 10b400_B_Bytedance_2.bit 8b400_A_Bytedance_2.bit 8b400_B_Bytedance_2.bit

[FFmpeg-devel] [PATCH v2 10/11] avcodec: add vvc metadata bsf

2021-01-08 Thread Nuo Mi
use following command to test: ffmpeg -i in.bin -c:v copy -bsf vvc_metadata -f vvc out.bin 79.11%(197/249) can bit match with original clips 6.83%(17/249) are not bit match, the original clips has redundant emulation prevent bytes other all failed since vvdec failed to decode the first frame

[FFmpeg-devel] [PATCH v2 09/11] avformat: add h266/vvc muxer

2021-01-08 Thread Nuo Mi
--- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 25 + 3 files changed, 27 insertions(+) diff --git a/libavformat/Makefile b/libavformat/Makefile index 4a5406da38..0253aa7d5a 100644 --- a/libavformat/Makefile +++

[FFmpeg-devel] [PATCH v2 08/11] avcodec: add vvc parser

2021-01-08 Thread Nuo Mi
--- configure | 1 + libavcodec/Makefile | 1 + libavcodec/parsers.c| 1 + libavcodec/vvc_parser.c | 289 4 files changed, 292 insertions(+) create mode 100644 libavcodec/vvc_parser.c diff --git a/configure b/configure index

[FFmpeg-devel] [PATCH v2 07/11] avcodec/h2645_parse: add nal header parser for h266/vvc

2021-01-08 Thread Nuo Mi
--- libavcodec/h2645_parse.c | 74 ++-- 1 file changed, 71 insertions(+), 3 deletions(-) diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index a36ef4f5a0..35f9d035a9 100644 --- a/libavcodec/h2645_parse.c +++ b/libavcodec/h2645_parse.c @@ -1,5

[FFmpeg-devel] [PATCH v2 03/11] avformat: add vvc raw demux

2021-01-08 Thread Nuo Mi
--- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/vvcdec.c | 61 3 files changed, 63 insertions(+) create mode 100644 libavformat/vvcdec.c diff --git a/libavformat/Makefile b/libavformat/Makefile index

[FFmpeg-devel] [PATCH v2 02/11] avcodec: add vvc codec id and profiles

2021-01-08 Thread Nuo Mi
--- 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/avcodec.h index 1d3099d50a..13a3191b53

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

2021-01-08 Thread Nuo Mi
On Mon, Dec 21, 2020 at 11:15 PM James Almer wrote: > 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

[FFmpeg-devel] [PATCH v4 3/3] avformat/mxfenc: prefer to use the configured metadta

2021-01-08 Thread lance . lmwang
From: Limin Wang The metadata company_name, product_name, product_version from input file will be deleted to avoid overwriting information Please to test with below command: ./ffmpeg -i ../fate-suite/mxf/Sony-1.mxf -c:v copy -c:a copy out.mxf and ./ffmpeg -i ../fate-suite/mxf/Sony-1.mxf

[FFmpeg-devel] [PATCH v4 2/3] avformat/udp: add memory alloc checks

2021-01-08 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/udp.c b/libavformat/udp.c index 088e30c..a7fbb94 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -903,6 +903,10 @@ static int udp_open(URLContext *h,

[FFmpeg-devel] [PATCH v4 1/3] avformat/udp: return the error code instead of generic EIO

2021-01-08 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 61 --- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 13c346a..088e30c 100644 --- a/libavformat/udp.c +++

Re: [FFmpeg-devel] [PATCH v3 3/3] avformat/mxfenc: prefer to use the existing metadata

2021-01-08 Thread lance . lmwang
On Sat, Jan 09, 2021 at 01:09:22AM +0100, Marton Balint wrote: > > > On Fri, 8 Jan 2021, Tobias Rapp wrote: > > > On 08.01.2021 11:01, lance.lmw...@gmail.com wrote: > > > On Fri, Jan 08, 2021 at 09:09:34AM +0100, Tobias Rapp wrote: > > > > On 08.01.2021 07:32, lance.lmw...@gmail.com wrote: > >

Re: [FFmpeg-devel] [PATCH v3 1/3] avformat/udp: return the error code instead of generic EIO

2021-01-08 Thread lance . lmwang
On Sat, Jan 09, 2021 at 12:23:42AM +0100, Marton Balint wrote: > > > On Fri, 8 Jan 2021, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavformat/udp.c | 42 ++ > > 1 file changed, 22 insertions(+),

Re: [FFmpeg-devel] [PATCH v3 3/3] avformat/mxfenc: prefer to use the existing metadata

2021-01-08 Thread Marton Balint
On Fri, 8 Jan 2021, Tobias Rapp wrote: On 08.01.2021 11:01, lance.lmw...@gmail.com wrote: On Fri, Jan 08, 2021 at 09:09:34AM +0100, Tobias Rapp wrote: On 08.01.2021 07:32, lance.lmw...@gmail.com wrote: From: Limin Wang Please check metadata with below command: ./ffmpeg -i

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

2021-01-08 Thread Wonkap Jang
On Fri, Jan 8, 2021 at 3:33 PM Wonkap Jang wrote: > In order to fine-control referencing schemes in VP9 encoding, there > is a need to use VP9E_SET_SVC_REF_FRAME_CONFIG method. This commit > provides a way to use the API through frame metadata. > --- > doc/encoders.texi | 32

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

2021-01-08 Thread Wonkap Jang
In order to fine-control referencing schemes in VP9 encoding, there is a need to use VP9E_SET_SVC_REF_FRAME_CONFIG method. This commit provides a way to use the API through frame metadata. --- doc/encoders.texi | 32 libavcodec/libvpxenc.c | 84

Re: [FFmpeg-devel] [PATCH v2] In order to fine-control referencing schemes in VP9 encoding, there is a need to use VP9E_SET_SVC_REF_FRAME_CONFIG method. This commit provides a way to use the API throu

2021-01-08 Thread Wonkap Jang
On Mon, Dec 14, 2020 at 12:46 PM James Zern wrote: > Hi, > > > On Mon, Dec 14, 2020 at 11:54 AM Wonkap Jang wrote: > > > > > > > > On Mon, Dec 7, 2020 at 11:57 PM Wonkap Jang wrote: > >> > >> --- > >> doc/encoders.texi | 32 + > >> libavcodec/libvpxenc.c | 79

Re: [FFmpeg-devel] [PATCH v3 1/3] avformat/udp: return the error code instead of generic EIO

2021-01-08 Thread Marton Balint
On Fri, 8 Jan 2021, lance.lmw...@gmail.com wrote: From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 42 ++ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 13c346a..28987e0

Re: [FFmpeg-devel] [PATCH 1/7] avcodec/[e]ac3enc: Make encoders init-threadsafe, fix race

2021-01-08 Thread Andreas Rheinhardt
Andreas Rheinhardt: > ff_eac3_exponent_init() set values twice when initializing a static > table; ergo the initialization code must not run concurrently with > a running EAC-3 encoder. Yet this code is executed every time an EAC-3 > encoder is initialized. So use ff_thread_once() for this and

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

2021-01-08 Thread James Zern
On Thu, Jan 7, 2021 at 11:56 PM Wonkap Jang wrote: > > In order to fine-control referencing schemes in VP9 encoding, there > is a need to use VP9E_SET_SVC_REF_FRAME_CONFIG method. This commit > provides a way to use the API through frame metadata. > --- > doc/encoders.texi | 32

[FFmpeg-devel] [PATCH] libavcodec/hevcdsp: port SIMD idct functions from 32-bit.

2021-01-08 Thread Reimar . Doeffinger
From: Reimar Döffinger Makes SIMD-optimized 8x8 and 16x16 idcts for 8 and 10 bit depth available on aarch64. For a UHD HDR (10 bit) sample video these were consuming the most time and this optimization reduced overall decode time from 19.4s to 16.4s, approximately 15% speedup. Test sample was

Re: [FFmpeg-devel] [PATCH 1/2] avformat/utils: Change compute_chapters_end() from O(n²) to O(n log n)

2021-01-08 Thread Michael Niedermayer
On Fri, Dec 04, 2020 at 11:21:22AM +0100, Anton Khirnov wrote: > Quoting Michael Niedermayer (2020-11-22 16:37:32) > > Fixes: Timeout (49sec -> 9sec) > > Fixes: > > 27427/clusterfuzz-testcase-minimized-ffmpeg_dem_FFMETADATA_fuzzer-5140589838073856 > > > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/rasc: Check frame before clearing

2021-01-08 Thread Michael Niedermayer
On Fri, Dec 04, 2020 at 01:07:05AM +0100, Michael Niedermayer wrote: > Fixes: null pointer dereference > Fixes: > 27737/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5769028685266944 > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH] avcodec/dolby_e: set constant frame_size

2021-01-08 Thread Nicolas Gaullier
>De : ffmpeg-devel De la part de Lynne >Envoyé : mardi 5 janvier 2021 16:26 >À : FFmpeg development discussions and patches >Objet : Re: [FFmpeg-devel] [PATCH] avcodec/dolby_e: set constant frame_size > >Jan 5, 2021, 10:43 by nicolas.gaullier@cji.paris: > > De : Nicolas Gaullier Envoyé :

Re: [FFmpeg-devel] [PATCH v3 3/3] avformat/mxfenc: prefer to use the existing metadata

2021-01-08 Thread Tobias Rapp
On 08.01.2021 11:01, lance.lmw...@gmail.com wrote: On Fri, Jan 08, 2021 at 09:09:34AM +0100, Tobias Rapp wrote: On 08.01.2021 07:32, lance.lmw...@gmail.com wrote: From: Limin Wang Please check metadata with below command: ./ffmpeg -i ../fate-suite/mxf/Sony-1.mxf -c:v copy -c:a copy

Re: [FFmpeg-devel] [PATCH v3 3/3] avformat/mxfenc: prefer to use the existing metadata

2021-01-08 Thread lance . lmwang
On Fri, Jan 08, 2021 at 09:09:34AM +0100, Tobias Rapp wrote: > On 08.01.2021 07:32, lance.lmw...@gmail.com wrote: > > From: Limin Wang > > > > Please check metadata with below command: > > ./ffmpeg -i ../fate-suite/mxf/Sony-1.mxf -c:v copy -c:a copy out.mxf > > ./ffmpeg -i out.mxf > > > >

[FFmpeg-devel] [PATCH] libavfilter/dnn: add batch mode for async execution

2021-01-08 Thread Guo, Yejun
the default number of batch_size is 1 Signed-off-by: Xie, Lin Signed-off-by: Wu Zhiwen Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_openvino.c | 157 + libavfilter/dnn/dnn_backend_openvino.h | 1 + libavfilter/dnn/dnn_interface.c| 1 +

Re: [FFmpeg-devel] [PATCH v3 3/3] avformat/mxfenc: prefer to use the existing metadata

2021-01-08 Thread Tobias Rapp
On 08.01.2021 07:32, lance.lmw...@gmail.com wrote: From: Limin Wang Please check metadata with below command: ./ffmpeg -i ../fate-suite/mxf/Sony-1.mxf -c:v copy -c:a copy out.mxf ./ffmpeg -i out.mxf company_name: FFmpeg product_name: OP1a Muxer product_version :