Re: [FFmpeg-devel] [PATCH] Fix Markdown formatting

2019-01-31 Thread Lou Logan
On Thu, 31 Jan 2019 11:46:49 -0500 Justin Bull wrote: > --- > INSTALL.md | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/INSTALL.md b/INSTALL.md > index 5db912231c..3b220bc6ff 100644 > --- a/INSTALL.md > +++ b/INSTALL.md > @@ -1,4 +1,4 @@ > -#Installing FFmpeg: > +##

Re: [FFmpeg-devel] [PATCH] lavfi/vf_nlmeans: Improve the performance for nlmeans

2019-01-31 Thread Carl Eugen Hoyos
2019-01-31 14:55 GMT+01:00, Jun Zhao : > Remove the pdiff_lut_scale in nlmeans, when search the weight_luttable > in nlmeans_slices(), the old way need to the float-point arithmetic > using pdiff_lut_scale. This change will avoid using pdiff_lut_scale > in the weight_lut table search, it's will

Re: [FFmpeg-devel] [PATCH] avformat/mov: fix sidx size being doubled in offset.

2019-01-31 Thread Michael Niedermayer
On Sun, Jan 27, 2019 at 11:08:29AM -0500, agrecascino...@gmail.com wrote: > From: mptcultist > > fixes an issue where if the video size was very specific, ffmpeg would hang > from not filling the sidx_pts for all streams, due to not reading the last > sidx lump. for #7572 > > --- >

[FFmpeg-devel] [PATCH] Fix Markdown formatting

2019-01-31 Thread Justin Bull
--- INSTALL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 5db912231c..3b220bc6ff 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,4 +1,4 @@ -#Installing FFmpeg: +## Installing FFmpeg 1. Type `./configure` to create the configuration. A list

Re: [FFmpeg-devel] [PATCH] web/consulting: add myself

2019-01-31 Thread Lou Logan
On Thu, 31 Jan 2019 21:57:38 +0530 Gyan wrote: > From a03e88da9deb21b800714b695b4d99edb54397ff Mon Sep 17 00:00:00 2001 > From: Gyan Doshi > Date: Thu, 31 Jan 2019 21:44:19 +0530 > Subject: [PATCH] web/consulting: add myself > > Signed-off-by: Gyan Doshi > --- > src/consulting | 13

Re: [FFmpeg-devel] [PATCH] libavcodec: vp8 neon optimizations for aarch64

2019-01-31 Thread Carl Eugen Hoyos
2019-01-31 17:04 GMT+01:00, Magnus Röös : > Partial port of the ARM Neon for aarch64. Reproduced a >20% speedup for fate-vp8 and applied. Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH]lavf:Constify AVInputFormat pointer

2019-01-31 Thread Carl Eugen Hoyos
2019-01-31 21:43 GMT+01:00, Carl Eugen Hoyos : > Hi! > > Attached patch persistently uses "const" for AVInputFormat pointer > after the next version bump. Now with an actually working version. Please comment, Carl Eugen From f383a7f914b2c7240378b404d529a7d73c68941b Mon Sep 17 00:00:00 2001 From:

[FFmpeg-devel] [PATCH]lavf:Constify AVInputFormat pointer

2019-01-31 Thread Carl Eugen Hoyos
Hi! Attached patch persistently uses "const" for AVInputFormat pointer after the next version bump. Please comment, Carl Eugen From 95fc17cc1a82ea6d2e9e96932e145cc2b4c210b6 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 31 Jan 2019 21:40:58 +0100 Subject: [PATCH] lavf: Constify

Re: [FFmpeg-devel] [PATCH]lavf:Constify AVInputFormat pointer

2019-01-31 Thread James Almer
On 1/31/2019 5:54 PM, Carl Eugen Hoyos wrote: > 2019-01-31 21:43 GMT+01:00, Carl Eugen Hoyos : >> Hi! >> >> Attached patch persistently uses "const" for AVInputFormat pointer >> after the next version bump. > Now with an actually working version. > > Please comment, Carl Eugen > > >

