diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-05 18:46:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-06 18:04:49 +0200 |
commit | 86f8ce9f3d95a3b585a018b877b7894c5d6e9f9f (patch) | |
tree | a2987e8aedd02ffa835d7eeca8346fe39456396b /tests | |
parent | e3fd1857fb9e230de089820f77367ec320188c9c (diff) | |
download | ffmpeg-86f8ce9f3d95a3b585a018b877b7894c5d6e9f9f.tar.gz |
tests/fate-run: add transcode() as a simplified enc_dec()
Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/fate-run.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 5841b0c413..8c3938a8be 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -192,6 +192,21 @@ enc_dec(){ tests/tiny_psnr $srcfile $decfile $cmp_unit $cmp_shift } +transcode(){ + src_fmt=$1 + srcfile=$2 + enc_fmt=$3 + enc_opt=$4 + encfile="${outdir}/${test}.${enc_fmt}" + test "$7" = -keep || cleanfiles="$cleanfiles $encfile" + tsrcfile=$(target_path $srcfile) + tencfile=$(target_path $encfile) + ffmpeg -f $src_fmt $DEC_OPTS -i $tsrcfile $ENC_OPTS $enc_opt $FLAGS \ + -f $enc_fmt -y $tencfile || return + do_md5sum $encfile + echo $(wc -c $encfile) +} + lavffatetest(){ t="${test#lavf-fate-}" ref=${base}/ref/lavf-fate/$t |