diff options
author | Tobias Rapp <t.rapp@noa-archive.com> | 2017-08-29 15:45:13 +0300 |
---|---|---|
committer | Tobias Rapp <t.rapp@noa-archive.com> | 2017-09-27 16:58:49 +0300 |
commit | bee01ee2ba2e62974447d5e8ea2afb27dbdb1e23 (patch) | |
tree | b27d729e5b9b8cebe061c5e7acda8aa0b73cd200 /tests/fate-run.sh | |
parent | f102a4efcef33014d414f9bf4492a04feab20c82 (diff) |
fate: add tests for psnr and ssim filter
Metadata filter output is passed through an Awk script comparing floats
against reference values with specified "fuzz" tolerance to account for
architectural differences (e.g. x86-32 vs. x86-64).
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 9aa9a22395..c5480c7ede 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -234,6 +234,15 @@ lavftest(){ ${base}/lavf-regression.sh $t lavf tests/vsynth1 "$target_exec" "$target_path" "$threads" "$thread_type" "$cpuflags" "$target_samples" } +refcmp_metadata(){ + refcmp=$1 + pixfmt=$2 + fuzz=${3:-0.001} + ffmpeg $FLAGS $ENC_OPTS \ + -lavfi "testsrc2=size=300x200:rate=1:duration=5,format=${pixfmt},split[ref][tmp];[tmp]avgblur=4[enc];[enc][ref]${refcmp},metadata=print:file=-" \ + -f null /dev/null | awk -v ref=${ref} -v fuzz=${fuzz} -f ${base}/refcmp-metadata.awk - +} + video_filter(){ filters=$1 shift |