Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: add -autoscale to disable/enable the default scale

2020-06-06 Thread Fu, Linjie
> From: ffmpeg-devel On Behalf Of > Eoff, Ullysses A > Sent: Saturday, June 6, 2020 00:16 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: add -autoscale > to disable/enable the default scale > > > -Original

Re: [FFmpeg-devel] [PATCH v2] avfilter/qsvvpp: Work around a bug in MSDK where VPP processing hangs under certain conditions

2020-06-06 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Max Dmitrichenko > Sent: Saturday, June 6, 2020 2:54 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v2] avfilter/qsvvpp: Work around a bug > in MSDK where VPP processing

Re: [FFmpeg-devel] [PATCH v2] avfilter/qsvvpp: Work around a bug in MSDK where VPP processing hangs under certain conditions

2020-06-06 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Max Dmitrichenko > Sent: Saturday, June 6, 2020 2:54 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH v2] avfilter/qsvvpp: Work around a bug > in MSDK where VPP processing

Re: [FFmpeg-devel] [PATCH] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-06-06 Thread James Almer
On 6/6/2020 8:06 PM, Michael Niedermayer wrote: > On Sat, Jun 06, 2020 at 11:42:17AM +0530, gautamr...@gmail.com wrote: >> From: Gautam Ramakrishnan >> >> I have attempted to write a JPEG2000 Parser. Have tested >> by generating a file containing 14 frames, as mentioned >> by Micheal. Have also

Re: [FFmpeg-devel] [PATCH] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-06-06 Thread Michael Niedermayer
On Sat, Jun 06, 2020 at 11:42:17AM +0530, gautamr...@gmail.com wrote: > From: Gautam Ramakrishnan > > I have attempted to write a JPEG2000 Parser. Have tested > by generating a file containing 14 frames, as mentioned > by Micheal. Have also tried testing with various packet > sizes by setting

Re: [FFmpeg-devel] [PATCH 1/3] avformat/oggdec: Initialize return value from ogg_read_page() and check it everywhere

2020-06-06 Thread Lynne
Jun 6, 2020, 19:08 by mich...@niedermayer.cc: > Fixes regression since 9ad47762c17d2c6d06595aa17b88112baa91b72c > Fixes: out of array access > Fixes: > 22172/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5658535590625280 > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH 2/3] avformat/oggdec: Do not hardcode arbitrary and sometimes unavailable size

2020-06-06 Thread Lynne
Jun 6, 2020, 19:08 by mich...@niedermayer.cc: > Fixes: regression since e983197cbc93420b67aa7e811be47d7278c2c8a2 > Fixes: out of array read > Fixes: > 22185/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5662069073641472 > > Found-by: continuous fuzzing process >

[FFmpeg-devel] [PATCH] Add picture attachment support to OGG Muxer

2020-06-06 Thread Lewis Fox
Signed-off-by: Lewis Fox --- This is an implementation for #4448, adding support for embedding attached cover art to OGG files. I had a need for the feature for a setup I was using, and had written a patch for it about half a year ago. I had forgotten to submit it back then, though. I

Re: [FFmpeg-devel] [PATCH 2/3] avformat/oggdec: Do not hardcode arbitrary and sometimes unavailable size

2020-06-06 Thread Michael Niedermayer
On Sat, Jun 06, 2020 at 08:39:15PM +0200, Lynne wrote: > Jun 6, 2020, 19:08 by mich...@niedermayer.cc: > > > Fixes: regression since e983197cbc93420b67aa7e811be47d7278c2c8a2 > > Fixes: out of array read > > Fixes: > > 22185/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5662069073641472 >

[FFmpeg-devel] [PATCH] libavutil/timestamp.h: Fix loss of precision in silencedetect timestamps for long files

2020-06-06 Thread Allan Cady
[Repeat submission. I really don't know my way around git tools... this time I'm using "git imap-send" in hopes this will better please the ffmpeg submission gods. Thank you for your patience.] When the silencedetect filter is run against long files, the output timestamps gradually lose

Re: [FFmpeg-devel] [PATCH 1/3] avformat/oggdec: Initialize return value from ogg_read_page() and check it everywhere

2020-06-06 Thread Michael Niedermayer
On Sat, Jun 06, 2020 at 09:01:44PM +0200, Lynne wrote: > Jun 6, 2020, 19:08 by mich...@niedermayer.cc: > > > Fixes regression since 9ad47762c17d2c6d06595aa17b88112baa91b72c > > Fixes: out of array access > > Fixes: > > 22172/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5658535590625280 >

