~siretart/libav/merge.raring.libav-0.8.6

« back to all changes in this revision

Viewing changes to tests/lavfi-regression.sh

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:30:00 UTC
  • mfrom: (1.4.1)
  • mto: (1.3.11 sid) (26.1.1 quantal-security)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20120112223000-s1reiy1e28hnix42
Tags: upstream-0.8~beta2
ImportĀ upstreamĀ versionĀ 0.8~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
eval do_$test=y
13
13
 
14
 
rm -f "$logfile"
15
 
 
16
14
do_video_filter() {
17
15
    label=$1
18
16
    filters=$2
19
17
    shift 2
20
 
    printf '%-20s' $label >>$logfile
21
 
    run_ffmpeg $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src    \
22
 
        $ENC_OPTS -vf "$filters" -vcodec rawvideo $* -f nut md5: >>$logfile
 
18
    printf '%-20s' $label
 
19
    run_avconv $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src    \
 
20
        $ENC_OPTS -vf "$filters" -vcodec rawvideo $* -f nut md5:
23
21
}
24
22
 
25
23
do_lavfi() {
51
49
    out_fmts=${outfile}${1}_out_fmts
52
50
 
53
51
    # exclude pixel formats which are not supported as input
54
 
    $ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^\..\.' | cut -d' ' -f2 | sort >$exclude_fmts
 
52
    $avconv -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^\..\.' | cut -d' ' -f2 | sort >$exclude_fmts
55
53
    $showfiltfmts scale | awk -F '[ \r]' '/^OUTPUT/{ print $3 }' | sort | comm -23 - $exclude_fmts >$out_fmts
56
54
 
57
55
    pix_fmts=$($showfiltfmts $filter | awk -F '[ \r]' '/^INPUT/{ print $3 }' | sort | comm -12 - $out_fmts)
71
69
do_lavfi_pixfmts "scale"   "200:100"
72
70
do_lavfi_pixfmts "vflip"   ""
73
71
 
74
 
if [ -n "$do_pixdesc_be" ] || [ -n "$do_pixdesc_le" ]; then
75
 
    pix_fmts="$($ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^IO' | cut -d' ' -f2 | sort)"
 
72
if [ -n "$do_pixdesc" ]; then
 
73
    pix_fmts="$($avconv -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^IO' | cut -d' ' -f2 | sort)"
76
74
    for pix_fmt in $pix_fmts; do
77
75
        do_video_filter $pix_fmt "slicify=random,format=$pix_fmt,pixdesctest" -pix_fmt $pix_fmt
78
76
    done