Re: [FFmpeg-devel] [PATCH 1/2] aacenc: use the decoder's lcg PRNG

2016-10-11 Thread Claudio Freire
LGTM. However, On Sat, Oct 8, 2016 at 12:20 PM, Rostislav Pehlivanov wrote: > +/** > + * linear congruential pseudorandom number generator > + * > + * @param previous_valpointer to the current state of the generator > + * > + * @return Returns a 32-bit pseudorandom integer > + */ > +stati

Re: [FFmpeg-devel] [PATCH] avcodec/aaccoder: Limit sf_idx difference for all cases

2016-11-16 Thread Claudio Freire
On Wed, Nov 16, 2016 at 8:09 PM, Michael Niedermayer wrote: >> Sorry for the delay, it turned out to be more complex than that. >> >> There were a few potential violations that I had already identified in >> a WIP patch but they did not apply to the fuzzed sample. That sample >> triggered an inter

Re: [FFmpeg-devel] [PATCH] avcodec/aaccoder: Limit sf_idx difference for all cases

2016-09-09 Thread Claudio Freire
On Thu, Aug 25, 2016 at 8:57 AM, Rostislav Pehlivanov wrote: >> 64ed96a710787ba5d0666746a8562e7d.dee >> >> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind >> Signed-off-by: Michael Niedermayer >> --- >> libavcodec/aaccoder.c | 8 +++- >> 1 file changed, 7 insertions(+), 1 deletion(-)

Re: [FFmpeg-devel] [PATCH] avcodec/aaccoder: Limit sf_idx difference for all cases

2016-09-22 Thread Claudio Freire
On Sat, Sep 10, 2016 at 3:37 AM, Claudio Freire wrote: > On Thu, Aug 25, 2016 at 8:57 AM, Rostislav Pehlivanov > wrote: >>> 64ed96a710787ba5d0666746a8562e7d.dee >>> >>> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind >>> Signed-

Re: [FFmpeg-devel] [PATCH] aacenc: WIP support for PCEs

2016-10-03 Thread Claudio Freire
On Mon, Oct 3, 2016 at 3:53 PM, Rostislav Pehlivanov wrote: > Hopefully whoever wants to have support for crazy formats can help. > The table in aacenc.h (temporary position) tells the encoder what > to put in the bitstream and how to encode. Problem is, the specifications > dont specify anything.

Re: [FFmpeg-devel] AAC encoder 3x performance drop in 3.0 since Oct 2014

2016-03-09 Thread Claudio Freire
On Mon, Feb 29, 2016 at 11:30 PM, Ganesh Ajjanagadde wrote: > On Mon, Feb 22, 2016 at 11:34 PM, Andrey Utkin > wrote: >> Hi! >> I am aware of news that AAC encoder got stable status recently. >> >> But you could find this interesting. We've got an ffmpeg build from >> October 2014, and it perform

Re: [FFmpeg-devel] AAC encoder 3x performance drop in 3.0 since Oct 2014

2016-03-09 Thread Claudio Freire
On Wed, Mar 9, 2016 at 3:52 PM, Reimar Döffinger wrote: > On Wed, Mar 09, 2016 at 02:20:35PM -0300, Claudio Freire wrote: >> On Mon, Feb 29, 2016 at 11:30 PM, Ganesh Ajjanagadde >> wrote: >> > On Mon, Feb 22, 2016 at 11:34 PM, Andrey Utkin >> > wrote: >>

Re: [FFmpeg-devel] AAC optimizations and 3.0

2016-03-10 Thread Claudio Freire
On Thu, Mar 10, 2016 at 8:34 PM, Michael Niedermayer wrote: > Hi all > > if you fix speed regressions of the AAC encoder please backport them > also to release/3.0 > > Thanks Even if that implies much bigger changes? (like the one I commented about aacpsy allocation) _

Re: [FFmpeg-devel] [PATCH] lavc/aacenc_quantization: use cbrt table

