mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
FATE: add capability for audio encode/decode tests with fuzzy psnr comparison
This allows for testing floating-point audio encoders across different platforms where exact comparisons are unreliable due to float rounding differences.
This commit is contained in:
parent
cffd7580bb
commit
90e5b58a53
@ -85,6 +85,16 @@ pcm(){
|
||||
avconv "$@" -vn -f s16le -
|
||||
}
|
||||
|
||||
enc_dec_pcm(){
|
||||
out_fmt=$1
|
||||
pcm_fmt=$2
|
||||
shift 2
|
||||
encfile="${outdir}/${test}.${out_fmt}"
|
||||
cleanfiles=$encfile
|
||||
avconv -i $ref "$@" -f $out_fmt -y $encfile || return
|
||||
avconv -i $encfile -c:a pcm_${pcm_fmt} -f wav -
|
||||
}
|
||||
|
||||
regtest(){
|
||||
t="${test#$2-}"
|
||||
ref=${base}/ref/$2/$t
|
||||
|
Loading…
x
Reference in New Issue
Block a user