Re: [FFmpeg-devel] [PATCH] avcodec/gsm_parser: return -1 on parse error

2019-01-31 Thread Chris Cunningham
On Wed, Jan 30, 2019 at 5:43 PM James Almer wrote: > On 1/30/2019 10:20 PM, Chris Cunningham wrote: > >> > And this definitely means there's a bug elsewhere. This parser should > have not been used for codecs ids other than GSM and GSM_MS. That's > precisely what this assert() is

Re: [FFmpeg-devel] [PATCH] avformat/mov: validate chunk_count vs stsc_data

2019-01-31 Thread Chris Cunningham
Some extra context: this remedies some bad math that otherwise triggers an abort near the bottom of mov_seek_stream(). My first thought on seeing this was we should probably be returning AVERROR_INVALIDDATA somewhere. The stsc and stco boxes aren't agreeing (stco says no chunks, stsc.first points

Re: [FFmpeg-devel] [PATCH] doc: fix various typos

2019-01-31 Thread Lou Logan
On Thu, Jan 31, 2019, at 2:23 PM, Moritz Barsnick wrote: > Found with the help of codespell-1.14.0. > > Signed-off-by: Moritz Barsnick > --- > doc/bitstream_filters.texi | 2 +- > doc/codecs.texi| 2 +- > doc/filters.texi | 24 > doc/formats.texi

[FFmpeg-devel] [PATCH] avformat/mov: validate chunk_count vs stsc_data

2019-01-31 Thread chcunningham
Bad content may contain stsc boxes with a first_chunk index that exceeds stco.entries (chunk_count). mov_get_stsc_samples now checks for this and returns 0 when values are invalid. Also updates MOVStsc to use unsigned ints, per spec. --- libavformat/isom.h | 6 +++--- libavformat/mov.c | 4

Re: [FFmpeg-devel] [PATCH] lavfi/vf_nlmeans: Improve the performance for nlmeans

2019-01-31 Thread myp...@gmail.com
On Fri, Feb 1, 2019 at 3:57 AM Carl Eugen Hoyos wrote: > > 2019-01-31 14:55 GMT+01:00, Jun Zhao : > > Remove the pdiff_lut_scale in nlmeans, when search the weight_luttable > > in nlmeans_slices(), the old way need to the float-point arithmetic > > using pdiff_lut_scale. This change will avoid

[FFmpeg-devel] [PATCH] doc: fix various typos

2019-01-31 Thread Moritz Barsnick
Found with the help of codespell-1.14.0. Signed-off-by: Moritz Barsnick --- doc/bitstream_filters.texi | 2 +- doc/codecs.texi| 2 +- doc/filters.texi | 24 doc/formats.texi | 2 +- doc/general.texi | 8

Re: [FFmpeg-devel] [PATCH]lavf:Constify AVInputFormat pointer

2019-01-31 Thread Michael Niedermayer
On Thu, Jan 31, 2019 at 09:54:14PM +0100, Carl Eugen Hoyos wrote: > 2019-01-31 21:43 GMT+01:00, Carl Eugen Hoyos : > > Hi! > > > > Attached patch persistently uses "const" for AVInputFormat pointer > > after the next version bump. > > Now with an actually working version. > > Please comment,

[FFmpeg-devel] [PATCH] movenc: Fix VPCC bitdepth for hardware pixel formats

2019-01-31 Thread Nikolas Bowe
If a hardware encoder is used, the pixel format may be a hardware pixel format. This leads to invalid VPCC atom being written, due to depth of hardware pixel formats being 0. To work around this, fallback on bits_per_raw_sample. Signed-off-by: Nikolas Bowe --- libavcodec/vaapi_encode.c | 2 +-

Re: [FFmpeg-devel] [PATCH] avcodec/h264_parse: no need check ref list1 for P slices.

2019-01-31 Thread myp...@gmail.com
On Fri, Feb 1, 2019 at 1:28 PM Lin, Decai wrote: > > > > > -Original Message- > > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > > Michael Niedermayer > > Sent: 2019年2月1日 1:12 > > To: FFmpeg development discussions and patches > > > > Subject: Re:

