1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

tests/fate-run: Use -bitexact

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2017-10-22 01:19:59 +02:00
parent 97c00edaa0
commit 8e7ac4f049

View File

@ -127,15 +127,15 @@ ffmpeg(){
}
framecrc(){
ffmpeg "$@" -flags +bitexact -fflags +bitexact -f framecrc -
ffmpeg "$@" -bitexact -f framecrc -
}
ffmetadata(){
ffmpeg "$@" -flags +bitexact -fflags +bitexact -f ffmetadata -
ffmpeg "$@" -bitexact -f ffmetadata -
}
framemd5(){
ffmpeg "$@" -flags +bitexact -fflags +bitexact -f framemd5 -
ffmpeg "$@" -bitexact -f framemd5 -
}
crc(){
@ -160,7 +160,7 @@ pcm(){
fmtstdout(){
fmt=$1
shift 1
ffmpeg -flags +bitexact -fflags +bitexact "$@" -f $fmt -
ffmpeg -bitexact "$@" -f $fmt -
}
enc_dec_pcm(){
@ -173,7 +173,7 @@ enc_dec_pcm(){
cleanfiles=$encfile
encfile=$(target_path ${encfile})
ffmpeg -i $src_file "$@" -f $out_fmt -y ${encfile} || return
ffmpeg -flags +bitexact -fflags +bitexact -i ${encfile} -c:a pcm_${pcm_fmt} -fflags +bitexact -f ${dec_fmt} -
ffmpeg -bitexact -i ${encfile} -c:a pcm_${pcm_fmt} -fflags +bitexact -f ${dec_fmt} -
}
FLAGS="-flags +bitexact -sws_flags +accurate_rnd+bitexact -fflags +bitexact"
@ -294,16 +294,16 @@ gapless(){
cleanfiles="$cleanfiles $decfile1 $decfile2 $decfile3"
# test packet data
ffmpeg $extra_args -i "$sample" -flags +bitexact -fflags +bitexact -c:a copy -f framecrc -y $decfile1
ffmpeg $extra_args -i "$sample" -bitexact -c:a copy -f framecrc -y $decfile1
do_md5sum $decfile1
# test decoded (and cut) data
ffmpeg $extra_args -i "$sample" -flags +bitexact -fflags +bitexact -f wav md5:
ffmpeg $extra_args -i "$sample" -bitexact -f wav md5:
# the same as above again, with seeking to the start
ffmpeg $extra_args -ss 0 -seek_timestamp 1 -i "$sample" -flags +bitexact -fflags +bitexact -c:a copy -f framecrc -y $decfile2
ffmpeg $extra_args -ss 0 -seek_timestamp 1 -i "$sample" -bitexact -c:a copy -f framecrc -y $decfile2
do_md5sum $decfile2
ffmpeg $extra_args -ss 0 -seek_timestamp 1 -i "$sample" -flags +bitexact -fflags +bitexact -f wav md5:
ffmpeg $extra_args -ss 0 -seek_timestamp 1 -i "$sample" -bitexact -f wav md5:
# test packet data, with seeking to a specific position
ffmpeg $extra_args -ss 5 -seek_timestamp 1 -i "$sample" -flags +bitexact -fflags +bitexact -c:a copy -f framecrc -y $decfile3
ffmpeg $extra_args -ss 5 -seek_timestamp 1 -i "$sample" -bitexact -c:a copy -f framecrc -y $decfile3
do_md5sum $decfile3
}
@ -316,7 +316,7 @@ gaplessenc(){
cleanfiles="$cleanfiles $file1"
# test data after reencoding
ffmpeg -i "$sample" -flags +bitexact -fflags +bitexact -map 0:a -c:a $codec -f $format -y "$file1"
ffmpeg -i "$sample" -bitexact -map 0:a -c:a $codec -f $format -y "$file1"
probegaplessinfo "$file1"
}
@ -328,7 +328,7 @@ audio_match(){
decfile="${outdir}/${test}.wav"
cleanfiles="$cleanfiles $decfile"
ffmpeg -i "$sample" -flags +bitexact -fflags +bitexact $extra_args -y $decfile
ffmpeg -i "$sample" -bitexact $extra_args -y $decfile
tests/audiomatch $decfile $trefile
}