2016-03-14 Thread Claudio Freire
On Sun, Mar 13, 2016 at 10:30 PM, Ganesh Ajjanagadde wrote: > /** > * Calculate rate distortion cost for quantizing with given codebook > @@ -105,7 +106,7 @@ static av_always_inline float > quantize_and_encode_band_cost_template( > curbits += 21; >

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc_quantization: Fix undefined behavior and instead detect and print an error

2016-03-29 Thread Claudio Freire
On Tue, Mar 29, 2016 at 10:51 PM, Michael Niedermayer wrote: > This is a hotfix and not a real fix of the underlaying bug > The underlaying bug is ATM not fully understood > > iam not sure if we should apply this or not > > Signed-off-by: Michael Niedermayer > --- > libavcodec/aacenc_quantizatio

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc_quantization: Fix undefined behavior and instead detect and print an error

2016-03-29 Thread Claudio Freire
On Wed, Mar 30, 2016 at 1:18 AM, Claudio Freire wrote: > On Tue, Mar 29, 2016 at 10:51 PM, Michael Niedermayer > wrote: >> This is a hotfix and not a real fix of the underlaying bug >> The underlaying bug is ATM not fully understood >> >> iam not sure if we should

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc_quantization: Fix undefined behavior and instead detect and print an error

2016-03-30 Thread Claudio Freire
On Wed, Mar 30, 2016 at 8:33 AM, Michael Niedermayer wrote: > On Wed, Mar 30, 2016 at 02:04:20AM -0300, Claudio Freire wrote: >> On Wed, Mar 30, 2016 at 1:18 AM, Claudio Freire >> wrote: >> > On Tue, Mar 29, 2016 at 10:51 PM, Michael Niedermayer >> > wrote:

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc_quantization: Fix undefined behavior and instead detect and print an error

2016-03-30 Thread Claudio Freire
On Wed, Mar 30, 2016 at 10:15 AM, Claudio Freire wrote: > On Wed, Mar 30, 2016 at 8:33 AM, Michael Niedermayer > wrote: >> On Wed, Mar 30, 2016 at 02:04:20AM -0300, Claudio Freire wrote: >>> On Wed, Mar 30, 2016 at 1:18 AM, Claudio Freire >>> wrote: >>

Re: [FFmpeg-devel] [PATCH] fate: add aac test which occasionally crashes (Ticket 1784)

2016-04-03 Thread Claudio Freire
On Sat, Apr 2, 2016 at 4:00 PM, Michael Niedermayer wrote: > Ideally that should be fixed before its pushed > > Signed-off-by: Michael Niedermayer > --- > tests/fate/aac.mak | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/tests/fate/aac.mak b/tests/fate/aac.mak > index 32

Re: [FFmpeg-devel] [PATCH] fate: add aac test which occasionally crashes (Ticket 1784)

2016-04-03 Thread Claudio Freire
On Sun, Apr 3, 2016 at 3:05 PM, Claudio Freire wrote: > On Sat, Apr 2, 2016 at 4:00 PM, Michael Niedermayer > wrote: >> Ideally that should be fixed before its pushed >> >> Signed-off-by: Michael Niedermayer >> --- >> tests/fate/aac.mak | 11 +

Re: [FFmpeg-devel] [PATCH] fate: add aac test which occasionally crashes (Ticket 1784)

2016-04-04 Thread Claudio Freire
On Sun, Apr 3, 2016 at 10:41 PM, James Almer wrote: > On 4/3/2016 3:29 PM, Claudio Freire wrote: >> On Sun, Apr 3, 2016 at 3:05 PM, Claudio Freire >> wrote: >>> On Sat, Apr 2, 2016 at 4:00 PM, Michael Niedermayer >>> wrote: >>>> Ideally that shoul

Re: [FFmpeg-devel] [PATCH] fate: add aac test which occasionally crashes (Ticket 1784)

2016-04-06 Thread Claudio Freire
On Mon, Apr 4, 2016 at 9:00 AM, Claudio Freire wrote: >> http://fate.ffmpeg.org/report.cgi?time=20160403222945&slot=x86_64-archlinux-gcc-valgrindundef >> >> No memleaks, but a handful of "Conditional jump or move depends on >> uninitialised value(s)" errors

Re: [FFmpeg-devel] [PATCH] avcodec: Remove libfaac, the internal AAC encoder is better

2016-04-10 Thread Claudio Freire
On Sun, Apr 10, 2016 at 4:13 PM, Michael Niedermayer wrote: > that said, to be blunt, make your encoder be capable to encode as fast > and as good quality as libfaac and after that remove libfaac support > if you want. I could make a small patch that could do just that, I believe. I've always m

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/aacenc_is: Assert that minthr is not 0.0, this would lead to division by 0 later

2016-05-16 Thread Claudio Freire
On Mon, May 16, 2016 at 12:26 PM, Kieran Kunhya wrote: >> Testcase is fate-aac-pred-encode >> >> Signed-off-by: Michael Niedermayer >> --- >> libavcodec/aacenc_is.c |3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/libavcodec/aacenc_is.c b/libavcodec/aacenc_is.c >> index 473897b.

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/aacenc_is: Assert that minthr is not 0.0, this would lead to division by 0 later

2016-05-18 Thread Claudio Freire
On Mon, May 16, 2016 at 4:10 PM, Michael Niedermayer wrote: > yes, > > with the patch fate fails: > > Test aac-pred-encode failed. Look at tests/data/fate/aac-pred-encode.err for > details. > make: *** [fate-aac-pred-encode] Error 134 > > >> >> A threshold of 0 would in theory cause a zeroed band

Re: [FFmpeg-devel] Please help update tasks and mentor/backups for OPW

2014-09-25 Thread Claudio Freire
On Thu, Sep 25, 2014 at 5:54 PM, Carl Eugen Hoyos wrote: > Reynaldo H. Verdejo Pinochet osg.samsung.com> writes: > >> Things that need urgent attention are ensuring listed >> projects are still relevant as well as making sure their >> mentors are still available and willing to take part on >> the

Re: [FFmpeg-devel] [PATCH] psy_snr:Psychoacoustic SNR for audio files

2014-10-31 Thread Claudio Freire
I notice you have tons of c++-isms you should check: On Thu, Oct 30, 2014 at 3:03 PM, Senjuti Kundu wrote: > +int i = 0; > +float* maskingfunc = malloc(tempsize*sizeof(float)); > +maskingfunc[tempsize/2] = exp(-db_attenuation*log(10)); Split declaration and initialization, as explain

Re: [FFmpeg-devel] [PATCH 02/11] aaccoder: remove previous PNS implementation from twoloop

2015-06-27 Thread Claudio Freire
On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > This commit essentially undoes commit > c5d4f87e8427c0952278ec247fa8ab1e6e52 and removes PNS band marking from > the twoloop coder. LGTM, but I wouldn't apply it before #09 ___ ffmpeg

Re: [FFmpeg-devel] [PATCH 06/11] aacpsy: Add energy spread for each band

2015-06-27 Thread Claudio Freire
LGTM On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > -float distortion; > -float perceptual_weight; Those are in fact in disuse. Thought I'd clarify. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman

Re: [FFmpeg-devel] [PATCH 03/11] aaccoder: add intensity stereo coding support for the trellis quantizer

2015-06-27 Thread Claudio Freire
On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > +/* Energy spread threshold value below which no PNS is used, this > corresponds to > + * typically around 17Khz, after which PNS usage decays ending at 19Khz */ > +#define NOISE_SPREAD_THRESHOLD 152234544.0f > + > +/* Above ~1.26*thr

