Revision d9076fe7 tests/regression.sh

View differences:

tests/regression.sh
136 136
    echo `cat $bench2` $f >> $benchfile
137 137
}
138 138

  
139
do_ffmpeg_nomd5()
140
{
141
    f="$1"
142
    shift
143
    echo $ffmpeg $FFMPEG_OPTS $*
144
    $ffmpeg $FFMPEG_OPTS -benchmark $* > $bench 2> /tmp/ffmpeg$$
145
    egrep -v "^(Stream|Press|Input|Output|frame|  Stream|  Duration|video:)" /tmp/ffmpeg$$ || true
146
    rm -f /tmp/ffmpeg$$
147
    if [ $f = $raw_dst ] ; then
148
        $tiny_psnr $f $raw_ref >> $logfile
149
    elif [ $f = $pcm_dst ] ; then
150
        $tiny_psnr $f $pcm_ref 2 >> $logfile
151
    else
152
        wc -c $f >> $logfile
153
    fi
154
    expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
155
    echo `cat $bench2` $f >> $benchfile
156
}
157

  
139 158
do_ffmpeg_crc()
140 159
{
141 160
    f="$1"
......
547 566
if [ -n "$do_wma" ] ; then
548 567
# wmav1
549 568
do_audio_encoding wmav1.asf "-ar 44100" "-acodec wmav1"
550
do_audio_decoding
569
do_ffmpeg_nomd5 $pcm_dst -y -i $file -f wav $pcm_dst
551 570
$tiny_psnr $pcm_dst $pcm_ref 2 8192 >> $logfile
552 571
# wmav2
553 572
do_audio_encoding wmav2.asf "-ar 44100" "-acodec wmav2"
554
do_audio_decoding
573
do_ffmpeg_nomd5 $pcm_dst -y -i $file -f wav $pcm_dst
555 574
$tiny_psnr $pcm_dst $pcm_ref 2 8192 >> $logfile
556 575
fi
557 576

  

Also available in: Unified diff