summaryrefslogtreecommitdiff
path: root/postpost/makemovie
blob: de68c9919ecb37dd6297a5bbfb1c12b35dad897f (plain)
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
#!/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