diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-09-22 02:26:55 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-09-22 02:26:55 +0200 |
commit | 71a1047188418f6b407d70c115249b97bf6db0e1 (patch) | |
tree | dbee0fccbfb1be6a9a4b6d0df7a764c56a7f7244 /localvideowebencode | |
parent | 67fb4c0b98cc05b6381a3ec90364b95dda58e657 (diff) |
List --filter before --stem, and provide example with filter option.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-x | localvideowebencode | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/localvideowebencode b/localvideowebencode index 30da59f..b910f9e 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -79,18 +79,18 @@ html favoring open formats with optional non-JavaScript Flash fallback. speech 1 X X silence 0 (default: none - use input channel count) + --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) - --filter Add melt filter (applied to all input files) --sample [start] Create only a 150 frames long sample from beginning or optionally a later start frame. -h, --help This help text Examples: $PRG -s qvga -t "Funny guy" intro.dv myvideo.dv - $PRG -p 480p --stem funny -t "Funny guy" myvideo.dv + $PRG -p 480p --stem funny --filter "grain noise=20" myvideo.dv Options before input files are passed to melt producer, and after to melt avformat consumer. @@ -123,7 +123,7 @@ h264profile=baseline 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:,stem:,title:,filter:,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:,filter:,stem:,title:,sample:: -n "$PRG" -- "$@"`" || exit1 "Internal getopt error." eval set -- "$TEMP" while true ; do case "$1" in @@ -140,16 +140,9 @@ while true ; do --h264preset) h264preset="$2"; shift 2;; --webmpreset) webmpreset="$2"; shift 2;; --audio) audio="$2"; shift 2;; + --filter) filters="${filters:+$filters }-filter $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=yes; samplestart="${2:-0}"; shift 2;; --) shift; break;; *) exit1 "Internal error resolving options.";; |