5 sed 's/\t\+/\t/g' < demo.ini |
6 awk -F '\t' '{ printf( "%2d. %-30.30s", ++ i, $2 ); if ( i % 2 == 0 ) printf( "\n" ); }'
9 function check_dependencies( )
14 deps=`sed 's/\t\+/\t/g' < demo.ini | cut -f 3 | head -n $option | tail -n -1`
21 ls $dep > /dev/null 2>&1
23 [ $val != 0 ] && echo Failed to find $dep >&2 && echo $val
35 cut -f 1 demo.ini | head -n $option | tail -n -1
45 1. Play with Inigo half size
46 2. Play with Inigo full size
47 3. Serialise with Westley to terminal
62 "1" ) export MLT_CONSUMER="sdl:360x288 buffer=1" ;;
63 "2" ) export MLT_CONSUMER="sdl" ;;
64 "3" ) export MLT_CONSUMER="westley" ;;
65 "4" ) export MLT_CONSUMER="westley:" ;;
66 "5" ) export MLT_CONSUMER="mcdv:NTSC target=/dev/dv1394 rescale=nearest" ;;
67 "6" ) export MLT_CONSUMER="bluefish:NTSC" ;;
68 "7" ) export MLT_CONSUMER="sdl rescale=none" ;;
71 while [ $option != 0 -a "$MLT_CONSUMER" != "" ]
83 demo=`get_demo $option`
84 usable=`check_dependencies $option`
86 if [ "$usable" = "0" -a "$demo" != "" ]
88 if [ "$MLT_CONSUMER" == "westley:" ]
89 then export WESTLEY_CONSUMER="westley:$demo.westley"
90 bash $demo -consumer $WESTLEY_CONSUMER
91 inigo +$demo.txt out=100 $demo.westley $demo.westley -filter watermark:watermark1.png composite.fill=true
92 elif [ "$MLT_CONSUMER" == "westley" ]
93 then bash $demo -consumer $MLT_CONSUMER | less
94 else bash $demo -consumer $MLT_CONSUMER
96 elif [ "$usable" != "" ]
99 echo Unable to locate suitable files for the demo - please provide them.