summaryrefslogtreecommitdiff
path: root/tests/codec-regression.sh
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-06 15:59:24 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-07 11:50:18 +0200
commit796097c69666753c9f49de56f1e44c00fd7ca2f9 (patch)
treef029f474db3b3df0da315eb66c2b1d1ca4fda8f6 /tests/codec-regression.sh
parentecd7455e9626cdc38e7471ce938a8640bab688fa (diff)
Add tests for audio encoders: aac, dca, ra144 and nellymoser.
The PSNR values are of varying usefulness, though at least the DTS and AAC ones are useful with the right shift value. Note: due to usage of floats some of these may fail on other architectures. In that case they should be converted into a CMD = stddev FATE test, but it seems useful to try this way first. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'tests/codec-regression.sh')
-rwxr-xr-xtests/codec-regression.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
index ae1ea1be43..76059bb681 100755
--- a/tests/codec-regression.sh
+++ b/tests/codec-regression.sh
@@ -439,6 +439,30 @@ do_audio_encoding flac.flac "-acodec flac -compression_level 2"
do_audio_decoding
fi
+if [ -n "$do_aac" ] ; then
+do_audio_encoding aac.aac "-b:a 512k -strict -2 -acodec aac"
+do_audio_decoding
+$tiny_psnr $pcm_dst $pcm_ref 2 4096
+fi
+
+if [ -n "$do_dca" ] ; then
+do_audio_encoding dca.dts "-strict -2 -channel_layout 3 -acodec dca"
+do_audio_decoding
+$tiny_psnr $pcm_dst $pcm_ref 2 1920
+fi
+
+if [ -n "$do_ra144" ] ; then
+do_audio_encoding ra144.ra "-ac 1 -acodec real_144"
+do_audio_decoding "-ac 2"
+$tiny_psnr $pcm_dst $pcm_ref 2 640
+fi
+
+if [ -n "$do_nellymoser" ] ; then
+do_audio_encoding nellymoser.flv "-ac 1 -acodec nellymoser"
+do_audio_decoding "-ac 2"
+$tiny_psnr $pcm_dst $pcm_ref 2 252
+fi
+
#if [ -n "$do_vorbis" ] ; then
# vorbis
#disabled because it is broken