[Ffmpeg-devel] [RFC] rms calculator

Michael Niedermayer michaelni
Sun Mar 26 21:56:57 CEST 2006


On Sun, Mar 26, 2006 at 05:39:17PM +0000, Benjamin Larsson wrote:
> Attached is a Root mean square(rms) calculator that can be used to
> compare 2 wav files. It is based on information from
> http://www.underbit.com/resources/mpeg/audio/compliance/.
> A test run with a wma file decoded by ffmpeg with the latest wma tables
> patch and one from mplayer without it, gives the attached output
> (mplayer file as reference).
> There are 2 values per channel, first the accumulated square error sum
> and then the accumulated rms for the channel.
> As can be seen in the testrun file, the last 4 entrys are bogus. That is
> because the file lengths aren't the same.
> The intent is add this to the tests dir for use in compliance and
> regressions tests of audio codecs.

tiny_psnr isnt good enough?

>     struct wave_header srcwh;
>     struct wave_header tstwh;
>     // read in the waveheader of the source and the test file
>     fread(&srcwh,sizeof(struct wave_header),1,src);
>     fread(&tstwh,sizeof(struct wave_header),1,tst);

ugh, you know this isnt portable ...



More information about the ffmpeg-devel mailing list