From 796097c69666753c9f49de56f1e44c00fd7ca2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Fri, 6 Apr 2012 15:59:24 +0200 Subject: Add tests for audio encoders: aac, dca, ra144 and nellymoser. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/codec-regression.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests/codec-regression.sh') 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 -- cgit v1.2.1