diff options
author | simulation <simulation@nlo-ext3.ioq.uni-jena.de> | 2016-02-09 09:54:46 +0100 |
---|---|---|
committer | simulation <simulation@nlo-ext3.ioq.uni-jena.de> | 2016-02-09 09:54:46 +0100 |
commit | 6be0f285adb27f60f058c2937a7885899e17cb88 (patch) | |
tree | be50a15314fe28c5b7b8f721233a34e71ca5b3b4 /postpost/makemovie | |
download | lpic-6be0f285adb27f60f058c2937a7885899e17cb88.tar.xz |
Diffstat (limited to 'postpost/makemovie')
-rwxr-xr-x | postpost/makemovie | 32 |
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 + + |