diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-04-30 18:40:18 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-04-30 18:40:18 +0200 |
commit | eea0970a04e3cb740c0bb3a0ac7f2c3fd965331a (patch) | |
tree | 07174a10b2e33c5822c83b165e53cd995ae1e67f | |
parent | de99bc4db19f6056e7a7c644c21485a1ba22c622 (diff) |
Add option still-frame.
-rwxr-xr-x | localvideowebencode | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode index ecc32e7..fc3388c 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -103,6 +103,8 @@ html favoring open formats with optional non-JavaScript Flash fallback. (default: basename of first input) -t, --title Title used in html fallback graphics (default: stem) + --still-frame Frame used as still picture + (default: 0) --sample Create only a 150 frames long sample --sample-start Create sample, starting at a specific frame (default: start at first frame) @@ -139,6 +141,7 @@ exit1() { # defaults formats=webm,vp9,mp4 +stillframe=0 samplestart=0 samplelength=150 compression=normal @@ -152,7 +155,7 @@ factor_vp9=127/100 lufs=-18 # parse cmdline options -TEMP="`getopt -s sh -o hp:s:a:r:b:t: -l help,profile:,size:,aspect:,rate:,video:,refbpp:,formats:,audio:,audioprefilter:,loudness,loudness-data:,filter:,stem:,title:,sample,sample-start:,sample-length:,compression: -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:,formats:,audio:,audioprefilter:,loudness,loudness-data:,filter:,stem:,title:,still-frame:,sample,sample-start:,sample-length:,compression: -n "$PRG" -- "$@"`" || exit1 "Internal getopt error." eval set -- "$TEMP" while true ; do case "$1" in @@ -171,6 +174,7 @@ while true ; do --filter) filters="${filters:+$filters }-filter $2"; shift 2;; --stem) stem="$2"; shift 2;; -t|--title) title="$2"; shift 2;; + --still-frame) stillframe="$2"; shift 2;; --sample) sample=yes; shift;; --sample-start) sample=yes; samplestart="$2"; shift 2;; --sample-length) sample=yes; samplelength="$2"; shift 2;; @@ -642,7 +646,7 @@ fi rm -f $stem.xml $stem.wav $stem.mkv ${stem}_*.log ${stem}_*silent.webm # JPEG preview -$melt $infile_first in=0 out=0 \ +$melt $infile_first in=$stillframe out=$stillframe \ -group $filters \ -consumer avformat:$stem.jpg $_melt_img |