diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-09-27 13:13:29 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-09-27 13:13:29 +0200 |
commit | 8bbc70a18c36c22c28b28d160a8098e8083a42eb (patch) | |
tree | 22367d578c0a84395eadd7db83f4915c3d40c47c /localvideowebencode | |
parent | 5ca22e61549bf978e54485f3b960d064bcdcdd64 (diff) |
Fix apply --size.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-x | localvideowebencode | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/localvideowebencode b/localvideowebencode index a0a90c6..3b0a5d2 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -166,9 +166,10 @@ stem=${stem:-$(basename "$infile_first" | perl -pe 's/\.[^.]*//')} title=${title:-$stem} case "$profile" in + '') :;; *@*) while read s r foo; do - size="${size:-$s}" + profilesize="${size:-$s}" framerate="${framerate:-$r}" done << EOF $(echo "$profile" | perl -F@ -anE 'say join " ", @F') @@ -176,14 +177,14 @@ EOF ;; *p*) while read s r foo; do - size="${size:-${s}p}" + profilesize="${size:-${s}p}" framerate="${framerate:-$r}" done << EOF $(echo "$profile" | perl -Fp -anE 'say join " ", @F') EOF ;; *) - size="$profile" + profilesize="$profile" ;; esac @@ -200,6 +201,7 @@ case "$size" in 720p|wxga|hd) size=1280x720;; esac +size=${size:-$profilesize} if [ -n "$size" ]; then while read w h foo; do width="${width:-$w}" |