mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-08 19:07:09 +00:00
Use a function for audio-only tests.
Originally committed as revision 7195 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
56cca5f10c
commit
e587a0a501
@ -165,6 +165,13 @@ do_video_encoding()
|
|||||||
do_ffmpeg $file -y $1 -f pgmyuv -i $raw_src $2 $file
|
do_ffmpeg $file -y $1 -f pgmyuv -i $raw_src $2 $file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_audio_only()
|
||||||
|
{
|
||||||
|
file=${outfile}libav.$1
|
||||||
|
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
||||||
|
do_ffmpeg_crc $file -i $file
|
||||||
|
}
|
||||||
|
|
||||||
echo "ffmpeg regression test" > $logfile
|
echo "ffmpeg regression test" > $logfile
|
||||||
echo "ffmpeg benchmarks" > $benchfile
|
echo "ffmpeg benchmarks" > $benchfile
|
||||||
|
|
||||||
@ -737,39 +744,25 @@ do_ffmpeg_crc $file -f image2 -i $file
|
|||||||
# audio only
|
# audio only
|
||||||
|
|
||||||
# wav
|
# wav
|
||||||
file=${outfile}libav.wav
|
do_audio_only wav
|
||||||
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
|
||||||
do_ffmpeg_crc $file -i $file
|
|
||||||
|
|
||||||
# alaw
|
# alaw
|
||||||
file=${outfile}libav.al
|
do_audio_only al
|
||||||
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
|
||||||
do_ffmpeg_crc $file -i $file
|
|
||||||
|
|
||||||
# mulaw
|
# mulaw
|
||||||
file=${outfile}libav.ul
|
do_audio_only ul
|
||||||
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
|
||||||
do_ffmpeg_crc $file -i $file
|
|
||||||
|
|
||||||
# au
|
# au
|
||||||
file=${outfile}libav.au
|
do_audio_only au
|
||||||
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
|
||||||
do_ffmpeg_crc $file -i $file
|
|
||||||
|
|
||||||
# mmf
|
# mmf
|
||||||
file=${outfile}libav.mmf
|
do_audio_only mmf
|
||||||
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
|
||||||
do_ffmpeg_crc $file -i $file
|
|
||||||
|
|
||||||
# aiff
|
# aiff
|
||||||
file=${outfile}libav.aif
|
do_audio_only aif
|
||||||
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
|
||||||
do_ffmpeg_crc $file -i $file
|
|
||||||
|
|
||||||
# voc
|
# voc
|
||||||
file=${outfile}libav.voc
|
do_audio_only voc
|
||||||
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
|
||||||
do_ffmpeg_crc $file -i $file
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# pix_fmt conversions
|
# pix_fmt conversions
|
||||||
|
Loading…
Reference in New Issue
Block a user