[MPlayer-dev-eng] [PATCH] fix for -srate bug

Ed Wildgoose lists at wildgooses.com
Thu Oct 21 01:14:24 CEST 2004


>next try :)
>  
>
....

>    libavcodec 22bit coeff, 2.5x longer filter, linear interpolation between 
>polyphase entries
>    Worst case Signal-to-Noise Ratio : 108.65 dB.
>    Worst case conversion rate       : 327680 samples/sec.
>    Measured -3dB rolloff point      : 97.02 %
>
>    libavcodec 22bit coeff, 16x longer filter, linear interpolation between 
>polyphase entries
>    Worst case Signal-to-Noise Ratio : 104.81 dB.
>    Worst case conversion rate       : 43116 samples/sec.
>    Measured -3dB rolloff point      : 99.51 %
>
>the difference for the default filter is probably caused by a 10l bugfix 
>(padding samples wherent memset(0))
>
>wc -l libavcodec/resample2.c
>247 libavcodec/resample2.c
>
>cat libsamplerate-0.1.2/src/*.{c,h} | wc -l
>26989
>
>[...]
>  
>

Wow, I am extremely hooked!  Can you send me (privately?) your latest 
diff for this test please? (and to libavcodec)

I would love to see such a filter added to mplayer (perhaps as option 3 
to resample?).  Since libavcodec is used in other projects like mythtv, 
it would be very interesting to switch out libsamplerate and use this 
instead.

On thinking about this for two seconds longer though, I will have to 
have a closer look at the test code.  Assuming 16 bit input(?) then it's 
curious to see that you are getting more than 96dB SNR?

Nice work though!  Would you be prepared to help me a little in getting 
this worked in as a new resampler option please?

Cheers

Ed W




More information about the MPlayer-dev-eng mailing list