Revision f4b1e21a tests/lavfi-regression.sh

View differences:

tests/lavfi-regression.sh
14 14
rm -f "$logfile"
15 15
rm -f "$benchfile"
16 16

  
17
do_video_filter() {
18
    label=$1
19
    filters=$2
20
    shift 2
21
    printf '%-20s' $label >>$logfile
22
    run_ffmpeg -f image2 -vcodec pgmyuv -i $raw_src    \
23
        -vf "$filters" -vcodec rawvideo $* -f nut md5: >>$logfile
24
}
25

  
17 26
do_lavfi() {
18 27
    vfilters="slicify=random,$2"
19 28

  
20 29
    if [ $test = $1 ] ; then
21
        do_video_encoding ${test}.nut "" "-vcodec rawvideo -vf $vfilters"
30
        do_video_filter $test "$vfilters"
22 31
    fi
23 32
}
24 33

  
......
48 57

  
49 58
    pix_fmts=$($showfiltfmts $filter | awk -F '[ \r]' '/^INPUT/{ print $3 }' | sort | comm -12 - $out_fmts)
50 59
    for pix_fmt in $pix_fmts; do
51
        output=${test}-${pix_fmt}.nut
52
        do_video_encoding $output "" \
53
            "-vf slicify=random,format=$pix_fmt,$filter=$filter_args -vcodec rawvideo -pix_fmt $pix_fmt"
54
        rm ${outfile}${output}
60
        do_video_filter $pix_fmt "slicify=random,format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt
55 61
    done
56 62

  
57 63
    rm $exclude_fmts $out_fmts
......
69 75
if [ -n "$do_pixdesc_be" ] || [ -n "$do_pixdesc_le" ]; then
70 76
    pix_fmts="$($ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^IO' | cut -d' ' -f2 | sort)"
71 77
    for pix_fmt in $pix_fmts; do
72
        output=lavfi_pixdesc-${pix_fmt}.nut
73
        do_video_encoding $output "" \
74
            "-vf slicify=random,format=$pix_fmt,pixdesctest -vcodec rawvideo -pix_fmt $pix_fmt"
75
        rm ${outfile}${output}
78
        do_video_filter $pix_fmt "slicify=random,format=$pix_fmt,pixdesctest" -pix_fmt $pix_fmt
76 79
    done
77 80
fi
78 81

  

Also available in: Unified diff