Re: [FFmpeg-devel] [PATCH v4 2/2] libavcodec/libaomenc.c: Support lossless encoding

2020-06-06 Thread Kieran O Leary
Hi all - just wondering about the status of this. I was doing some tests with just -crf 0 with mixed results before I saw this thread. http://ffmpeg.org/pipermail/ffmpeg-user/2020-June/048885.html K ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs_h265_syntax_template: Check inter_ref_pic_set_prediction_flag

2020-06-06 Thread Michael Niedermayer
On Sat, Jun 06, 2020 at 03:10:56PM -0300, James Almer wrote: > On 6/6/2020 2:57 PM, Michael Niedermayer wrote: > > On Sat, Jun 06, 2020 at 01:12:04PM -0300, James Almer wrote: > >> On 6/6/2020 1:03 PM, Michael Niedermayer wrote: > >>> Fixes: out of array access > >>> Fixes: > >>>

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs_h265_syntax_template: Check inter_ref_pic_set_prediction_flag

2020-06-06 Thread Michael Niedermayer
On Sat, Jun 06, 2020 at 03:10:56PM -0300, James Almer wrote: > On 6/6/2020 2:57 PM, Michael Niedermayer wrote: > > On Sat, Jun 06, 2020 at 01:12:04PM -0300, James Almer wrote: > >> On 6/6/2020 1:03 PM, Michael Niedermayer wrote: > >>> Fixes: out of array access > >>> Fixes: > >>>

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs_h265_syntax_template: Check inter_ref_pic_set_prediction_flag

2020-06-06 Thread James Almer
On 6/6/2020 1:12 PM, James Almer wrote: > On 6/6/2020 1:03 PM, Michael Niedermayer wrote: >> Fixes: out of array access >> Fixes: >> 23034/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_METADATA_fuzzer-5074645169733632.fuzz >> >> Found-by: continuous fuzzing process >>

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs_h265_syntax_template: Check inter_ref_pic_set_prediction_flag

2020-06-06 Thread James Almer
On 6/6/2020 2:57 PM, Michael Niedermayer wrote: > On Sat, Jun 06, 2020 at 01:12:04PM -0300, James Almer wrote: >> On 6/6/2020 1:03 PM, Michael Niedermayer wrote: >>> Fixes: out of array access >>> Fixes: >>>

[FFmpeg-devel] [PATCH 1/3] avformat/oggdec: Initialize return value from ogg_read_page() and check it everywhere

2020-06-06 Thread Michael Niedermayer
Fixes regression since 9ad47762c17d2c6d06595aa17b88112baa91b72c Fixes: out of array access Fixes: 22172/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5658535590625280 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

[FFmpeg-devel] [PATCH 3/3] avcodec/mpeg12dec: remove outdated comments

2020-06-06 Thread Michael Niedermayer
Found-by: Kieran Signed-off-by: Michael Niedermayer --- libavcodec/mpeg12dec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 40d054def5..ff81364fd1 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -221,7 +221,6 @@

[FFmpeg-devel] [PATCH 2/3] avformat/oggdec: Do not hardcode arbitrary and sometimes unavailable size

2020-06-06 Thread Michael Niedermayer
Fixes: regression since e983197cbc93420b67aa7e811be47d7278c2c8a2 Fixes: out of array read Fixes: 22185/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5662069073641472 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael

Re: [FFmpeg-devel] [PATCH] oggdec: add support for proper demuxing of chained Opus files and streams

2020-06-06 Thread Michael Niedermayer
On Sat, Jun 06, 2020 at 07:23:25PM +0200, Lynne wrote: > Jun 6, 2020, 17:21 by mich...@niedermayer.cc: > > > On Mon, Jun 01, 2020 at 06:19:52PM +0200, Michael Niedermayer wrote: > > > >> On Tue, Apr 28, 2020 at 08:20:37PM +0200, Lynne wrote: > >> > Part of this patch is based on Paul B Mahol's

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs_h265_syntax_template: Check inter_ref_pic_set_prediction_flag

2020-06-06 Thread Michael Niedermayer
On Sat, Jun 06, 2020 at 01:12:04PM -0300, James Almer wrote: > On 6/6/2020 1:03 PM, Michael Niedermayer wrote: > > Fixes: out of array access > > Fixes: > > 23034/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_METADATA_fuzzer-5074645169733632.fuzz > > > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH] avcodec: remove FLAG2_FAST mode

