Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
make_movie.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
11 set_variable: DEBUG MOVIE_DEBUG 3
12 set_variable: DELAY MOVIE_DELAY 2
13 set_variable: WORKDIR MOVIE_WORKDIR ./
14 
15 if do_usage $*; then
16  usage "$script (input file)+"
17 fi
18 
19 if (( $# == 0 )); then
20  fatal "Wrong number of arguments."
21 fi
22 
23 echo -n "creating animated gif.."
24 
25 mkdir $WORKDIR/.$$
26 
27 export MAGICK_TMPDIR=$WORKDIR/.$$
28 export MAGICK_MEMORY=$((1<<12))
29 
30 convert \
31  -delay $DELAY \
32  -limit memory $MAGICK_MEMORY \
33  -limit map $MAGICK_MEMORY \
34  $argv[1,-1] \
35  $WORKDIR/.$$/m.gif
36 
37 if (( $? == 0 )); then
38  echo "OK"
39 else
40  fatal "failed"
41 fi
42 
43 ffmpeg \
44  -i $WORKDIR/.$$/m.gif \
45  -pix_fmt yuv420p \
46  m.mp4
47 
48 rm -rf $WORKDIR/.$$
49 
50 echo "enjoy watching m.mp4"
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
Definition: JDataMonitor.sh:24
exit
Definition: JPizza.sh:36
then
Definition: datalogs.sh:31
const int n
Definition: JPolint.hh:786
then rm
Definition: sftpput.zsh:30
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
* usage
fi set_variable FILENAME $WORKDIR
Definition: datalogs.sh:34
const char * map
Definition: elog.cc:87
then echo
Definition: JQAQC.sh:96
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62