aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-05-20 11:33:03 +0200
committerAnton Khirnov <anton@khirnov.net>2022-05-24 13:35:16 +0200
commit60f948dd55641419ab6d92ecd287cc65d52f0d8e (patch)
tree30d7e1f88ab7ebfc002c1e0c1eb98a541d11553f /tests/fate-run.sh
parente53940186a08a6ea2dd06857965487ff07eb13d8 (diff)
downloadffmpeg-60f948dd55641419ab6d92ecd287cc65d52f0d8e.tar.gz
tests/fate/vcodec: add tests for ffv1 2pass mode
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 6501dea8f8..525e8e5499 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -207,6 +207,7 @@ enc_dec(){
dec_opt_out=$6
dec_opt_in=$7
ffprobe_opts=$8
+ twopass=$9
encfile="${outdir}/${test}.${enc_fmt_out}"
decfile="${outdir}/${test}.out.${dec_fmt_out}"
cleanfiles="$cleanfiles $decfile"
@@ -214,6 +215,17 @@ enc_dec(){
tsrcfile=$(target_path $srcfile)
tencfile=$(target_path $encfile)
tdecfile=$(target_path $decfile)
+
+ if [ -n "$twopass" ]; then
+ logfile_prefix="${outdir}/${test}.pass1"
+ cleanfiles="$cleanfiles ${logfile_prefix}-0.log"
+ tlogfile_prefix=$(target_path $logfile_prefix)
+ ffmpeg -auto_conversion_filters -f $enc_fmt_in $DEC_OPTS -i $tsrcfile \
+ $ENC_OPTS $enc_opt_out $FLAGS -pass 1 -passlogfile $tlogfile_prefix \
+ -f $enc_fmt_out -y $tencfile || return
+ enc_opt_out="$enc_opt_out -pass 2 -passlogfile $tlogfile_prefix"
+ fi
+
ffmpeg -auto_conversion_filters -f $enc_fmt_in $DEC_OPTS -i $tsrcfile $ENC_OPTS $enc_opt_out $FLAGS \
-f $enc_fmt_out -y $tencfile || return
do_md5sum $encfile