#! /bin/sh if [ -z "$2" ]; then echo "Usage: $0 width height [fps [bpp]]" exit 1 fi width="$1" height="$2" if [ -z "$3" ]; then fps=25 else fps="$3" fi if [ -z "$4" ]; then bpp=0.15 else bpp="$4" fi echo bitrate = "$width * $height * $fps * $bpp / 1000" = `expr $width * $height * $fps * $bpp / 1000`