diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-09-05 15:23:19 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-09-05 15:23:19 +0200 |
commit | 31ebec0399c05f2f1ae9f1b1807f8f3266faed1a (patch) | |
tree | 9647547f331cdf40c3ace8e30c2cc735af52d1bf /localvideowebencode | |
parent | 508b84b75b3acb758c093504bc18cf584c07118c (diff) |
Make output size mandatory, and add TODOs in improvinglater.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-x | localvideowebencode | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode index 070f150..7aaca47 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -13,8 +13,10 @@ set -e infile="$1"; shift filebase=$(echo "$infile" | perl -pe 's/\.[^.]*//') -# output size in WIDTHxHEIGHT (optional, default: 320x200) -size=${1:-320x200} +# output size in WIDTHxHEIGHT (mandatory) +# TODO: Make optional with input size as default +# TODO: Make each half of size optional with default resolved from input aspect ratio +size="$1"; shift width=$(echo "$size" | perl -pe 's/[^x]*x//') height=$(echo "$size" | perl -pe 's/x[^x]*//') heightplus=${height:+$(($height+4))} |