Re: [FFmpeg-devel] [PATCH] avcodec/h264_parse: no need check ref list1 for P slices.

2019-01-31 Thread Lin, Decai
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Michael Niedermayer > Sent: 2019年2月1日 1:12 > To: FFmpeg development discussions and patches > > Subject: Re: [FFmpeg-devel] [PATCH] avcodec/h264_parse: no need check ref > list1 for P

[FFmpeg-devel] [PATCH 3/4] avcodec/mips: [loongson] optimize put_hevc_qpel_bi_h_8 with mmi.

2019-01-31 Thread Shiyou Yin
Optimize put_hevc_qpel_bi_h_8 with mmi in the case width=4/8/12/16/24/32/48/64. This optimization improved HEVC decoding performance 2.1%(2.34x to 2.39x, tested on loongson 3A3000). --- libavcodec/mips/hevcdsp_init_mips.c | 9 +++ libavcodec/mips/hevcdsp_mips.h | 9 +++

[FFmpeg-devel] [PATCH 1/4] avcodec/mips: [loongson] optimize put_hevc_qpel_uni_hv_8 with mmi.

2019-01-31 Thread Shiyou Yin
Optimize put_hevc_qpel_uni_hv_8 with mmi in the case width=4/8/12/16/24/32/48/64. This optimization improved HEVC decoding performance 2.7%(2.24x to 2.30x, tested on loongson 3A3000). --- libavcodec/mips/hevcdsp_init_mips.c | 9 ++ libavcodec/mips/hevcdsp_mips.h | 21

[FFmpeg-devel] [PATCH 2/4] avcodec/mips: [loongson] optimize put_hevc_epel_bi_hv_8 with mmi.

2019-01-31 Thread Shiyou Yin
Optimize put_hevc_epel_bi_hv_8 with mmi in the case width=4/8/12/16/24/32. This optimization improved HEVC decoding performance 1.7%(2.30x to 2.34x, tested on loongson 3A3000). --- libavcodec/mips/hevcdsp_init_mips.c | 7 ++ libavcodec/mips/hevcdsp_mips.h | 6 ++

[FFmpeg-devel] [PATCH] doc/filters: document ranges and defaults for nlmeans options

2019-01-31 Thread Jun Zhao
document ranges and defaults for nlmeans options Signed-off-by: Jun Zhao --- doc/filters.texi |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index fc98323..d588315 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@

[FFmpeg-devel] [PATCH V2] lavfi/vf_nlmeans: Improve the performance for nlmeans

2019-01-31 Thread Jun Zhao
Remove the pdiff_lut_scale in nlmeans and increase weight_lut table size from 2^9 to 80, this change will avoid using pdiff_lut_scale in nlmeans_slice() for weight_lut table search, it's will improve the performance about 12%. (in 1080P size picture case). Use the profiling command like:

[FFmpeg-devel] [PATCH 4/4] avcodec/mips: [loongson] optimize put_hevc_qpel_h_8 with mmi.

2019-01-31 Thread Shiyou Yin
Optimize put_hevc_qpel_h_8 with mmi in the case width=4/8/12/16/24/32/48/64. This optimization improved HEVC decoding performance 2%(2.39x to 2.44x, tested on loongson 3A3000). --- libavcodec/mips/hevcdsp_init_mips.c | 9 libavcodec/mips/hevcdsp_mips.h | 9

Re: [FFmpeg-devel] [PATCH] avcodec: Allow to query number of consumed bytes using the new API

2019-01-31 Thread jannis_wth
30.01.19 21:42 - jannis_wth: > 30.01.19 21:02 - James Almer: >> I guess avctx->internal->last_pkt_props could work for this, but it may >> not be consistent across decoders. > > avctx->internal->last_pkt_props stores the properties of the last passed > packet, and does not get updated on decoding

Re: [FFmpeg-devel] [PATCH] fix sidx size being doubled in offset. fixes an issue where if the video size was very specific, ffmpeg would hang from not filling the sidx_pts for all streams, due to not

