Mercurial > mplayer.hg
comparison TOOLS/sws-test @ 6687:b5cd3ce87bfb
very simple script to generate png images from an video with all -sws methods
author | michael |
---|---|
date | Tue, 09 Jul 2002 21:53:29 +0000 |
parents | |
children | 835822ce4bb1 |
comparison
equal
deleted
inserted
replaced
6686:d7a83bb5fec9 | 6687:b5cd3ce87bfb |
---|---|
1 #!/bin/sh | |
2 | |
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 | |
8 | |
9 for i in `seq 0 10` ; do | |
10 mplayer -vo png $1 -ss $2 -frames 3 -sws $i -vop scale=$3 | |
11 rm 00000001.png | |
12 mv 00000002.png sws-`basename $1`-$2-$3-$i.png | |
13 done | |
14 | |
15 #gauss with lowwer variance | |
16 mplayer -vo png $1 -ss $2 -frames 3 -sws 7 -vop scale=$3:0:50 | |
17 rm 00000001.png | |
18 mv 00000002.png sws-`basename $1`-$2-$3-7-50.png | |
19 |