Commit 8e7ac4f0 authored by Michael Niedermayer's avatar Michael Niedermayer

tests/fate-run: Use -bitexact

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 97c00eda
...@@ -127,15 +127,15 @@ ffmpeg(){ ...@@ -127,15 +127,15 @@ ffmpeg(){
} }
framecrc(){ framecrc(){
ffmpeg "$@" -flags +bitexact -fflags +bitexact -f framecrc - ffmpeg "$@" -bitexact -f framecrc -
} }
ffmetadata(){ ffmetadata(){
ffmpeg "$@" -flags +bitexact -fflags +bitexact -f ffmetadata - ffmpeg "$@" -bitexact -f ffmetadata -
} }
framemd5(){ framemd5(){
ffmpeg "$@" -flags +bitexact -fflags +bitexact -f framemd5 - ffmpeg "$@" -bitexact -f framemd5 -
} }
crc(){ crc(){
...@@ -160,7 +160,7 @@ pcm(){ ...@@ -160,7 +160,7 @@ pcm(){
fmtstdout(){ fmtstdout(){
fmt=$1 fmt=$1
shift 1 shift 1
ffmpeg -flags +bitexact -fflags +bitexact "$@" -f $fmt - ffmpeg -bitexact "$@" -f $fmt -
} }
enc_dec_pcm(){ enc_dec_pcm(){
...@@ -173,7 +173,7 @@ enc_dec_pcm(){ ...@@ -173,7 +173,7 @@ enc_dec_pcm(){
cleanfiles=$encfile cleanfiles=$encfile
encfile=$(target_path ${encfile}) encfile=$(target_path ${encfile})
ffmpeg -i $src_file "$@" -f $out_fmt -y ${encfile} || return 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" FLAGS="-flags +bitexact -sws_flags +accurate_rnd+bitexact -fflags +bitexact"
...@@ -294,16 +294,16 @@ gapless(){ ...@@ -294,16 +294,16 @@ gapless(){
cleanfiles="$cleanfiles $decfile1 $decfile2 $decfile3" cleanfiles="$cleanfiles $decfile1 $decfile2 $decfile3"
# test packet data # 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 do_md5sum $decfile1
# test decoded (and cut) data # 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 # 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 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 # 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 do_md5sum $decfile3
} }
...@@ -316,7 +316,7 @@ gaplessenc(){ ...@@ -316,7 +316,7 @@ gaplessenc(){
cleanfiles="$cleanfiles $file1" cleanfiles="$cleanfiles $file1"
# test data after reencoding # 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" probegaplessinfo "$file1"
} }
...@@ -328,7 +328,7 @@ audio_match(){ ...@@ -328,7 +328,7 @@ audio_match(){
decfile="${outdir}/${test}.wav" decfile="${outdir}/${test}.wav"
cleanfiles="$cleanfiles $decfile" 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 tests/audiomatch $decfile $trefile
} }
......
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