summaryrefslogtreecommitdiff
path: root/postpost/makemovie
diff options
context:
space:
mode:
Diffstat (limited to 'postpost/makemovie')
-rwxr-xr-xpostpost/makemovie32
1 files changed, 32 insertions, 0 deletions
diff --git a/postpost/makemovie b/postpost/makemovie
new file mode 100755
index 0000000..de68c99
--- /dev/null
+++ b/postpost/makemovie
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+for s in $1*
+do
+ if [ -e $s ]
+ then
+ for koord in x y z
+ do
+ for i in 0 1
+ do
+ for t in $s/Post/frame_phase$koord-sp$i-*.eps
+ do
+ if [ -e $t ]
+ then
+ u=$s/Post/`basename $t .eps`
+ echo $u.eps
+ convert $u.eps -colorspace RGB -type truecolor $u.jpg
+ rm $u.eps
+ fi
+ done
+ if [ `ls -l $s/Post/ | grep -c frame_phase$koord-sp$i-.*jpg` -gt 0 ]
+ then
+ echo generating movie $s/Post/phase$koord-sp$i.avi
+ mencoder mf://$s/Post/frame_phase$koord-sp$i-*.jpg -mf w=1133:h=1133:fps=20:type=jpg -ovc copy -oac copy -o $s/Post/phase$koord-sp$i.avi
+ rm $s/Post/frame_phase$koord-sp$i-*.jpg
+ fi
+ done
+ done
+ fi
+done
+
+