2019-01-31 Thread Moritz Barsnick
On Thu, Jan 31, 2019 at 10:16:00 +0100, Moritz Barsnick wrote: > Please split your commit message into a leading line, an empty line, > and then the explanatory text. Forget this, I didn't see V3 of your patch. D'uh, Moritz ___ ffmpeg-devel mailing

Re: [FFmpeg-devel] [PATCH] fix sidx size being doubled in offset. fixes an issue where if the video size was very specific, ffmpeg would hang from not filling the sidx_pts for all streams, due to not

2019-01-31 Thread Moritz Barsnick
On Sun, Jan 27, 2019 at 10:51:12 -0500, agrecascino...@gmail.com wrote: > Subject: [FFmpeg-devel] [PATCH] fix sidx size being doubled in offset. fixes > an issue where if the video size was very specific, ffmpeg would hang from > not filling the > sidx_pts for all streams, due to not

Re: [FFmpeg-devel] [PATCH 1/4] zmbvenc: don't sum the entropy when blocks are equal

2019-01-31 Thread Matthew Fearnley
On Sun, 20 Jan 2019 at 15:16, Tomas Härdin wrote: > > Hi. Just to say, I tried setting up additional score_tabs for the > > bottom/right partial blocks. Unfortunately, after implementing it and > > ironing out the bugs, the new score tables actually caused a slight > > increase in file size! >

[FFmpeg-devel] [PATCH 1/2] avutil: export av_memset_bytes()

2019-01-31 Thread Michael Niedermayer
This function is useful in more cases than just imgutils Signed-off-by: Michael Niedermayer --- doc/APIchanges | 3 +++ libavutil/imgutils.c | 8 ++-- libavutil/imgutils.h | 10 ++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/doc/APIchanges

Re: [FFmpeg-devel] [PATCH] fix sidx size being doubled in offset. fixes an issue where if the video size was very specific, ffmpeg would hang from not filling the sidx_pts for all streams, due to not

2019-01-31 Thread mptcultist
sorry i sent my first two emails about 4 days ago and after waiting a few days i just decided to subscribe and resubmit my patches. i think they just got through now. Sent from my iPhone > On Jan 31, 2019, at 4:16 AM, Moritz Barsnick wrote: > >> On Thu, Jan 31, 2019 at 10:16:00 +0100, Moritz

[FFmpeg-devel] [PATCH 2/2] avcodec/gifdec: Optimize gif_fill() by using av_memset_bytes()

2019-01-31 Thread Michael Niedermayer
Improves speed for 780/clusterfuzz-testcase-6393552642768896 from 95 sec to 60 sec Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/gifdec.c | 6 +- 1 file changed, 1 insertion(+), 5

[FFmpeg-devel] [PATCH] lavfi/vf_nlmeans: Improve the performance for nlmeans

2019-01-31 Thread Jun Zhao
Remove the pdiff_lut_scale in nlmeans, when search the weight_luttable in nlmeans_slices(), the old way need to the float-point arithmetic using pdiff_lut_scale. This change will avoid using pdiff_lut_scale in the weight_lut table search, it's will improve the performance about 12%. (1080P size

Re: [FFmpeg-devel] [PATCH 1/2] avutil: export av_memset_bytes()

2019-01-31 Thread Moritz Barsnick
On Thu, Jan 31, 2019 at 14:09:01 +0100, Michael Niedermayer wrote: > This function is useful in more cases than just imgutils [...] > libavutil/imgutils.c | 8 ++-- > libavutil/imgutils.h | 10 ++ If so, couldn't it be placed in libavutil/mem.[ch]? It seems appropriate. Moritz

Re: [FFmpeg-devel] [PATCH 1/4] zmbvenc: don't sum the entropy when blocks are equal

2019-01-31 Thread Tomas Härdin
tor 2019-01-31 klockan 13:31 + skrev Matthew Fearnley: > > On Sun, 20 Jan 2019 at 15:16, Tomas Härdin wrote: > > > > Hi.  Just to say, I tried setting up additional score_tabs for the > > > bottom/right partial blocks.  Unfortunately, after implementing it and > > > ironing out the bugs, the

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: Add discard_sample_percentage

