[FFmpeg-devel] [PATCH 2/2] lavc/libkvazaar: fix incompatible pointer type.

2018-08-20 Thread Jun Zhao
fix the waring: libavcodec/libkvazaar.c:210:27: warning: passing argument 3 of ‘av_image_copy’ from incompatible pointer type [-Wincompatible-pointer-types] frame->data, frame->linesize, ^ In file included from libavcodec/libkvazaar.c:31:0:

Re: [FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-20 Thread Martin Vignali
Hello, New patch in attach Add an if case for float input, in order to define the shift value. I try to add some details in the commit msg. Pass fate test for me (Mac os 10.12, x86_64). Martin 0002-swscale-treat-float-input-data-as-uint-16bpc.patch Description: Binary data 0003-swscale-sws

[FFmpeg-devel] [PATCH 1/2] lavf/hlsenc: fix mixed declarations and code warning.

2018-08-20 Thread Jun Zhao
fix the build warning for "ISO C90 forbids mixed declarations and code" Signed-off-by: Jun Zhao --- libavformat/hlsenc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 43e6fc8..c261016 100644 --- a/libavformat/hlsenc.c

Re: [FFmpeg-devel] [PATCH 1/2] lavf/hlsenc: fix mixed declarations and code warning.

2018-08-20 Thread Liu Steven
> 在 2018年8月20日,下午7:13,Jun Zhao 写道: > > fix the build warning for "ISO C90 forbids mixed declarations and code" > > Signed-off-by: Jun Zhao > --- > libavformat/hlsenc.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c >

Re: [FFmpeg-devel] [PATCH v2] doc/filters: Add double-pass example for loudnorm

2018-08-20 Thread Marvin Scholz
On 20 Aug 2018, at 7:30, Gyan Doshi wrote: On 20-08-2018 03:27 AM, Marvin Scholz wrote: +@example +$ ffmpeg -i input -map 0:a -af loudnorm=I=-23:TP=-1:print_format=summary -f null - + +[...] +Input Integrated: -9.0 LUFS +Input True Peak: +1.5 dBTP +Input LRA: 9.4 LU +I

Re: [FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-20 Thread Martin Vignali
Updated patch in attach also fix the conversion when using float gray as input, and 8bpc uint as output Martin 0002-swscale-treat-float-input-data-as-uint-16bpc.patch Description: Binary data 0003-swscale-swscale-small-cosmetic.patch Description: Binary data ___

Re: [FFmpeg-devel] avcodec/psd : add support for gray float (WIP)

2018-08-20 Thread Martin Vignali
Hello, Better patch in attach (reuse the same "copy part" than uint 8bpc and 16 bpc pix fmt) Works only after applying swscale patch in discussion : swscale : hScale16To19 : limit shift for float(32bits) input Can be test with : ./ffmpeg -i lena-gray_float.psd -pix_fmt gray8 res8.png ./ffmpeg -i

Re: [FFmpeg-devel] [PATCH] configure: do not add --fsanitize= if coverage is tested

2018-08-20 Thread James Almer
On 8/19/2018 5:40 PM, Michael Niedermayer wrote: > Found-by: Max Moroz > Signed-off-by: Michael Niedermayer > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index 9b5421d5a8..b9c9d0b307 100755 > --- a/configure > +++ b/configure >

[FFmpeg-devel] swscale/input : avoid float calc for GrayFloat to Gray16 conv

2018-08-20 Thread Martin Vignali
Hello, Patch in attach modify GrayFloat to Gray16 conversion using the same method currently use inside exr decoder (no float calc) duplicate the float_to_uint func inside swscale_internal Martin 0004-swscale-input-avoid-float-calc-for-grayFloat-to-uint.patch Description: Binary data _

Re: [FFmpeg-devel] [PATCH v2] doc/filters: Add double-pass example for loudnorm

2018-08-20 Thread Carl Eugen Hoyos
2018-08-20 7:30 GMT+02:00, Gyan Doshi : > On 20-08-2018 03:27 AM, Marvin Scholz wrote: > >> +@example >> +$ ffmpeg -i input -map 0:a -af loudnorm=I=-23:TP=-1:print_format=summary >> -f null - >> + >> +[...] >> +Input Integrated: -9.0 LUFS >> +Input True Peak: +1.5 dBTP >> +Input LRA:

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libvmaf: update to use libvmaf v1.3.9

2018-08-20 Thread Carl Eugen Hoyos
2018-08-20 7:15 GMT+02:00, Gyan Doshi : > On 20-08-2018 03:17 AM, Carl Eugen Hoyos wrote: > >> I believe that if a general option exists (as in this case), it is a bad >> idea to have a specifically targeted option that has to be used instead. > > The user may not want the thread pool to be availab

[FFmpeg-devel] [PATCH] lavf/matroska: Allow AV1 in WebM

2018-08-20 Thread Kagami Hiiragi
Nothing prevents it to work except this check. AV1 is already supported by Matroska muxer and aomenc produces WebM/AV1 files as well. Signed-off-by: Kagami Hiiragi diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 09a62e1922..76cb124221 100644 --- a/libavformat/matroskaenc

Re: [FFmpeg-devel] [PATCH] lavf/matroska: Allow AV1 in WebM

2018-08-20 Thread James Almer
On 8/20/2018 1:44 PM, Kagami Hiiragi wrote: > Nothing prevents it to work except this check. AV1 is already supported > by Matroska muxer and aomenc produces WebM/AV1 files as well. > > Signed-off-by: Kagami Hiiragi > > diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c > index 0

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libvmaf: update to use libvmaf v1.3.9

2018-08-20 Thread Paul B Mahol
On 8/20/18, Carl Eugen Hoyos wrote: > 2018-08-20 7:15 GMT+02:00, Gyan Doshi : >> On 20-08-2018 03:17 AM, Carl Eugen Hoyos wrote: >> >>> I believe that if a general option exists (as in this case), it is a bad >>> idea to have a specifically targeted option that has to be used instead. >> >> The us

Re: [FFmpeg-devel] [PATCH] lavf/matroska: Allow AV1 in WebM

2018-08-20 Thread Hendrik Leppkes
On Mon, Aug 20, 2018 at 7:09 PM James Almer wrote: > > On 8/20/2018 1:44 PM, Kagami Hiiragi wrote: > > Nothing prevents it to work except this check. AV1 is already supported > > by Matroska muxer and aomenc produces WebM/AV1 files as well. > > > > Signed-off-by: Kagami Hiiragi > > > > diff --git

Re: [FFmpeg-devel] [PATCH] Avoid undefined behavior by limiting PTS to 62 bits in ogg decoder

2018-08-20 Thread Fredrik Hubinette
I'm uncertain what the right thing to do here is. Oggdec generates PTS values which are a bit crazy, and the generic code that deals which those values encounters undefined behavior. It seems like there should be some input validation happening somewhere, but it's not clear to me if that belongs in

[FFmpeg-devel] [PATCH] lavc/libaomenc: Add -tile-columns/-tile-rows

2018-08-20 Thread Kagami Hiiragi
These options are required for multithreaded encoding, because they set to zero by default in av1_cx_iface.c. Signed-off-by: Kagami Hiiragi diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 9431179886..55cb7ff72e 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.c @

Re: [FFmpeg-devel] [PATCH] avformat/mov: Allow saio/saiz in clear content.

2018-08-20 Thread Jacob Trimble
On Wed, Aug 15, 2018 at 2:38 PM Michael Niedermayer wrote: > > [...] > > > mov.c |6 ++ > > 1 file changed, 6 insertions(+) > > 0e583b4ad11852ce38a2b945644e178b7f13a42f > > 0001-avformat-mov-Allow-saio-saiz-in-clear-content-v2.patch > > From 256880aca517f64257eb28342a656867d90307a7 Mon

Re: [FFmpeg-devel] [PATCH] avformat/matroska: Parse generic encryption info from packets.

2018-08-20 Thread Jacob Trimble
On Mon, Aug 13, 2018 at 9:01 PM James Almer wrote: > > On 8/14/2018 12:50 AM, James Almer wrote: > > On 7/12/2018 8:45 PM, Jacob Trimble wrote: > >> I am currently seeing a problem with this when using Opus audio. In > >> read_frame_internal, it will try to parse the resulting packet. For > >> v

Re: [FFmpeg-devel] [PATCH] avformat/matroskadec: Parse encryption init info from streams.

2018-08-20 Thread Jacob Trimble
On Thu, Aug 9, 2018 at 9:14 AM Jacob Trimble wrote: > > On Wed, Aug 1, 2018 at 1:46 PM Jacob Trimble wrote: > > > > On Mon, Jul 23, 2018 at 2:01 PM Jacob Trimble wrote: > > > > > > On Thu, Jul 12, 2018 at 5:05 PM Jacob Trimble wrote: > > > > > > > > Signed-off-by: Jacob Trimble > > > > --- > >

Re: [FFmpeg-devel] [PATCH] avformat/avformat.h: Add av_stream_remove_side_data.

2018-08-20 Thread Jacob Trimble
On Mon, Jul 9, 2018 at 9:57 AM Jacob Trimble wrote: > > On Tue, Jul 3, 2018 at 5:59 PM Michael Niedermayer > wrote: > > > > On Tue, Jul 03, 2018 at 12:14:19PM -0700, Jacob Trimble wrote: > > > On Mon, Jul 2, 2018 at 6:07 PM Michael Niedermayer > > > wrote: > > > > > > > > On Mon, Jun 25, 2018 at

[FFmpeg-devel] [PATCH] avcodec/opus_parser: Handle complete frames flag.

2018-08-20 Thread Jacob Trimble
I am not entirely sure what this flag is supposed to be, since there is no documentation where it is defined. But this was suggested by James Almer as a fix for my encrypted Opus problems and several other codec parsers do the same thing. From 87dfe4d3d21a824c0fbe71dad2ebc8672b3fd2b4 Mon Sep 17 00

Re: [FFmpeg-devel] [PATCH 2/2] libavfilter: Removes stored DNN models. Adds support for native backend model file format in tf backend.

2018-08-20 Thread Gyan Doshi
On 20-08-2018 11:52 PM, Sergey Lavrushkin wrote: But there are some issues. First, to use this filter for formats with chroma channels I do: ffmpeg -i in.bmp -filter_complex 'extractplanes=y+u+v[y][u][v]' -map '[y]' y.bmp -map '[u]' u.bmp -map '[v]' v.bmp ffmpeg -i y.bmp -vf sr=dnn_backend=tens

Re: [FFmpeg-devel] [PATCH] Avoid undefined behavior when start_time_text is -1<<63

2018-08-20 Thread Fredrik Hubinette
Ok, let's use cast, new patch attached. On Mon, Jul 30, 2018 at 4:53 PM Michael Niedermayer wrote: > On Mon, Jul 30, 2018 at 01:49:24PM -0700, Fredrik Hubinette wrote: > > Is casting a negative integer to unsigned defined behavior? > > yes > > 6.3.1.3 Signed and unsigned integers > > 2 Otherwis

Re: [FFmpeg-devel] [PATCH] aadec: alternate mp3 seek handling

2018-08-20 Thread Karsten Otto
Ping. Any thoughts on this? Cheers, Karsten > Am 31.07.2018 um 21:16 schrieb Karsten Otto : > > After seeking, determine the offset of the next frame in the decrypted > buffer by scanning the first few bytes for a valid mp3 header. > This significantly improves the listening experience for audio

Re: [FFmpeg-devel] [PATCH] libavcodec/cuviddec A53CC closed captions support added to cuviddec & nvenc

2018-08-20 Thread Timo Rothenpieler
On 8/17/2018 2:38 PM, Carl Eugen Hoyos wrote: 2018-05-03 19:42 GMT+02:00, Timo Rothenpieler : Slightly refactored nvenc part can be found here: https://github.com/BtbN/FFmpeg/commit/e5d85ac3 Will push tomorrow if no issue with it comes up. Why is there no option to disable Closed Captions enc

Re: [FFmpeg-devel] [PATCH 4/7] Adds gray floating-point pixel formats.

2018-08-20 Thread Sergey Lavrushkin
2018-08-18 23:20 GMT+03:00 Michael Niedermayer : > On Sat, Aug 18, 2018 at 02:10:21PM +0300, Sergey Lavrushkin wrote: > > 2018-08-17 23:28 GMT+03:00 Michael Niedermayer : > > > > > On Fri, Aug 17, 2018 at 12:46:52AM -0300, James Almer wrote: > > > > On 8/14/2018 1:23 PM, Michael Niedermayer wrote:

Re: [FFmpeg-devel] [PATCH] lavfi/vf_libvmaf: update to use libvmaf v1.3.9

2018-08-20 Thread Carl Eugen Hoyos
2018-08-20 19:09 GMT+02:00, Paul B Mahol : > On 8/20/18, Carl Eugen Hoyos wrote: >> 2018-08-20 7:15 GMT+02:00, Gyan Doshi : >>> On 20-08-2018 03:17 AM, Carl Eugen Hoyos wrote: > We have -filter_complex_threads for that, so no. For which use-case is this an advantage? >>> >>> For whe

Re: [FFmpeg-devel] [PATCH 4/7] Adds gray floating-point pixel formats.

2018-08-20 Thread Martin Vignali
Hello, I am having trouble reproducing this error. These tests are fine for 32-bit > VMs on > my computers. So the only thing I can do is to disable these tests for > these formats. > Otherwise, I need to test other changes somehow. Here is the patch, that > skips > pixfmts tests for these formats

[FFmpeg-devel] [PATCH 1/2] avcodec: add IMM4 decoder

2018-08-20 Thread Paul B Mahol
This work is sponsored by VideoLAN. Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 + libavcodec/imm4.c | 501 libavformat/riff.c

[FFmpeg-devel] [PATCH 2/2] avcodec: add Brooktree ProSumer Video decoder

2018-08-20 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 + libavcodec/prosumer.c | 413 libavformat/riff.c | 1 + 6 files changed, 424 inserti

[FFmpeg-devel] [PATCH 1/3] avcodec/snowdec: Fix integer overflow with motion vector residual

2018-08-20 Thread Michael Niedermayer
Fixes: signed integer overflow: -19818 + -2147483648 cannot be represented in type 'int' Fixes: 9545/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-4928769537081344 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

[FFmpeg-devel] [PATCH 3/3] avcodec/hq_hqa: Check remaining input bits in hqa_decode_mb()

2018-08-20 Thread Michael Niedermayer
Fixes: Timeout Fixes: 9634/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HQ_HQA_fuzzer-6267852259590144 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/hq_hqa.c | 3 +++ 1 file changed, 3

[FFmpeg-devel] [PATCH 2/3] avcodec/vb: Check for end of bytestream before reading blocktype

2018-08-20 Thread Michael Niedermayer
Fixes: Timeout Fixes: 9601/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VB_fuzzer-4550228702134272 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/vb.c | 4 1 file changed, 4 inserti

[FFmpeg-devel] [PATCH v3] doc/filters: Add double-pass example for loudnorm

2018-08-20 Thread Marvin Scholz
--- Changes to v2: - Removed -map option to prevent filter to affect all audio channels in the first pass example doc/filters.texi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 32c95b591c..f082d55d32 100644 --- a/doc/filt

Re: [FFmpeg-devel] [PATCH 2/3] lavc/vaapi_encode_h264: respect "slices" option in h264 vaapi encoder

2018-08-20 Thread Mark Thompson
On 30/07/18 12:42, Jun Zhao wrote: > Enable multi-slice support in AVC/H.264 vaapi encoder. > > Signed-off-by: Wang, Yi A > Signed-off-by: Jun Zhao > --- > libavcodec/vaapi_encode_h264.c | 31 +-- > 1 files changed, 25 insertions(+), 6 deletions(-) > > diff --git

Re: [FFmpeg-devel] [PATCH 2/3] lavc/vaapi_encode_h264: respect "slices" option in h264 vaapi encoder

2018-08-20 Thread myp...@gmail.com
On Tue, Aug 21, 2018 at 8:05 AM Mark Thompson wrote: > > On 30/07/18 12:42, Jun Zhao wrote: > > Enable multi-slice support in AVC/H.264 vaapi encoder. > > > > Signed-off-by: Wang, Yi A > > Signed-off-by: Jun Zhao > > --- > > libavcodec/vaapi_encode_h264.c | 31 +--

Re: [FFmpeg-devel] [PATCH] examples/vaapi_dec_scaling: init export

2018-08-20 Thread myp...@gmail.com
On Mon, Jun 11, 2018 at 7:22 PM Jun Zhao wrote: > > add a vaapi decoding/scaling sample. > > Signed-off-by: Jun Zhao > --- > configure| 2 + > doc/examples/Makefile| 1 + > doc/examples/vaapi_dec_scaling.c | 375 +++ > 3

Re: [FFmpeg-devel] [PATCH v3] doc/filters: Add double-pass example for loudnorm

2018-08-20 Thread Gyan Doshi
On 21-08-2018 03:18 AM, Marvin Scholz wrote: +@example +ffmpeg -i input -af loudnorm=I=-23:TP=-1:measured_I=-9.0:measured_TP=1.5:measured_LRA=9.4:measured_thresh=-19.5:print_format=summary output Since your input LRA is 9.4, and output LRA is 7 (default), the filter will upsample to 192 kH