[FFmpeg-devel] [PATCH] Improved the performance of 1 decode + N filter graphs and adaptive bitrate.

2018-12-31 Thread Shaofei Wang
With new option "-abr_pipeline" It enabled multiple filter graph concurrency, which bring obvious improvement in some 1:N scenarios by CPU and GPU acceleration Below are some test cases and comparison as reference. (Hardware platform: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz) (Software: Intel iHD d

[FFmpeg-devel] introduce new AVPacket (or modify the existing pkt->data) while muxing

2018-12-31 Thread Sify Browse
Hello, I am trying to create and push packet in the muxer but new packet is not reflected at all after packaging. Pipeline looks like below, [image: image.png] While doing this, I am loosing existing packet also. Can you please help me by pointing some of example codes? is there any restric

[FFmpeg-devel] Can you implement OPENCL or CUDA support option for motion estimation in NVENC HEVC and AVC?

2018-12-31 Thread John Caliber
Hello FFMPEG developers! I asked Nvidia forum about that topic. What do you think about it? What is your own opinion about this idea? The content of the post: https://devtalk.nvidia.com/default/topic/1045756/can-you-implement-opencl-or-cuda-support-option-for-motion-estimation-in-nvenc-hevc-and

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/rangecoder: Add and test ff_rac_check_termination()

2018-12-31 Thread Michael Niedermayer
On Mon, Dec 31, 2018 at 02:50:26PM -0300, James Almer wrote: > On 12/31/2018 1:40 PM, Michael Niedermayer wrote: > > On Sun, Dec 23, 2018 at 07:24:49PM +0100, Michael Niedermayer wrote: > >> Signed-off-by: Michael Niedermayer > >> --- > >> libavcodec/rangecoder.c | 19 +++ >

[FFmpeg-devel] [PATCH 04/11] avfilter/af_crossfeed: Use ff_exp10()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavfilter/af_crossfeed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_crossfeed.c b/libavfilter/af_crossfeed.c index a0af280432..beee67964d 100644 --- a/libavfilter/af_crossfeed.c +++ b/libavfilter/af_crossfeed.c @@

[FFmpeg-devel] [PATCH 11/11] avcodec/bfi: Provide non NULL context to av_log()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/bfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/bfi.c b/libavcodec/bfi.c index 233a1d27a8..a4cb002053 100644 --- a/libavcodec/bfi.c +++ b/libavcodec/bfi.c @@ -71,7 +71,7 @@ static int bfi_decode_frame(AVCodecCo

[FFmpeg-devel] [PATCH 08/11] avcodec/imc: Provide non NULL context to av_log()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/imc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/imc.c b/libavcodec/imc.c index 7cd6db930b..82a908160a 100644 --- a/libavcodec/imc.c +++ b/libavcodec/imc.c @@ -104,6 +104,8 @@ typedef struct IMCContext {

[FFmpeg-devel] [PATCH 02/11] avfilter/vf_tonemap_opencl: Make static tables const

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavfilter/vf_tonemap_opencl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_tonemap_opencl.c b/libavfilter/vf_tonemap_opencl.c index cd293c2522..ae3f98d817 100644 --- a/libavfilter/vf_tonemap_opencl.c +++ b/libavfil

[FFmpeg-devel] [PATCH 10/11] avcodec/bink: Provide non NULL context to av_log()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/bink.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libavcodec/bink.c b/libavcodec/bink.c index 9c17dedcba..6673afa789 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -609,7 +609,7 @@ static inline i

[FFmpeg-devel] [PATCH 06/11] avcodec/acelp_pitch_delay: Minor simplification by using ff_exp10()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/acelp_pitch_delay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/acelp_pitch_delay.c b/libavcodec/acelp_pitch_delay.c index c345a99c81..a070d1b25d 100644 --- a/libavcodec/acelp_pitch_delay.c +++ b/libavcodec/acelp

[FFmpeg-devel] [PATCH 09/11] avcodec/mss2: Provide non NULL context to av_log()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/mss2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c index 3180af1d60..2eb366ee78 100644 --- a/libavcodec/mss2.c +++ b/libavcodec/mss2.c @@ -174,7 +174,7 @@ static int decode_pal_v2

[FFmpeg-devel] [PATCH 07/11] avcodec/aacdec_fixed: Provide context to av_log()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/aac.h | 2 +- libavcodec/aacdec_fixed.c| 4 ++-- libavcodec/aacdec_template.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/aac.h b/libavcodec/aac.h index 05bc95385f..c2b9c980cb 100644 --- a/li

[FFmpeg-devel] [PATCH 03/11] avfilter/ebur128: Simplify by using log10()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavfilter/ebur128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/ebur128.c b/libavfilter/ebur128.c index e11008078d..c8986fb5e1 100644 --- a/libavfilter/ebur128.c +++ b/libavfilter/ebur128.c @@ -368,7 +368,7 @@ EBUR128_FI

[FFmpeg-devel] [PATCH 05/11] avfilter/af_biquads: minor simplification by using ff_exp10()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavfilter/af_biquads.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c index ae5e1c6ade..86cd10df3b 100644 --- a/libavfilter/af_biquads.c +++ b/libavfilter/af_biquads.c @@ -63,6 +63,

[FFmpeg-devel] [PATCH 01/11] doc/indevs: fix upto typo

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- doc/indevs.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/indevs.texi b/doc/indevs.texi index 294ffa137c..af3173217f 100644 --- a/doc/indevs.texi +++ b/doc/indevs.texi @@ -374,7 +374,7 @@ Defaults to @option{false}. @item times

Re: [FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2018-12-31 Thread Alex Mogurenko
thanks, just sent new patch On Mon, Dec 31, 2018 at 5:56 PM Derek Buitenhuis wrote: > On 31/12/2018 09:12, Alex Mogurenko wrote: > > I seems to be lame as failed to find how to run fate to check prores_ks > :( > > General way to run all of FATE: > > $ configure --samples=/home/path/for/samples/

[FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2018-12-31 Thread Alex Mogurenko
fdct done twice for each block. first time during quant calculation, second during slice encoding. so if we pre-save dct coefficients no need to do fdct second time. disadvantages: requires more memory advantages: improves performance ~4-5% --- libavcodec/proresenc_kostya.c | 74

[FFmpeg-devel] [PATCH 07/16] avcodec/assenc: Return more specific error codes for ass_encode_frame()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/assenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/assenc.c b/libavcodec/assenc.c index dc4f0ffa97..e54c1d8ec3 100644 --- a/libavcodec/assenc.c +++ b/libavcodec/assenc.c @@ -57,7 +57,7 @@ static int ass_enc

[FFmpeg-devel] [PATCH 09/16] libavcodec/ac3dec.c: Avoid unspecific -1 error code

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/ac3dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 71419458fa..ba731314b4 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -452,7 +452,7 @@ static int decode_ex

[FFmpeg-devel] [PATCH 01/16] avcodec/4xm: Fix returned error codes

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/4xm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index 7440dccf1f..2b88c899d0 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -498,7 +498,7 @@ static int decode_i_block(FourX

[FFmpeg-devel] [PATCH 04/16] avcodec/bitstream: Return specific error codes when building vlc tables

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/bitstream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index ed528fe4af..8762e5f4b2 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -164,7 +164,7 @@

[FFmpeg-devel] [PATCH 05/16] avcodec/avpacket: Avoid unspecific return -1 for av_grow_packet()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/avpacket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index e160ad3033..11ac4e80cd 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -112,7 +112,7 @@ int av

[FFmpeg-devel] [PATCH 16/16] avcodec/eacmv: Return more specific error codes and forward error codes

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/eacmv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/eacmv.c b/libavcodec/eacmv.c index bf4404ce42..6f39d72b88 100644 --- a/libavcodec/eacmv.c +++ b/libavcodec/eacmv.c @@ -191,12 +191,12 @@ static int cmv_de

[FFmpeg-devel] [PATCH 15/16] avcodec/eatqi: Return more specific error code from tqi_decode_mb()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/eatqi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c index 1a847a35da..0002d45457 100644 --- a/libavcodec/eatqi.c +++ b/libavcodec/eatqi.c @@ -83,7 +83,7 @@ static int tqi_decode_mb(Tq

[FFmpeg-devel] [PATCH 02/16] swscale/yuv2rgb: Return a more specific error code from ff_yuv2rgb_c_init_tables()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libswscale/yuv2rgb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 737cbb06c8..d0df061e4d 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -993,7 +993,7 @@ av_cold int ff_

[FFmpeg-devel] [PATCH 03/16] avcodec/aacps: Return more specific error codes.

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/aacps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/aacps.c b/libavcodec/aacps.c index b16c3393d1..d5dca64b0f 100644 --- a/libavcodec/aacps.c +++ b/libavcodec/aacps.c @@ -118,7 +118,7 @@ static int read_ ## PAR #

[FFmpeg-devel] [PATCH 08/16] avcodec/ac3enc: Use specific error code in validate_float_option()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/ac3enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 636ca72050..e7e18af92d 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1800,7 +1800,7 @@ static int validat

[FFmpeg-devel] [PATCH 11/16] avcodec/adpcm: use assert for codec id instead or error return

2018-12-31 Thread Michael Niedermayer
A unsupported codec_id is a internal error and should not happen Signed-off-by: Michael Niedermayer --- libavcodec/adpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index cd3bbd33c2..aa9c7c5c4f 100644 --- a/libavcodec/adpcm.c +++

[FFmpeg-devel] [PATCH 13/16] avcodec/dct: Propagate error code from ff_rdft_init()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/dct.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/dct.c b/libavcodec/dct.c index cca51eeaf8..52f082d062 100644 --- a/libavcodec/dct.c +++ b/libavcodec/dct.c @@ -178,6 +178,7 @@ av_cold int ff_dct_init(DCTCon

[FFmpeg-devel] [PATCH 14/16] avcodec/dcaenc: Return specific error code from subband_bufer_alloc()

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/dcaenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/dcaenc.c b/libavcodec/dcaenc.c index 4b4ceeff05..34b3e94165 100644 --- a/libavcodec/dcaenc.c +++ b/libavcodec/dcaenc.c @@ -136,7 +136,7 @@ static int sub

[FFmpeg-devel] [PATCH 06/16] avcodec/asvenc: Replace bitstream space check by assert

2018-12-31 Thread Michael Niedermayer
This should never be untrue, if it is, thats a bug Signed-off-by: Michael Niedermayer --- libavcodec/asvenc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c index c4eca2a13d..3cc94bf91a 100644 --- a/libavcodec/asvenc.c +++ b/liba

[FFmpeg-devel] [PATCH 12/16] avcodec/binkaudio: Use assert instead of return for use of compile time disabled codecs

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/binkaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c index e0f3d14eef..96cf968c66 100644 --- a/libavcodec/binkaudio.c +++ b/libavcodec/binkaudio.c @@ -139,7 +139,7 @@ stati

[FFmpeg-devel] [PATCH 10/16] avcodec/alac: Avoid unspecific error codes and forward error codes

2018-12-31 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/alac.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/alac.c b/libavcodec/alac.c index 93cf198eea..d6b87db734 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -121,7 +121,7 @@ static int rice_dec

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/rangecoder: Add and test ff_rac_check_termination()

2018-12-31 Thread James Almer
On 12/31/2018 1:40 PM, Michael Niedermayer wrote: > On Sun, Dec 23, 2018 at 07:24:49PM +0100, Michael Niedermayer wrote: >> Signed-off-by: Michael Niedermayer >> --- >> libavcodec/rangecoder.c | 19 +++ >> libavcodec/rangecoder.h | 9 + >> libavcodec/tests/ran

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/scpr: Use local variables in decode_run_i()

2018-12-31 Thread Michael Niedermayer
On Thu, Dec 27, 2018 at 11:40:56AM +0100, Michael Niedermayer wrote: > This improves the speed of decode_run_i() > > Before: > clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200 > in 17420 ms > After: > clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/rangecoder: Add and test ff_rac_check_termination()

2018-12-31 Thread Michael Niedermayer
On Sun, Dec 23, 2018 at 07:24:49PM +0100, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavcodec/rangecoder.c | 19 +++ > libavcodec/rangecoder.h | 9 + > libavcodec/tests/rangecoder.c | 7 +-- > 3 files changed, 33 insertions(

Re: [FFmpeg-devel] [PATCH] libavcodec: Remove dynamic relocs from aarch64/h264idct_neon.S

2018-12-31 Thread Michael Niedermayer
On Fri, Dec 28, 2018 at 03:12:53PM -0800, Manoj Gupta wrote: > Hi All, > > I recently had a problem building ffmpeg for AArch64 where lld linker > complained about text relocations in readonly segment. The following > patch fixes the linker complains by referring to a local label instead > of func

Re: [FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2018-12-31 Thread Derek Buitenhuis
On 31/12/2018 09:12, Alex Mogurenko wrote: > I seems to be lame as failed to find how to run fate to check prores_ks :( General way to run all of FATE: $ configure --samples=/home/path/for/samples/ --enable-gpl [...] $ make fate-rsync $ make fate There are sub-targets, too, as listed in Michaels

Re: [FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2018-12-31 Thread Alex Mogurenko
I seems to be lame as failed to find how to run fate to check prores_ks :( On Mon, Dec 31, 2018 at 4:46 AM Michael Niedermayer wrote: > On Sun, Dec 30, 2018 at 10:57:23PM +0200, Alex Mogurenko wrote: > > fdct done twice for each block. first time during quant calculation, > second during slice e