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>
This commit is contained in:
Reimar Döffinger
2012-04-06 15:59:24 +02:00
parent ecd7455e96
commit 796097c696
6 changed files with 45 additions and 1 deletions

View File

@@ -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