diff options
-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))} |