-
Notifications
You must be signed in to change notification settings - Fork 0
/
fos_movie.sh
58 lines (55 loc) · 1.37 KB
/
fos_movie.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
#!/usr/bin/env bash
# This script and some of the included script files were
# inspired by -
#
# https://gist.github.com/bgerm/5814847
#
# URLs of useful information -
#
# http://linuxcommand.org/wss0160.php
# http://tldp.org/LDP/abs/html/
# http://linuxcommand.org/writing_shell_scripts.php
#
###################################################################
#
# NOTE: the files below must appear in this order -
#
# time/scheduling functions
source timefunc.sh
# global variables and 'constants'
source foscamparam.sh
# use camera specific info, provided as an arg to this script
source $2_param.sh
# movie / conversion functions
source moviefunc.sh
# image capture, create, edit functions
source imagefunc.sh
# camera functions
source foscamfunc.sh
# everything else
source utilfunc.sh
###################################################################
# usage:
#
# ./fos_movie.sh imagedir cameraname
#
# where:
# 'imagedir' is any accessible path where image files are
# located.
# 'cameraname' is the prefix to the ***_param.sh file
#
###################################################################
#
if [ $# -ne 2 ] ; then
echo "Usage: `basename $0` IMAGEDIR CAMNAME"
echo
exit 2
fi
outdir=${1%/}
# making a movie?
if [ $MAKEMOVIE = "yes" ]; then
makeMovie
fi
# done!
exit 0
###################################################################