[FFmpeg-devel] [PATCH] swresample/resample: use uniform normalization

Muhammad Faiz mfcc64 at gmail.com
Fri Mar 3 10:58:11 EET 2017


On Wed, Mar 1, 2017 at 10:24 PM, Muhammad Faiz <mfcc64 at gmail.com> wrote:
> this gives better frequency response
>
> update swresample fate and other fates
> that depend on resampling
>
> Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
> ---
>  libswresample/resample.c     |  14 +--
>  tests/fate/libswresample.mak | 276 +++++++++++++++++++++----------------------
>  tests/ref/acodec/roqaudio    |   2 +-
>  tests/ref/acodec/s302m       |   6 +-
>  tests/ref/lavf/dv_fmt        |   8 +-
>  tests/ref/lavf/gxf           |   8 +-
>  tests/ref/lavf/mxf           |  12 +-
>  7 files changed, 163 insertions(+), 163 deletions(-)
>

Test case, from 44100 to 705600 (16*44100)
ffmpeg -filter_complex "aevalsrc='if(n-300,0,1)',
aresample=osr=705600:filter_size=16" -f f32le - | ./freq-resp >
freq-resp.txt


gnuplot result attached
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resp.png
Type: image/png
Size: 47227 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170303/05341e60/attachment.png>


More information about the ffmpeg-devel mailing list