Re: [FFmpeg-devel] [PATCH 11/11] aaccoder: zero ms_mask bands on execution

2015-06-28 Thread Claudio Freire
On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > +memset(cpe->ms_mask, 0, sizeof(uint8_t)*128); sizeof(cpe->ms_mask) would be safer ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 04/11] aaccoder: add intensity stereo support to encode_window_bands_info quantizer

2015-06-28 Thread Claudio Freire
On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > This commit adds support for both PNS and IS (intensity stereo) codebooks to > the encode_window_bands_info() quantizer, used by the faast, faac and anmr > non-default, native coders. This does not mean that both extensions now work

Re: [FFmpeg-devel] [PATCH 05/11] aacenc: add support for coding of intensity stereo scalefactor indices

2015-06-28 Thread Claudio Freire
Seems straightforward enough. LGTM. On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > This commit adds support for the coding of intensity stereo scalefactor > indices. It does not do any marking of such bands and as such does no > functional changes to the encoder. It removes any

Re: [FFmpeg-devel] [PATCH 10/11] aaccoder: implement intensity stereo

2015-06-29 Thread Claudio Freire
On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > +if (dist2 <= dist1) { > +cpe->is_mask[w*16+g] = 1; > +cpe->ch[0].is_ener[w*16+g] = ener1/ener01; > +cpe->ch[1].is_ener[w*16+g] = ener0/ener1; > +

Re: [FFmpeg-devel] [PATCH 09/11] aaccoder: add a new perceptual noise substitution implementation

2015-06-29 Thread Claudio Freire
On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > +if (spread > NOISE_SPREAD_THRESHOLD && > +((sce->zeroes[w*16+g] && energy >= threshold) || > +energy < threshold*(NOISE_LAMBDA_NUMERATOR/lambda))) { > +sce->b

Re: [FFmpeg-devel] [PATCH 06/11] aacpsy: Add energy spread for each band

2015-06-29 Thread Claudio Freire
On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > +++ b/libavcodec/aacpsy.c > @@ -781,6 +781,7 @@ static void psy_3gpp_analyze_channel(FFPsyContext *ctx, > int channel, > > psy_band->threshold = band->thr; > psy_band->energy= band->energy; > +

Re: [FFmpeg-devel] [PATCH 09/11] aaccoder: add a new perceptual noise substitution implementation

2015-06-29 Thread Claudio Freire
On Mon, Jun 29, 2015 at 10:58 PM, Claudio Freire wrote: > On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov > wrote: >> +if (spread > NOISE_SPREAD_THRESHOLD && >> +((sce->zeroes[w*16+g] && energy >= threshold) ||

Re: [FFmpeg-devel] [PATCH 09/11] aaccoder: add a new perceptual noise substitution implementation

2015-06-29 Thread Claudio Freire
On Tue, Jun 30, 2015 at 1:33 AM, Rostislav Pehlivanov wrote: > > Why the need to have "sce->pns_ener[w*16+g] = energy / > sce->ics.group_len[w];", normalization? The energy value is log2'd during > scalefactor indices calculation so it's hardly going to change much. Will do > some tests to see if

Re: [FFmpeg-devel] [PATCH 07/11] aacenc: add support for coding of IS spectral coefficients

2015-06-30 Thread Claudio Freire
LGTM, but it cannot be committed without the others, or a memset to zero of is_mask somewhere at the beginning of each frame (or encoder init). On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov wrote: > This commit adds support for the coding of intensity stereo spectral > coefficients. It a

Re: [FFmpeg-devel] [FFmpeg-cvslog] aacenc: add support for coding of intensity stereo scalefactor indices

2015-07-02 Thread Claudio Freire
ode for PNS and moves it >> into a seperate function which handles setting of scalefactor indices for >> PNS and IS bands. >> >> Reviewed-by: Claudio Freire >> Signed-off-by: Michael Niedermayer >> >> > http://git.videolan.org/gitweb

Re: [FFmpeg-devel] [PATCH v2 1/8] aacpsy: use a different metric for the spread of a band

2015-07-02 Thread Claudio Freire
o code > as noise. The spread[w+g] used before this patch behaved more like a low-pass > filter for PNS band_types, which could mistakingly mark some low frequency > bands as noise. > > Reviewed-by: Claudio Freire > --- > libavcodec/aacpsy.c | 2 +- > 1 file changed, 1

Re: [FFmpeg-devel] [PATCH v2 4/8] aacenc: reset marked IS and M/S bands upon frame encoding

2015-07-02 Thread Claudio Freire
On Thu, Jul 2, 2015 at 3:13 PM, Rostislav Pehlivanov wrote: > This commit resets any bands marked as M/S or IS upon encoding a frame. This > is needed because the arrays may contain some residual information upon > allocation on startup and because there isn't any mechanism to reset the > array

Re: [FFmpeg-devel] [PATCH v2 3/8] aaccoder: fix M/S coding

2015-07-02 Thread Claudio Freire
On Thu, Jul 2, 2015 at 3:13 PM, Rostislav Pehlivanov wrote: > There were some mistakes in the code for M/S stereo, this commit fixes them. > The start variable was not being reset for every window and every access to > the coefficients was incorrect as well. This fixes that by properly > addres

Re: [FFmpeg-devel] [PATCH v2 6/8] aaccoder: add a new perceptual noise substitution implementation

2015-07-02 Thread Claudio Freire
nges from the previous version being that > this version uses the new band->spread metric from aacpsy and normalizes the > energy using the group size. These changes were suggested by Claudio Freire > on the mailing list. Another change is the use of lambda to alter the > frequenc

Re: [FFmpeg-devel] [PATCH v2 7/8] aacenc: add support for coding of IS spectral coefficients

2015-07-02 Thread Claudio Freire
t; marking M/S as present in encode_ms_info() is okay). Much of the changes here > were taken from the decoder and inverted. This commit does not change the > functionality of the decoder as the previous patch in this series zeroes > ms_mask and is_mask. > > Reviewed-by: Cla

Re: [FFmpeg-devel] [PATCH v2 8/8] aacenc: implement Intensity Stereo encoding support

2015-07-02 Thread Claudio Freire
On Thu, Jul 2, 2015 at 3:13 PM, Rostislav Pehlivanov wrote: > This commit implements intensity stereo coding support to the native aac > encoder. This is a way to increase the efficiency of the encoder by zeroing > the right channel's spectral coefficients (in a channel pair) and rederiving > t

Re: [FFmpeg-devel] [PATCH v2 2/8] aaccoder: remove previous PNS implementation from twoloop

2015-07-03 Thread Claudio Freire
On Thu, Jul 2, 2015 at 3:13 PM, Rostislav Pehlivanov wrote: > This commit undoes commit c5d4f87e8427c0952278ec247fa8ab1e6e52 and > removes PNS band marking from the twoloop coder, which has been reimplemented > in a better way in this series of patches. LGTM as long as the rest of the patc

Re: [FFmpeg-devel] [PATCH v2 5/8] aacenc: use the new function for setting special band scalefactor indices

2015-07-03 Thread Claudio Freire
On Thu, Jul 2, 2015 at 3:13 PM, Rostislav Pehlivanov wrote: > This commit enables the function added with commit 7c10b87 and uses that new > function for setting any special scalefactor indices. This commit does not > change the behaviour of the encoder since no bands are being marked as either

[FFmpeg-devel] [PATCH] AAC Encoder: clipping avoidance

2015-07-17 Thread Claudio Freire
cally weighted error would make for a representative test, so that will be left for a future patch. From 9da94f02574b34025a56c225c11269802f49949b Mon Sep 17 00:00:00 2001 From: Claudio Freire Date: Fri, 17 Jul 2015 05:47:25 -0300 Subject: [PATCH] AAC Encoder: clipping avoidance Avoid clipping d

Re: [FFmpeg-devel] [PATCH] AAC Encoder: clipping avoidance

2015-07-17 Thread Claudio Freire
On Fri, Jul 17, 2015 at 7:36 PM, Michael Niedermayer wrote: >> diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c >> index f05f51b..6ff95b1 100644 >> --- a/libavcodec/aacenc.c >> +++ b/libavcodec/aacenc.c >> @@ -46,6 +46,7 @@ >> #include "psymodel.h" >> >> #define AAC_MAX_CHANNELS 6 >> +#def

Re: [FFmpeg-devel] [PATCH] AAC Encoder: clipping avoidance

2015-07-17 Thread Claudio Freire
On Fri, Jul 17, 2015 at 7:09 PM, Rostislav Pehlivanov wrote: >>attachment.bin:357: trailing whitespace. >>attachment.bin:436: trailing whitespace. >>attachment.bin:454: trailing whitespace. Oops > You should probably configure your editor to strip that off automatically. I don't like it to be d

Re: [FFmpeg-devel] [PATCH 3/3] aaccoder: Improve IS phase rejection

2015-07-17 Thread Claudio Freire
On Fri, Jul 17, 2015 at 6:20 PM, Rostislav Pehlivanov wrote: > This commit adds a slightly more robust way of determining whether the phases > match or are too different for IS to be used. > --- > libavcodec/aaccoder.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git

Re: [FFmpeg-devel] [PATCH] AAC Encoder: clipping avoidance

2015-07-17 Thread Claudio Freire
On Fri, Jul 17, 2015 at 8:42 PM, Michael Niedermayer wrote: >> If you mean a transition in time, I don't think it makes any >> difference. 0.95 is a ~0.5db change in intensity, which ought to be >> inaudible, and windowing will already take care to make the transition >> smooth. And the logic woul

Re: [FFmpeg-devel] [PATCH 3/3] aaccoder: Improve IS phase rejection

2015-07-17 Thread Claudio Freire
On Fri, Jul 17, 2015 at 10:32 PM, Rostislav Pehlivanov wrote: > That previous idea discriminated way too many bands for it to be actually > useful. And it would require special cases for coefficients which 'blow up' > and have an insane value. ... >> What happened to the idea of comparing the ener

Re: [FFmpeg-devel] [PATCH 1/3] aacdec: move the LTP and TNS tables out of aacdectab.h

2015-07-20 Thread Claudio Freire
On Mon, Jul 20, 2015 at 4:15 PM, Rostislav Pehlivanov wrote: > Yep, with this patch compute_lpc_coefs() (referenced in aacdec_template.c > when applying TNS) in ltp.c prints a warning when compiling the fixed > decoder, which is fine since it changed a type from INTFLOAT to float. > >>And it will

Re: [FFmpeg-devel] [PATCH 1/3] aacdec: move the LTP and TNS tables out of aacdectab.h

2015-07-20 Thread Claudio Freire
On Mon, Jul 20, 2015 at 8:50 AM, Nedeljko Babic wrote: >>This commit moves the tables required for encoding and decoding >>LTP and TNS AAC files out of the decoder's standalone tables file >>and into the shared aactab.h, where they can be used by both the >>encoder and the decoder. >> >>This commi

Re: [FFmpeg-devel] [PATCH 3/3] aaccoder: Improve IS phase rejection

2015-07-20 Thread Claudio Freire
On Fri, Jul 17, 2015 at 11:19 PM, Rostislav Pehlivanov wrote: >>But even if not used for avoding I/S, it can be used to pick whether >>to invert the phases, where it was clearly more stable. > In case the phase is very clearly wrong then there will be an increase in > the distortion which should c

Re: [FFmpeg-devel] [PATCH 2/3] aacenc: move the generation of ff_aac_pow34sf_tab[]

2015-07-20 Thread Claudio Freire
This will need rebasing, the fixed tablegen got in recently On Fri, Jul 17, 2015 at 6:20 PM, Rostislav Pehlivanov wrote: > This commit moves the generation of ff_aac_pow34sf_tab[] out of the > encoder and into the table generator. The original commit log for > this table in 2011 actually mentions

Re: [FFmpeg-devel] [PATCH] AAC Encoder: clipping avoidance

2015-07-20 Thread Claudio Freire
the transition Attached is a patch with something like that. 1. It measures per-window minimum clip avoidance factor 2. Computes a whole-frame factor (minimum of all) 3. Applies the clip avoidance factor to the whole frame (to make it smooth and almost linear, and avoid adding harmonic distortion).

Re: [FFmpeg-devel] [PATCH] AAC Encoder: clipping avoidance

2015-07-20 Thread Claudio Freire
On Mon, Jul 20, 2015 at 11:39 PM, Claudio Freire wrote: > On Fri, Jul 17, 2015 at 8:42 PM, Michael Niedermayer > wrote: >>> If you mean a transition in time, I don't think it makes any >>> difference. 0.95 is a ~0.5db change in intensity, which ought to be >

Re: [FFmpeg-devel] [PATCH 2/3] aacenc: move the generation of ff_aac_pow34sf_tab[]

2015-07-20 Thread Claudio Freire
On Mon, Jul 20, 2015 at 10:05 PM, Claudio Freire wrote: > This will need rebasing, the fixed tablegen got in recently > > > On Fri, Jul 17, 2015 at 6:20 PM, Rostislav Pehlivanov > wrote: >> This commit moves the generation of ff_aac_pow34sf_tab[] out of the >>

Re: [FFmpeg-devel] [PATCH 1/2] aaccoder_twoloop: Mark sfdiff as av_unused

2015-11-08 Thread Claudio Freire
On Sun, Nov 8, 2015 at 2:01 AM, Timothy Gu wrote: > --- > libavcodec/aaccoder_twoloop.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/aaccoder_twoloop.h b/libavcodec/aaccoder_twoloop.h > index e53257f..328d7c8 100644 > --- a/libavcodec/aaccoder_twoloop.h > ++

Re: [FFmpeg-devel] [PATCH 1/2] aaccoder_twoloop: Mark sfdiff as av_unused

2015-11-25 Thread Claudio Freire
On Tue, Nov 10, 2015 at 1:41 AM, Timothy Gu wrote: > On Sun, Nov 8, 2015 at 9:28 AM Claudio Freire > wrote: >> >> This particular piece of code is going to disappear soon, so not sure >> it's worth applying the patch. > > > Oh, okay then. Funny thing, in

[FFmpeg-devel] [PATCH] AAC encoder: improve SF range utilization

2015-11-29 Thread Claudio Freire
weak makes PNS much less aggressive, though it can still use some further tweaks. From e236ab0021eb28012ed05f46e7e520b5cbec413e Mon Sep 17 00:00:00 2001 From: Claudio Freire Date: Sun, 29 Nov 2015 16:33:31 -0300 Subject: [PATCH] AAC encoder: improve SF range utilization This patch does 4 things

Re: [FFmpeg-devel] [PATCH] AAC encoder: improve SF range utilization

2015-11-30 Thread Claudio Freire
On Mon, Nov 30, 2015 at 12:27 PM, Rostislav Pehlivanov wrote: > On Sun, 2015-11-29 at 16:54 -0300, Claudio Freire wrote: >> Before pushing this, I'd like some feedback, >> especially about >> the implementation of point 3. I'm not sure the AAC encoder >> sett

Re: [FFmpeg-devel] [PATCH] AAC encoder: improve SF range utilization

2015-11-30 Thread Claudio Freire
On Mon, Nov 30, 2015 at 1:04 PM, Hendrik Leppkes wrote: > On Mon, Nov 30, 2015 at 4:50 PM, Claudio Freire > wrote: >> On Mon, Nov 30, 2015 at 12:27 PM, Rostislav Pehlivanov >> wrote: >>> On Sun, 2015-11-29 at 16:54 -0300, Claudio Freire wrote: >>>> Befo

Re: [FFmpeg-devel] [PATCH] AAC encoder: improve SF range utilization

2015-11-30 Thread Claudio Freire
On Mon, Nov 30, 2015 at 2:20 PM, Rostislav Pehlivanov wrote: > On Mon, 2015-11-30 at 12:50 -0300, Claudio Freire wrote: >> Also I don't see how a static var would help or even be correct here. >> Perhaps you meant something else? > static uint8_t cond1 = param1 &&

Re: [FFmpeg-devel] [PATCH] AAC encoder: improve SF range utilization

2015-11-30 Thread Claudio Freire
On Mon, Nov 30, 2015 at 1:04 PM, Hendrik Leppkes wrote: > On Mon, Nov 30, 2015 at 4:50 PM, Claudio Freire > wrote: >> On Mon, Nov 30, 2015 at 12:27 PM, Rostislav Pehlivanov >> wrote: >>> On Sun, 2015-11-29 at 16:54 -0300, Claudio Freire wrote: >>>> Befo

Re: [FFmpeg-devel] [PATCH] AAC encoder: improve SF range utilization

2015-12-01 Thread Claudio Freire
On Tue, Dec 1, 2015 at 10:47 PM, Michael Niedermayer wrote: >> libavcodec/aaccoder.c | 60 -- >> libavcodec/aaccoder_twoloop.h | 136 >> -- >> libavcodec/aacenc.c |2 >> libavcodec/aacenc_is.c| 11 ++- >>

Re: [FFmpeg-devel] [PATCH] AAC encoder: improve SF range utilization

2015-12-02 Thread Claudio Freire
On Tue, Dec 1, 2015 at 11:12 PM, Claudio Freire wrote: > On Tue, Dec 1, 2015 at 10:47 PM, Michael Niedermayer wrote: >>> libavcodec/aaccoder.c | 60 -- >>> libavcodec/aaccoder_twoloop.h | 136 >>> -

[FFmpeg-devel] AAC experimental flag: the sequel

2015-12-02 Thread Claudio Freire
So, here comes the discussion again. This time, the AAC encoder is in good shape. It's not perfect. I have a list of known bugs to address that still has some issues, but I'm not really certain whether they should block the flag's removal. The bugs will be addressed in time, but maybe the encoder

Re: [FFmpeg-devel] AAC experimental flag: the sequel

2015-12-02 Thread Claudio Freire
On Wed, Dec 2, 2015 at 12:50 PM, Hendrik Leppkes wrote: > On Wed, Dec 2, 2015 at 4:42 PM, Clément Bœsch wrote: >> On Wed, Dec 02, 2015 at 12:37:00PM -0300, Claudio Freire wrote: >>> So, here comes the discussion again. >>> >>> This time, the AAC encoder is in

Re: [FFmpeg-devel] [PATCH] aacenc: remove experimental flag

2015-12-02 Thread Claudio Freire
On Wed, Dec 2, 2015 at 4:14 PM, Rostislav Pehlivanov wrote: > This commit removes the experimental flag from the native AAC Encoder > and thus makes it the default. > > After a lot of work, done by myself and Claudio Freire, the quality of > this encoder rivals and surpasses lib

Re: [FFmpeg-devel] [PATCH] aacenc: mark coders other than twoloop as experimental

2015-12-02 Thread Claudio Freire
On Wed, Dec 2, 2015 at 4:47 PM, Rostislav Pehlivanov wrote: > This commit marks any coders beside twoloop as experimental and gives > out a warning that some of they might be silently removed in the future. > > Users are highly encouraged to use the twoloop coder, which is the > default. > --- >

Re: [FFmpeg-devel] AAC experimental flag: the sequel

2015-12-02 Thread Claudio Freire
On Wed, Dec 2, 2015 at 12:51 PM, Ganesh Ajjanagadde wrote: > On Wed, Dec 2, 2015 at 10:37 AM, Claudio Freire > wrote: >> So, here comes the discussion again. >> >> This time, the AAC encoder is in good shape. It's not perfect. I have >> a list of known bugs to

Re: [FFmpeg-devel] [PATCH] aacenc: mark coders other than twoloop as experimental

2015-12-03 Thread Claudio Freire
On Thu, Dec 3, 2015 at 3:01 PM, Rostislav Pehlivanov wrote: > Any opposition? Not from me ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] aaccoder: prevent crash of anmr coder

2015-12-04 Thread Claudio Freire
On Fri, Dec 4, 2015 at 2:23 PM, Andreas Cadhalpun wrote: > If minq is negative, the range of sf_idx can be larger than > SCALE_MAX_DIFF allows, causing assertion failures later in > encode_scale_factors. > > Signed-off-by: Andreas Cadhalpun > --- > libavcodec/aaccoder.c | 2 +- > 1 file changed,

Re: [FFmpeg-devel] [PATCH] aaccoder: prevent crash of anmr coder

2015-12-04 Thread Claudio Freire
On Fri, Dec 4, 2015 at 9:21 PM, Andreas Cadhalpun wrote: > On 04.12.2015 23:49, Claudio Freire wrote: >> On Fri, Dec 4, 2015 at 2:23 PM, Andreas Cadhalpun >> wrote: >>> If minq is negative, the range of sf_idx can be larger than >>> SCALE_MAX_DIFF allows, ca

Re: [FFmpeg-devel] [PATCH] aaccoder: prevent crash of anmr coder

2015-12-04 Thread Claudio Freire
On Fri, Dec 4, 2015 at 9:52 PM, Andreas Cadhalpun wrote: > Pushed. > >> Do you have the problematic input at hand? If so, send it privately. > > Sure, I'll send you a sample. > >> If I find a better solution I may try to push that instead, or at >> least add the file to fate tests. > > Thanks for

Re: [FFmpeg-devel] [PATCH]lavc/libvo-aac: Mark the encoder as experimental

2015-12-09 Thread Claudio Freire
On Wed, Dec 9, 2015 at 11:15 AM, Carl Eugen Hoyos wrote: > On Sunday 06 December 2015 01:31:17 am Carl Eugen Hoyos wrote: >> Hi! >> >> I prefer attached patch over removing the encoder immediately. > > No opinions? > > Carl Eugen LGTM, but I don't use the libvo-aac, so... :-p ___

Re: [FFmpeg-devel] [PATCH] aaccoder: prevent crash of anmr coder

2015-12-09 Thread Claudio Freire
On Sun, Dec 6, 2015 at 6:36 PM, Andreas Cadhalpun wrote: > The other is a regression since 01ecb71, so I hope you know how to fix that. > In search_for_pns in libavcodec/aaccoder.c: > for (w = 0; w < sce->ics.num_windows; w += sce->ics.group_len[w]) { > [...] > for (g = 0; g < sce->ic

Re: [FFmpeg-devel] [PATCH] aaccoder: prevent crash of anmr coder

2015-12-09 Thread Claudio Freire
On Wed, Dec 9, 2015 at 4:42 PM, Andreas Cadhalpun wrote: >>> [...] >>> for (w2 = 0; w2 < sce->ics.group_len[w]; w2++) { >>> [...] >>> } > > Now we are after the w2-loop and thus: > w2 = sce->ics.group_len[w] = 2 > Ah, I see, it's outside the loop! Pushing a fix.

Re: [FFmpeg-devel] [PATCH] aaccoder: prevent crash of anmr coder

2015-12-09 Thread Claudio Freire
On Wed, Dec 9, 2015 at 5:29 PM, Claudio Freire wrote: > On Wed, Dec 9, 2015 at 4:42 PM, Andreas Cadhalpun > wrote: >>>> [...] >>>> for (w2 = 0; w2 < sce->ics.group_len[w]; w2++) { >>>> [...] >>>> } >> >

Re: [FFmpeg-devel] [PATCH] aacenc: remove depricated avctx->frame_bits use

2015-12-18 Thread Claudio Freire
On Fri, Dec 18, 2015 at 10:59 AM, Rostislav Pehlivanov wrote: > The type of last_frame_pb_count was chosen to be an int since overflow > is impossible (the spec says the maximum bits per frame is 6144 per > channel and the encoder checks for that). LGTM __

[FFmpeg-devel] [PATCH] AAC encoder: fix assertion error with prediction

2015-12-29 Thread Claudio Freire
creating/removing zeroes, perhaps an overly conservative approach, but a safe one. More permissive and sophisticated approaches may be attempted in the future. Attached From dbda62b2a59054a76e317850a4a0a7037ca3cc02 Mon Sep 17 00:00:00 2001 From: Claudio Freire Date: Tue, 29 Dec 2015 05:18:40 -0300

Re: [FFmpeg-devel] [PATCH] AAC encoder: fix assertion error with prediction

2015-12-29 Thread Claudio Freire
On Tue, Dec 29, 2015 at 6:18 AM, Rostislav Pehlivanov wrote: > Wouldn't it be simpler to just check if the maximum codebook was 0 after > calculating cost1 and skipping the rest of the code in the loop? > > On 29 December 2015 at 08:23, Claudio Freire wrote: > >>

Re: [FFmpeg-devel] [PATCH] AAC encoder: fix assertion error with prediction

2015-12-30 Thread Claudio Freire
On Tue, Dec 29, 2015 at 1:12 PM, Claudio Freire wrote: > On Tue, Dec 29, 2015 at 6:18 AM, Rostislav Pehlivanov > wrote: >> Wouldn't it be simpler to just check if the maximum codebook was 0 after >> calculating cost1 and skipping the rest of the code in the loop? >>

Re: [FFmpeg-devel] [PATCH] AAC encoder: fix assertion error with prediction

2016-01-13 Thread Claudio Freire
On Wed, Dec 30, 2015 at 10:44 PM, Claudio Freire wrote: > On Tue, Dec 29, 2015 at 1:12 PM, Claudio Freire > wrote: >> On Tue, Dec 29, 2015 at 6:18 AM, Rostislav Pehlivanov >> wrote: >>> Wouldn't it be simpler to just check if the maximum codebook was 0 after &g

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc_is: replace pow(x, 0.75) by x/sqrtf(sqrtf(x))

2016-01-13 Thread Claudio Freire
On Mon, Jan 11, 2016 at 7:23 PM, Ganesh Ajjanagadde wrote: > This is quite an accurate approximation; testing shows ~ 2ulp error in > the floating point result. Tested with FATE. > > Alternatively, if one wants "full accuracy", one can use powf, or sqrt > instead of sqrtf. With powf, one gets 1 ul

Re: [FFmpeg-devel] [PATCH] lavc/aacenc: use isfinite to simplify isnan/isinf logic

2016-01-14 Thread Claudio Freire
On Thu, Jan 14, 2016 at 7:57 PM, Ganesh Ajjanagadde wrote: > Signed-off-by: Ganesh Ajjanagadde > --- > libavcodec/aacenc.c | 17 + > 1 file changed, 9 insertions(+), 8 deletions(-) > > diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c > index 9a7d3a8..2e0db7d 100644 > --- a/

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc: Check all coefficients for finiteness

2016-01-20 Thread Claudio Freire
On Wed, Jan 20, 2016 at 11:05 AM, Michael Niedermayer wrote: > From: Michael Niedermayer > > This is needed as near infinite values on the input side result in only some > output to be non finite. > Also it may still be insufficient if subsequent computations overflow > > Fixes null pointer deref

Re: [FFmpeg-devel] [PATCH] avcodec: Remove libvo-aacenc support.

2016-01-29 Thread Claudio Freire
On Fri, Jan 29, 2016 at 1:08 AM, Timothy Gu wrote: > On Sun, Jan 24, 2016 at 04:33:31PM +, Kieran Kunhya wrote: >> The internal encoder is superior to libvo-aacenc. >> --- >> configure | 6 -- >> doc/encoders.texi | 25 -- >> doc/general.texi | 8 -- >

Re: [FFmpeg-devel] trying ffprobe on AAC file with LATM fails

2015-07-21 Thread Claudio Freire
On Mon, Jul 20, 2015 at 5:08 AM, Venelin Efremov wrote: > The error message I get from the latest git head is: > [aac_latm @ 0x3a226e0] Non-byte-aligned audio-specific config is not > implemented. Update your FFmpeg version to the newest one from Git. If the > problem still occurs, it means that y

Re: [FFmpeg-devel] trying ffprobe on AAC file with LATM fails

2015-07-21 Thread Claudio Freire
On Tue, Jul 21, 2015 at 2:50 PM, Claudio Freire wrote: > On Mon, Jul 20, 2015 at 5:08 AM, Venelin Efremov > wrote: >> The error message I get from the latest git head is: >> [aac_latm @ 0x3a226e0] Non-byte-aligned audio-specific config is not >> implemented. Update yo

Re: [FFmpeg-devel] [PATCH 1/3] aacdec: move the LTP and TNS tables out of aacdectab.h

2015-07-22 Thread Claudio Freire
On Wed, Jul 22, 2015 at 6:18 AM, Nedeljko Babic wrote: >>On Mon, Jul 20, 2015 at 8:50 AM, Nedeljko Babic >> wrote: This commit moves the tables required for encoding and decoding LTP and TNS AAC files out of the decoder's standalone tables file and into the shared aactab.h, where they

Re: [FFmpeg-devel] [PATCH] AAC Encoder: clipping avoidance

2015-07-29 Thread Claudio Freire
On Wed, Jul 29, 2015 at 4:15 PM, Michael Niedermayer wrote: > On Mon, Jul 27, 2015 at 07:28:35PM +0200, Michael Niedermayer wrote: >> On Mon, Jul 20, 2015 at 11:40:54PM -0300, Claudio Freire wrote: >> > On Mon, Jul 20, 2015 at 11:39 PM, Claudio Freire >> > wrote: >

Re: [FFmpeg-devel] [PATCH 1/6] aacenc: remove redundant argument from coder functions

2015-07-31 Thread Claudio Freire
On Wed, Jul 29, 2015 at 1:44 AM, Rostislav Pehlivanov wrote: > This commit removes a redundant argument from the functions in aaccoder. > The argument lambda was redundant as it was just a copy of s->lambda, > to which all functions have access to anyway. This cleans up the function > pointers a b

Re: [FFmpeg-devel] [PATCH 1/6] aacenc: remove redundant argument from coder functions

2015-08-01 Thread Claudio Freire
On Fri, Jul 31, 2015 at 9:56 PM, Michael Niedermayer wrote: > > Rostislav, Claudio > please both of you send me your public SSH keys, i think you both > should have git write access Sent mine on a private email. Let me know if you didn't get it. ___ ffm

Re: [FFmpeg-devel] [PATCH 2/6] aacenc: Improve Intensity Stereo phase detection

2015-08-04 Thread Claudio Freire
On Wed, Jul 29, 2015 at 1:44 AM, Rostislav Pehlivanov wrote: > +if (cpe->ms_mode) > +phase = 1 - 2 * cpe->ms_mask[w*16+g]; Shouldn't it be ? phase *= 1 - ... ; phase is an argument, the original code would step on it, with a value that doesn't depend on phase, so it would fail to e

Re: [FFmpeg-devel] [PATCH 3/6] aacenc: Move local encoder specific tables to a separate file

2015-08-07 Thread Claudio Freire
On Wed, Jul 29, 2015 at 1:44 AM, Rostislav Pehlivanov wrote: > This commit moves any tables specific to the encoder from aacenc > and aaccoder to a separate file called 'aacenctab.c/.h'. > This was done as a clean up attempt as the encoder was filled with > tables pasted in between functions which

Re: [FFmpeg-devel] [PATCH 4/6] aacenc: Move small misc. functions to a separate file

2015-08-10 Thread Claudio Freire
On Wed, Jul 29, 2015 at 1:44 AM, Rostislav Pehlivanov wrote: > As well as tables littered everywhere, functions were spread > out all across the encoder's files. This moves them to a single > place where they can be used by either the encoder's main files > or additional encoder files. Additionall

Re: [FFmpeg-devel] [PATCH 6/6] aacenc: Move Intensity Stereo search functions to a new file

2015-08-10 Thread Claudio Freire
On Wed, Jul 29, 2015 at 1:44 AM, Rostislav Pehlivanov wrote: > With the new method to determine the phase, the functions > got sufficiently large to have their own file. > There are absolutely no changes from the IS patch from > this patchset, this commit simply moves it out of aaccoder.c > Encodi

Re: [FFmpeg-devel] [PATCH 02/10] aacenc: Add missing ff_ prefixes

2015-08-21 Thread Claudio Freire
On Sat, Aug 22, 2015 at 1:01 AM, Timothy Gu wrote: > On Fri, Aug 21, 2015 at 10:49:01PM -0400, Ganesh Ajjanagadde wrote: > > There are too many entries here for me to verify which ones are exposed, > etc. > > I trust you identified them correctly. > > To the best of my knowledge, yes. To anyone r

Re: [FFmpeg-devel] [PATCH 02/10] aacenc: Add missing ff_ prefixes

2015-08-24 Thread Claudio Freire
On Sat, Aug 22, 2015 at 4:51 AM, Nicolas George wrote: > Le quintidi 5 fructidor, an CCXXIII, Claudio Freire a écrit : > > They were included in the symbol table but only as local, the > libavcodec.v > > file makes sure to make everything not explicitly mentioned fo

Re: [FFmpeg-devel] [RFC]Remove experimental flag from aac encoder

2015-08-31 Thread Claudio Freire
On Mon, Aug 31, 2015 at 6:59 AM, Robert Krüger wrote: > On Mon, Aug 31, 2015 at 10:44 AM, Carl Eugen Hoyos wrote: > >> Hi! >> >> I didn't test myself but iiuc, the aac encoder produces better >> quality than all other libavcodec audio encoders and better >> quality than the libvo-aac encoder that

  1   2   >