Commit 16dd93ab authored by Michael Niedermayer's avatar Michael Niedermayer

quick and dirty PSNR check for audio

Originally committed as revision 3902 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent bd9ea6a4
......@@ -126,18 +126,18 @@ stddev: 10.99 PSNR:27.30 bytes:7602176
21f8ff9f1daacd9133683bb4ea0f50a4 *./data/a-mp2.mp2
95712 ./data/a-mp2.mp2
91ab1b253cd360037d3fca67b795aba8 *./data/out.wav
1055276 ./data/out.wav
stddev:117.02 PSNR: 6.75 bytes:1054720
d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm
97983 ./data/a-ac3.rm
2d081e0e1f2e9bd4514e9ac8ec41884c *./data/a-g726.wav
24268 ./data/a-g726.wav
a719ab6d47d8d601520edb13bf6136b4 *./data/out.wav
96940 ./data/out.wav
stddev:134.28 PSNR: 5.56 bytes:96256
bdc512b78e2ccb1d815aec08794650eb *./data/a-adpcm_ima.wav
266288 ./data/a-adpcm_ima.wav
1316b03da3bdc8df9785c7995e3c9b2a *./data/out.wav
1056684 ./data/out.wav
stddev:129.55 PSNR: 5.87 bytes:1054720
d2eee867856d2bdb6d08e936d4ceec0c *./data/a-adpcm_ms.wav
267308 ./data/a-adpcm_ms.wav
91a84bb4f319a3a0bf0c0441b3d3a529 *./data/out.wav
1056572 ./data/out.wav
stddev: 73.79 PSNR:10.76 bytes:1054720
......@@ -86,6 +86,7 @@ raw_dst="$datadir/out.yuv"
raw_ref="$datadir/ref.yuv"
pcm_src="asynth1.sw"
pcm_dst="$datadir/out.wav"
pcm_ref="$datadir/ref.wav"
if [ X"`echo | md5sum 2> /dev/null`" != X ]; then
do_md5sum() { md5sum -b $1; }
elif [ -x /sbin/md5 ]; then
......@@ -108,6 +109,8 @@ do_ffmpeg()
do_md5sum $f >> $logfile
if [ $f = $raw_dst ] ; then
$tiny_psnr $f $raw_ref >> $logfile
elif [ $f = $pcm_dst ] ; then
$tiny_psnr $f $pcm_ref >> $logfile
else
wc -c $f >> $logfile
fi
......@@ -144,6 +147,7 @@ echo "ffmpeg benchmarks" > $benchfile
###################################
# generate reference for quality check
do_ffmpeg_nocheck $raw_ref -y -f pgmyuv -i $raw_src -an -f rawvideo $raw_ref
do_ffmpeg_nocheck $pcm_ref -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -f wav $pcm_ref
###################################
if [ -n "$do_mpeg" ] ; then
......
......@@ -126,18 +126,18 @@ stddev: 3.43 PSNR:37.39 bytes:7602176
21f8ff9f1daacd9133683bb4ea0f50a4 *./data/a-mp2.mp2
95712 ./data/a-mp2.mp2
91ab1b253cd360037d3fca67b795aba8 *./data/out.wav
1055276 ./data/out.wav
stddev:117.02 PSNR: 6.75 bytes:1054720
d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm
97983 ./data/a-ac3.rm
2d081e0e1f2e9bd4514e9ac8ec41884c *./data/a-g726.wav
24268 ./data/a-g726.wav
a719ab6d47d8d601520edb13bf6136b4 *./data/out.wav
96940 ./data/out.wav
stddev:134.28 PSNR: 5.56 bytes:96256
bdc512b78e2ccb1d815aec08794650eb *./data/a-adpcm_ima.wav
266288 ./data/a-adpcm_ima.wav
1316b03da3bdc8df9785c7995e3c9b2a *./data/out.wav
1056684 ./data/out.wav
stddev:129.55 PSNR: 5.87 bytes:1054720
d2eee867856d2bdb6d08e936d4ceec0c *./data/a-adpcm_ms.wav
267308 ./data/a-adpcm_ms.wav
91a84bb4f319a3a0bf0c0441b3d3a529 *./data/out.wav
1056572 ./data/out.wav
stddev: 73.79 PSNR:10.76 bytes:1054720
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment