summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-09-22 13:23:56 +0200
committerJonas Smedegaard <dr@jones.dk>2014-09-22 13:23:56 +0200
commit27ee049a6b53a09415554700ad84c154de70b6e9 (patch)
treed930e009787f1adf9a11c2385075f27b32c5f601 /localvideowebencode
parent00a73b968e80df829b4f43e197a5481a3ca09d9c (diff)
Avoid optional-value options: Unsupported by dash getopt.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode20
1 files changed, 13 insertions, 7 deletions
diff --git a/localvideowebencode b/localvideowebencode
index cd7fc96..39b32f3 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -80,15 +80,18 @@ html favoring open formats with optional non-JavaScript Flash fallback.
silence 0
(default: none - use input channel count)
--audioprefilter Add melt audio filter before loudness.
- --loudness [data] Apply EBU R128 loudness filter, optionally with
- precomputed results.
+ --loudness Add EBU R128 loudness filter.
+ --loudness-results Add EBU R128 loudness filter, applying
+ precomputed analysis results.
+ (default: none - compute results on-the-fly)
--filter Add melt filter (applied to all input files)
--stem Stem of output filenames, optionally with path
(default: basename of last input file)
-t, --title Title used in html fallback graphics
(default: stem)
- --sample [start] Create only a 150 frames long sample from
- beginning or optionally a later start frame.
+ --sample Create only a 150 frames long sample.
+ --sample-start Create sample, starting at a specific frame.
+ (default: start at first frame)
-h, --help This help text
Examples:
@@ -123,10 +126,11 @@ exit1() {
# defaults
formats=webm,mp4
h264profile=baseline
+samplestart=0
samplelength=150
# parse cmdline options
-TEMP="`getopt -s sh -o hp:s:a:r:b:t: -l help,profile:,size:,aspect:,rate:,video:,refbpp:,bitrate:,formats:,h264profile:,h264preset:,webmpreset:,audio:,audioprefilter:,loudness::,filter:,stem:,title:,sample:: -n "$PRG" -- "$@"`" || exit1 "Internal getopt error."
+TEMP="`getopt -s sh -o hp:s:a:r:b:t: -l help,profile:,size:,aspect:,rate:,video:,refbpp:,bitrate:,formats:,h264profile:,h264preset:,webmpreset:,audio:,audioprefilter:,loudness,loudness-results:,filter:,stem:,title:,sample,sample-start: -n "$PRG" -- "$@"`" || exit1 "Internal getopt error."
eval set -- "$TEMP"
while true ; do
case "$1" in
@@ -144,11 +148,13 @@ while true ; do
--webmpreset) webmpreset="$2"; shift 2;;
--audio) audio="$2"; shift 2;;
--audioprefilter) audioprefilters="${audioprefilters:+$audioprefilters }-filter $2"; shift 2;;
- --loudness) loudness=yes; loudness_results="$2"; shift 2;;
+ --loudness) loudness=yes; shift;;
+ --loudness-results) loudness=yes; loudness_results="$2"; shift 2;;
--filter) filters="${filters:+$filters }-filter $2"; shift 2;;
--stem) stem="$2"; shift 2;;
-t|--title) title="$2"; shift 2;;
- --sample) sample=yes; samplestart="${2:-0}"; shift 2;;
+ --sample) sample=yes; shift;;
+ --sample-start) sample=yes; samplestart="$2"; shift 2;;
--) shift; break;;
*) exit1 "Internal error resolving options.";;
esac