[FFmpeg-devel] [PATCH] libavfilter: improve atempo audio quality

Michael Niedermayer michaelni at gmx.at
Tue Jun 19 17:32:44 CEST 2012


On Tue, Jun 19, 2012 at 09:25:47AM -0600, Pavel Koshevoy wrote:
> On 6/17/2012 4:45 PM, pkoshevoy at gmail.com wrote:
> >From: Pavel Koshevoy <pkoshevoy at gmail.com>
> >
> >Reduce audio fragment alignment jitter by penalizing alignment
> >correction offsets that deviate too much from the target offset.
> >This is accomplished by multiplying the cross correlation search
> >window with a quadratic function.
> >
> >Signed-off-by: Pavel Koshevoy <pavel at homestead.aragog.com>
> >---
> >  libavfilter/af_atempo.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> >diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c
> >index 1ccc3f5..92390cf 100644
> >--- a/libavfilter/af_atempo.c
> >+++ b/libavfilter/af_atempo.c
> >@@ -654,7 +654,7 @@ static int yae_align(AudioFragment *frag,
> >          // normalize:
> >          FFTSample drifti = (FFTSample)(drift + i);
> >-        metric *= drifti;
> >+        metric *= drifti * (FFTSample)(i - i0) * (FFTSample)(i1 - i);
> >          if (metric > best_metric) {
> >              best_metric = metric;
> 
> 
> Hi, could someone apply this, please?

applied

note, if you have a public git clone then its easier to merge changes
(will happen quicker and lower chance of being forgotten)
and you can easily continue working on top of the changes there or
modify the not yet merged changes until its merged

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120619/46a458d3/attachment.asc>


More information about the ffmpeg-devel mailing list