diff options
Diffstat (limited to 'tools/image_text')
-rw-r--r-- | tools/image_text | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/tools/image_text b/tools/image_text index d67e9c8..97ee450 100644 --- a/tools/image_text +++ b/tools/image_text @@ -17,7 +17,6 @@ SIZE=`./video_resolution $1` COUNTER=$2 BGCOLOR=$3 -# NEW #### COUNT1=`echo $4 | wc -c` COUNT2=`echo $5 | wc -c` @@ -27,30 +26,25 @@ SIZE2="0" if [ $COUNT1 -ge "30" ] ; then SIZE1="30" SIZE2=`echo $SIZE1-10|bc` + echo "Size1: $SIZE1 - Size2: $SIZE2" elif [ $COUNT1 -ge "25" ] ; then SIZE1="40" SIZE2=`echo $SIZE1-10|bc` + echo "Size1: $SIZE1 - Size2: $SIZE2" elif [ $COUNT1 -ge "20" ] ; then SIZE1="50" SIZE2=`echo $SIZE1-20|bc` + echo "Size1: $SIZE1 - Size2: $SIZE2" else SIZE1="60" - SIZE2=`echo $SIZE1-20|bc` -fi + if [ $COUNT2 -ge "25" ] ; then + SIZE2=`echo $SIZE1-30|bc` + else + SIZE2=`echo $SIZE1-20|bc` + fi - -#if [ $COUNT1 -ge "25" ] || [ $COUNT2 -ge "25" ] ; then -# echo "25 eller over" -#echo "$1. count1: $COUNT1, count2: $COUNT2" -# SIZE1="40" -# SIZE2="20" -#else -# echo "under 25" -#echo "$1. count1: $COUNT1, count2: $COUNT2" -# SIZE1="60" -# SIZE2="40" -#fi -######### + echo "Size1: $SIZE1 - Size2: $SIZE2" +fi if [ -z "$4" ]; then echo "Usage: $0 <video-file> <counter> <bg-color> <text1> [<text2>]" |