2020-06-06 Thread Michael Niedermayer
On Thu, Jun 04, 2020 at 09:49:22AM +0100, Kieran Kunhya wrote: > On Thu, 4 Jun 2020 at 00:05, Michael Niedermayer > wrote: > > > On Wed, Jun 03, 2020 at 06:23:27PM +0100, Kieran Kunhya wrote: > > > $subj > > > > > fftools/ffplay.c |5 > > > libavcodec/avcodec.h |4 > > >

Re: [FFmpeg-devel] [PATCH] oggdec: add support for proper demuxing of chained Opus files and streams

2020-06-06 Thread Lynne
Jun 6, 2020, 17:21 by mich...@niedermayer.cc: > On Mon, Jun 01, 2020 at 06:19:52PM +0200, Michael Niedermayer wrote: > >> On Tue, Apr 28, 2020 at 08:20:37PM +0200, Lynne wrote: >> > Part of this patch is based on Paul B Mahol's patch from last year. >> > >> > This also allows for single-stream

Re: [FFmpeg-devel] [PATCH] oggdec: add support for proper demuxing of chained Opus files and streams

2020-06-06 Thread Michael Niedermayer
On Mon, Jun 01, 2020 at 06:19:52PM +0200, Michael Niedermayer wrote: > On Tue, Apr 28, 2020 at 08:20:37PM +0200, Lynne wrote: > > Part of this patch is based on Paul B Mahol's patch from last year. > > > > This also allows for single-stream parameter/codec changes. > > > > Must be applied on

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs_h265_syntax_template: Check inter_ref_pic_set_prediction_flag

2020-06-06 Thread James Almer
On 6/6/2020 1:03 PM, Michael Niedermayer wrote: > Fixes: out of array access > Fixes: > 23034/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_METADATA_fuzzer-5074645169733632.fuzz > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg >

[FFmpeg-devel] [PATCH 3/3] avcodec/pnm: Check scale

2020-06-06 Thread Michael Niedermayer
Fixes: division by zero Fixes: 22974/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PFM_fuzzer-627002709456 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/pnm.c | 2 +- 1 file

[FFmpeg-devel] [PATCH 2/3] avcodec/snowdec: Avoid integer overflow with huge qlog

2020-06-06 Thread Michael Niedermayer
Fixes: integer overflow Fixes: 22285/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-5682428762128384 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/snowdec.c | 4 ++-- 1 file

[FFmpeg-devel] [PATCH 1/3] avcodec/cbs_h265_syntax_template: Check inter_ref_pic_set_prediction_flag

2020-06-06 Thread Michael Niedermayer
Fixes: out of array access Fixes: 23034/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_METADATA_fuzzer-5074645169733632.fuzz Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer ---

Re: [FFmpeg-devel] [PATCH v2] avfilter/qsvvpp: Work around a bug in MSDK where VPP processing hangs under certain conditions

2020-06-06 Thread Max Dmitrichenko
On Sat, Jun 6, 2020 at 7:29 AM Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Max Dmitrichenko > > Sent: Friday, June 5, 2020 3:09 PM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] [PATCH v2]

[FFmpeg-devel] [PATCH 5/6] dnn_backend_native_layer_mathunary: add tan support

