Commit f02ab814 authored by Michael Niedermayer's avatar Michael Niedermayer

ima & ms adpcm regression test

Originally committed as revision 2766 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6cf9d5eb
...@@ -73,3 +73,7 @@ stddev: 0.00 PSNR:99.99 bytes:7602176 ...@@ -73,3 +73,7 @@ stddev: 0.00 PSNR:99.99 bytes:7602176
d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm
88c867eee0fb3a51263253477e5b39cf *./data/a-g726.wav 88c867eee0fb3a51263253477e5b39cf *./data/a-g726.wav
23def970a6a301bd0095c89e58f5282f *./data/out.wav 23def970a6a301bd0095c89e58f5282f *./data/out.wav
bdc512b78e2ccb1d815aec08794650eb *./data/a-adpcm_ima.wav
449ec3854e8b09982302f92ea9cd47ca *./data/out.wav
5ac5a5ffd680d7880dfb1dd069851691 *./data/a-adpcm_ms.wav
e4276587e9ffef41a007ac4c12d3fad2 *./data/out.wav
...@@ -47,6 +47,8 @@ else ...@@ -47,6 +47,8 @@ else
do_mp2=y do_mp2=y
do_ac3=y do_ac3=y
do_g726=y do_g726=y
do_adpcm_ima_wav=y
do_adpcm_ms=y
do_rc=y do_rc=y
do_mpeg4adv=y do_mpeg4adv=y
do_mpeg4nr=y do_mpeg4nr=y
...@@ -376,6 +378,26 @@ do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -ab 32 -ac 1 -ar ...@@ -376,6 +378,26 @@ do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -ab 32 -ac 1 -ar
do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
fi fi
###################################
if [ -n "$do_adpcm_ima_wav" ] ; then
# encoding
file=${outfile}adpcm_ima.wav
do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -acodec adpcm_ima_wav $file
# decoding
do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
fi
###################################
if [ -n "$do_adpcm_ms" ] ; then
# encoding
file=${outfile}adpcm_ms.wav
do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -acodec adpcm_ms $file
# decoding
do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
fi
################################### ###################################
# libav testing # libav testing
################################### ###################################
......
...@@ -73,3 +73,7 @@ stddev: 0.00 PSNR:99.99 bytes:7602176 ...@@ -73,3 +73,7 @@ stddev: 0.00 PSNR:99.99 bytes:7602176
d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm
88c867eee0fb3a51263253477e5b39cf *./data/a-g726.wav 88c867eee0fb3a51263253477e5b39cf *./data/a-g726.wav
23def970a6a301bd0095c89e58f5282f *./data/out.wav 23def970a6a301bd0095c89e58f5282f *./data/out.wav
bdc512b78e2ccb1d815aec08794650eb *./data/a-adpcm_ima.wav
449ec3854e8b09982302f92ea9cd47ca *./data/out.wav
5ac5a5ffd680d7880dfb1dd069851691 *./data/a-adpcm_ms.wav
e4276587e9ffef41a007ac4c12d3fad2 *./data/out.wav
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