summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorroot <root@atreju.jones.dk>2014-09-02 21:07:20 +0200
committerroot <root@atreju.jones.dk>2014-09-02 21:26:35 +0200
commit3e5ff0fc5c5921405083955a9f779f2666419a32 (patch)
tree10452ff4562809be86752b882b5bbde2f898f051 /localvideowebencode
parent12fbab171cc82d69843bab935be4976c3c8550bd (diff)
Tidy whitespace.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode48
1 files changed, 24 insertions, 24 deletions
diff --git a/localvideowebencode b/localvideowebencode
index db9ade3..8910e73 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -17,7 +17,7 @@ set -e
PRG=$(basename "$0")
-showhelp() {
+showhelp() {
cat <<EOF
Usage: $PRG [OPTION...] [--] [ARG=VALUE...] INPUTFILE... [ARG=VALUE...]
Encode video file in multiple web-optimized formats, and provide sample
@@ -80,39 +80,39 @@ TEMP="`getopt -s sh -o hs:a:b:p:t: -l help,size:,aspect:,bitrate:,profile:,h264p
eval set -- "$TEMP"
while true ; do
case "$1" in
- -h|--help) showhelp; exit;;
- -s|--size) size="$2"; shift 2;;
- -a|--aspect) aspect="$2"; shift 2;;
- -b|--bitrate) bitrate="$2"; shift 2;;
- -p|--profile) profile="$2"; shift 2;;
- --h264profile) h264profile="$2"; shift 2;;
- --stem) stem="$2"; shift 2;;
- -t|--title) title="$2"; shift 2;;
- --filter) filters="${filters:+$filters }-filter $2"; shift 2
- while [ $# -gt 0 ] ; do
- case "$1" in
- *=*) filters="${filters:+$filters }$1"; shift;;
- *) break;;
- esac
- done
- ;;
- --sample) sample="in=${2:-0} out=$((${2:-0} + 150))"; shift 2;;
- --) shift; break;;
- *) exit1 "Internal error resolving options.";;
+ -h|--help) showhelp; exit;;
+ -s|--size) size="$2"; shift 2;;
+ -a|--aspect) aspect="$2"; shift 2;;
+ -b|--bitrate) bitrate="$2"; shift 2;;
+ -p|--profile) profile="$2"; shift 2;;
+ --h264profile) h264profile="$2"; shift 2;;
+ --stem) stem="$2"; shift 2;;
+ -t|--title) title="$2"; shift 2;;
+ --filter) filters="${filters:+$filters }-filter $2"; shift 2
+ while [ $# -gt 0 ] ; do
+ case "$1" in
+ *=*) filters="${filters:+$filters }$1"; shift;;
+ *) break;;
+ esac
+ done
+ ;;
+ --sample) sample="in=${2:-0} out=$((${2:-0} + 150))"; shift 2;;
+ --) shift; break;;
+ *) exit1 "Internal error resolving options.";;
esac
done
while [ $# -gt 0 ] ; do
case "$1" in
- *=*) _melt_in="${_melt_in:+$_melt_in }$1"; shift;;
- *) break;;
+ *=*) _melt_in="${_melt_in:+$_melt_in }$1"; shift;;
+ *) break;;
esac
done
while [ $# -gt 0 ] ; do
case "$1" in
- *=*) _melt_out="${_melt_out:+$_melt_out }$1"; shift;;
- *) infiles="${infiles:+$infiles }$1"; shift;;
+ *=*) _melt_out="${_melt_out:+$_melt_out }$1"; shift;;
+ *) infiles="${infiles:+$infiles }$1"; shift;;
esac
done