2020-06-06 Thread Ting Fu
It can be tested with the model generated with below python scripy import tensorflow as tf import numpy as np import imageio in_img = imageio.imread('input.jpeg') in_img = in_img.astype(np.float32)/255.0 in_data = in_img[np.newaxis, :] x = tf.placeholder(tf.float32, shape=[1, None, None, 3],

[FFmpeg-devel] [PATCH 4/6] dnn-layer-mathunary-test: add unit test for cos

2020-06-06 Thread Ting Fu
Signed-off-by: Ting Fu --- tests/dnn/dnn-layer-mathunary-test.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/dnn/dnn-layer-mathunary-test.c b/tests/dnn/dnn-layer-mathunary-test.c index ed42198195..23e1766ad0 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++

[FFmpeg-devel] [PATCH 6/6] dnn-layer-mathunary-test: add unit test for tan

2020-06-06 Thread Ting Fu
Signed-off-by: Ting Fu --- tests/dnn/dnn-layer-mathunary-test.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/dnn/dnn-layer-mathunary-test.c b/tests/dnn/dnn-layer-mathunary-test.c index 23e1766ad0..9a7e07c98c 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++

[FFmpeg-devel] [PATCH 3/6] dnn_backend_native_layer_mathunary: add cos support

2020-06-06 Thread Ting Fu
It can be tested with the model generated with below python scripy import tensorflow as tf import numpy as np import imageio in_img = imageio.imread('input.jpeg') in_img = in_img.astype(np.float32)/255.0 in_data = in_img[np.newaxis, :] x = tf.placeholder(tf.float32, shape=[1, None, None, 3],

[FFmpeg-devel] [PATCH 2/6] dnn-layer-mathunary-test: add unit test for sin

2020-06-06 Thread Ting Fu
Signed-off-by: Ting Fu --- tests/dnn/dnn-layer-mathunary-test.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/dnn/dnn-layer-mathunary-test.c b/tests/dnn/dnn-layer-mathunary-test.c index f032ca0684..ed42198195 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++

[FFmpeg-devel] [PATCH 1/6] dnn_backend_native_layer_mathunary: add sin support

2020-06-06 Thread Ting Fu
It can be tested with the model file generated with below python scripy: import tensorflow as tf import numpy as np import imageio in_img = imageio.imread('input.jpeg') in_img = in_img.astype(np.float32)/255.0 in_data = in_img[np.newaxis, :] x = tf.placeholder(tf.float32, shape=[1, None, None,

Re: [FFmpeg-devel] [PATCH v3 1/4] ffbuild: Refine MIPS handling

2020-06-06 Thread Shiyou Yin
>-Original Message- >From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel-boun...@ffmpeg.org] >On Behalf Of >Jiaxun Yang >Sent: Saturday, June 6, 2020 3:34 PM >To: ffmpeg-devel@ffmpeg.org >Cc: yinshi...@loongson.cn; Jiaxun Yang >Subject: [FFmpeg-devel] [PATCH v3 1/4] ffbuild: Refine

[FFmpeg-devel] [PATCH v3 3/4] libavutil: Detect MMI and MSA flags for MIPS

2020-06-06 Thread Jiaxun Yang
Add MMI & MSA runtime detection for MIPS. Basically there are two code pathes. For systems that natively support CPUCFG instruction or kernel emulated that instruction, we'll sense this feature from HWCAP and report the flags according to values grab from CPUCFG. For systems that have no CPUCFG

[FFmpeg-devel] [PATCH v3 4/4] libavcodec: Enable runtime detection for MIPS MMI & MSA

2020-06-06 Thread Jiaxun Yang
Apply optimized functions according to cpuflags. MSA is always put after MMI as it's usually faster than MMI. Signed-off-by: Jiaxun Yang --- libavcodec/mips/blockdsp_init_mips.c| 22 +- libavcodec/mips/cabac.h | 2 +-

[FFmpeg-devel] [PATCH v3 1/4] ffbuild: Refine MIPS handling

2020-06-06 Thread Jiaxun Yang
To enable runtime detection for MIPS, we need to refine ffbuild part to support buildding these feature together. Firstly, we fixed configure, let it probe native ability of toolchain to decide wether a feature can to be enabled, also clearly marked the conflictions between loongson2 & loongson3

[FFmpeg-devel] [PATCH v3 0/4] MIPS MSA & MMI Runtime detection support

2020-06-06 Thread Jiaxun Yang
This series adds MIPS MSA & MMI runtime detection support Please review. Thanks! v2: - Add CPUCFG support. - Add "-mloongson-ext" to MMIFLAGS for Loongson-3 as well. (Loongson2F don't need this flag) v3: - Address reveiew suggestions from Shiyou Yin and Weixi Gu. Jiaxun Yang (4):

[FFmpeg-devel] [PATCH v3 2/4] libavutils: Add parse_r helper for MIPS

2020-06-06 Thread Jiaxun Yang
That helper grab from kernel code can allow us to inline newer instructions (not implemented by the assembler) in a elegant manner. Signed-off-by: Jiaxun Yang --- libavutil/mips/asmdefs.h | 42 1 file changed, 42 insertions(+) diff --git

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-06-06 Thread gautamramk
From: Gautam Ramakrishnan I have attempted to write a JPEG2000 Parser. Have tested by generating a file containing 14 frames, as mentioned by Micheal. Have also tried testing with various packet sizes by setting -frame_size option. Additionally, fixed a few formatting issues as pointed out by