diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-01-30 13:26:11 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-30 13:26:11 +0000 |
commit | 16dd93ab6adbe1ac330212e70a0b7538b4ec571b (patch) | |
tree | 28a51e7fb3965628cf40d26178c349e6d849e2a1 /tests/regression.sh | |
parent | bd9ea6a4629622fdc119ded81dcf59d2c449e349 (diff) | |
download | ffmpeg-16dd93ab6adbe1ac330212e70a0b7538b4ec571b.tar.gz |
quick and dirty PSNR check for audio
Originally committed as revision 3902 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/regression.sh')
-rwxr-xr-x | tests/regression.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regression.sh b/tests/regression.sh index 70e9e46b24..fb100dddcf 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -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 |