2019-01-31 Thread Michael Niedermayer
On Sat, Jan 19, 2019 at 12:00:48AM +0100, Michael Niedermayer wrote: > Suggested-by: BBB > Signed-off-by: Michael Niedermayer > --- > doc/APIchanges | 3 +++ > libavcodec/avcodec.h | 8 > libavcodec/options_table.h | 1 + >

Re: [FFmpeg-devel] [PATCH] avcodec/h264_parse: no need check ref list1 for P slices.

2019-01-31 Thread Michael Niedermayer
On Thu, Jan 31, 2019 at 03:36:56PM +0800, Decai Lin wrote: > This is robust for some corner case there is incorrect list1 count > in pps header, but it's a P slice and can be decoded well. please provide a sample h264 video that needs this thanks [...] -- Michael GnuPG fingerprint:

[FFmpeg-devel] [PATCH] libavcodec: vp8 neon optimizations for aarch64

2019-01-31 Thread Magnus Röös
Partial port of the ARM Neon for aarch64. Benchmarks from fate: benchmarking with Linux Perf Monitoring API nop: 58.6 checkasm: using random seed 1760970128 NEON: - vp8dsp.idct [OK] - vp8dsp.mc [OK] - vp8dsp.loopfilter [OK] checkasm: all 21 tests passed vp8_idct_add_c: 201.6

[FFmpeg-devel] [PATCH] libavcodec/rscc.c: add missing semicolon

2019-01-31 Thread Mateusz
Signed-off-by: Mateusz Brzostek --- libavcodec/rscc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c index e4b51973d8..7d4e842cd3 100644 --- a/libavcodec/rscc.c +++ b/libavcodec/rscc.c @@ -64,7 +64,7 @@ typedef struct RsccContext {

Re: [FFmpeg-devel] [PATCH] libavcodec/rscc.c: add missing semicolon

2019-01-31 Thread James Almer
On 1/31/2019 12:36 PM, Mateusz wrote: > Signed-off-by: Mateusz Brzostek > --- > libavcodec/rscc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c > index e4b51973d8..7d4e842cd3 100644 > --- a/libavcodec/rscc.c > +++

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/ffv1: Simplify fold()

2019-01-31 Thread Michael Niedermayer
On Sun, Jan 27, 2019 at 01:44:13AM +0100, Michael Niedermayer wrote: > No speed difference, or slightly faster (the difference is too small so it > may be noise > that this appears faster) > > Signed-off-by: Michael Niedermayer > --- > libavcodec/ffv1.h | 4 +--- > 1 file changed, 1

Re: [FFmpeg-devel] [PATCH] libavcodec/rscc.c: add missing semicolon

2019-01-31 Thread Michael Niedermayer
On Thu, Jan 31, 2019 at 12:49:22PM -0300, James Almer wrote: > On 1/31/2019 12:36 PM, Mateusz wrote: > > Signed-off-by: Mateusz Brzostek > > --- > > libavcodec/rscc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c > > index

[FFmpeg-devel] [PATCH] web/consulting: add myself

2019-01-31 Thread Gyan
From a03e88da9deb21b800714b695b4d99edb54397ff Mon Sep 17 00:00:00 2001 From: Gyan Doshi Date: Thu, 31 Jan 2019 21:44:19 +0530 Subject: [PATCH] web/consulting: add myself Signed-off-by: Gyan Doshi --- src/consulting | 13 + 1 file changed, 13 insertions(+) diff --git

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: Add discard_sample_percentage

2019-01-31 Thread James Almer
On 1/31/2019 1:25 PM, Michael Niedermayer wrote: > On Sat, Jan 19, 2019 at 12:00:48AM +0100, Michael Niedermayer wrote: >> Suggested-by: BBB >> Signed-off-by: Michael Niedermayer >> --- >> doc/APIchanges | 3 +++ >> libavcodec/avcodec.h | 8 >>