small compilation fix
[mplayer/glamo.git] / TOOLS / sws-test
blob8ddd91190044914d380766a29a4e4a312b7f8dac
1 #!/bin/sh
3 if [ $# -lt 3 ] ; then
4 echo "sws-test <video-file> <start-pos> <res>"
5 echo "example: sws-test abc.avi 10 160:120"
6 exit 1
7 fi
9 for i in `seq 0 10` ; do
10 mplayer -vo png $1 -ss $2 -frames 3 -sws $i -vf scale=$3
11 rm 00000001.png
12 mv 00000002.png sws-`basename $1`-$2-$3-$i.png
13 done
15 #gauss with lowwer variance
16 mplayer -vo png $1 -ss $2 -frames 3 -sws 7 -vf scale=$3:0:50
17 rm 00000001.png
18 mv 00000002.png sws-`basename $1`-$2-$3-7-50.png