|
|
|
@ -33,9 +33,9 @@ pcm_ref="$datadir/$test_ref.ref.wav" |
|
|
|
|
crcfile="$datadir/$this.crc" |
|
|
|
|
target_crcfile="$target_datadir/$this.crc" |
|
|
|
|
|
|
|
|
|
if [ X"`echo | md5sum 2> /dev/null`" != X ]; then |
|
|
|
|
if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then |
|
|
|
|
do_md5sum() { md5sum -b $1; } |
|
|
|
|
elif [ X"`echo | md5 2> /dev/null`" != X ]; then |
|
|
|
|
elif [ X"$(echo | md5 2> /dev/null)" != X ]; then |
|
|
|
|
do_md5sum() { md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; } |
|
|
|
|
elif [ -x /sbin/md5 ]; then |
|
|
|
|
do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; } |
|
|
|
@ -60,8 +60,8 @@ do_ffmpeg() |
|
|
|
|
else |
|
|
|
|
wc -c $f >> $logfile |
|
|
|
|
fi |
|
|
|
|
expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2 |
|
|
|
|
echo `cat $bench2` $f >> $benchfile |
|
|
|
|
expr "$(cat $bench)" : '.*utime=\(.*s\)' > $bench2 |
|
|
|
|
echo $(cat $bench2) $f >> $benchfile |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
do_ffmpeg_nomd5() |
|
|
|
@ -78,8 +78,8 @@ do_ffmpeg_nomd5() |
|
|
|
|
else |
|
|
|
|
wc -c $f >> $logfile |
|
|
|
|
fi |
|
|
|
|
expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2 |
|
|
|
|
echo `cat $bench2` $f >> $benchfile |
|
|
|
|
expr "$(cat $bench)" : '.*utime=\(.*s\)' > $bench2 |
|
|
|
|
echo $(cat $bench2) $f >> $benchfile |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
do_ffmpeg_crc() |
|
|
|
@ -88,7 +88,7 @@ do_ffmpeg_crc() |
|
|
|
|
shift |
|
|
|
|
echo $ffmpeg $FFMPEG_OPTS $* -f crc "$target_crcfile" |
|
|
|
|
$ffmpeg $FFMPEG_OPTS $* -f crc "$target_crcfile" |
|
|
|
|
echo "$f `cat $crcfile`" >> $logfile |
|
|
|
|
echo "$f $(cat $crcfile)" >> $logfile |
|
|
|
|
rm -f "$crcfile" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -98,8 +98,8 @@ do_ffmpeg_nocheck() |
|
|
|
|
shift |
|
|
|
|
echo $ffmpeg $FFMPEG_OPTS $* |
|
|
|
|
$ffmpeg $FFMPEG_OPTS -benchmark $* > $bench |
|
|
|
|
expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2 |
|
|
|
|
echo `cat $bench2` $f >> $benchfile |
|
|
|
|
expr "$(cat $bench)" : '.*utime=\(.*s\)' > $bench2 |
|
|
|
|
echo $(cat $bench2) $f >> $benchfile |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
do_video_decoding() |
|
|
|
|