-
Notifications
You must be signed in to change notification settings - Fork 2
/
make_demos.sh
executable file
·77 lines (58 loc) · 3.88 KB
/
make_demos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
set -e
cd images
LOW=`mktemp --suffix=.mp4`
mkdir -p ../videos/
rm -f ../videos/*mkv
OPTS="$@"
../src/poppy -e $OPTS -o ../videos/faces.mkv some2.png some1.png some3.png
mencoder -vf scale=250:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/faces.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/faces.gif
../src/poppy $OPTS -o ../videos/cars.mkv kindpng1s.png kindpng2s.png kindpng1s.png
mencoder -vf scale=250:160 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/cars.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/cars.gif
../src/poppy -d $OPTS -o ../videos/browns.mkv amir1.jpg amir2.jpg amir1.jpg
mencoder -vf scale=360:202 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/browns.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/browns.gif
../src/poppy $OPTS -o ../videos/catdog.mkv cat.png dog.png cat.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/catdog.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/catdog.gif
../src/poppy $OPTS -o ../videos/squarecircle.mkv circle.png square.png circle.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/squarecircle.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/squarecircle.gif
../src/poppy $OPTS -o ../videos/numbers.mkv 1st.png 2nd.png 3rd.png 2nd.png 1st.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/numbers.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/numbers.gif
../src/poppy $OPTS -o ../videos/flowers.mkv flower1.png flower2.png flower1.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/flowers.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/flowers.gif
../src/poppy $OPTS -o ../videos/yalefaces.mkv subject01*.png subject01.glasses.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/yalefaces.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/yalefaces.gif
#auto aligned
OPTS="$OPTS -a"
../src/poppy -e $OPTS -o ../videos/faces-a.mkv some2.png some1.png some3.png
mencoder -vf scale=250:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/faces-a.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/faces-a.gif
../src/poppy $OPTS -o ../videos/cars-a.mkv kindpng1s.png kindpng2s.png kindpng1s.png
mencoder -vf scale=250:160 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/cars-a.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/cars-a.gif
../src/poppy -d $OPTS -o ../videos/browns-a.mkv amir1.jpg amir2.jpg amir1.jpg
mencoder -vf scale=360:202 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/browns-a.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/browns-a.gif
../src/poppy $OPTS -o ../videos/catdog-a.mkv cat.png dog.png cat.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/catdog-a.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/catdog-a.gif
../src/poppy $OPTS -o ../videos/squarecircle-a.mkv circle.png square.png circle.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/squarecircle-a.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/squarecircle-a.gif
../src/poppy $OPTS -o ../videos/numbers-a.mkv 1st.png 2nd.png 3rd.png 2nd.png 1st.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/numbers-a.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/numbers-a.gif
../src/poppy $OPTS -o ../videos/flowers-a.mkv flower1.png flower2.png flower1.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/flowers-a.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/flowers-a.gif
../src/poppy $OPTS -e -o ../videos/yalefaces-a.mkv subject01*.png subject01.glasses.png
mencoder -vf scale=320:320 -ovc lavc -lavcopts vcodec=ffv1 -nosound -fps 15 -ofps 6 ../videos/yalefaces-a.mkv -o "$LOW"
ffmpeg -y -i "$LOW" ../demo/yalefaces-a.gif
rm "$LOW"