diff --git a/scripts/output2screen b/scripts/output2screen index 2403658..79dafc1 100755 --- a/scripts/output2screen +++ b/scripts/output2screen @@ -2,12 +2,14 @@ # Deliver mixer1 output to screen. # Taken from the original snowmix sources -if [ -z "$1" ]; then - echo "Usage $0 " +if [ -z "$1" -o -z "$2" -o -z "$3" ]; then + echo "Usage $0 " exit fi remote_ip="$1" +width="$2" +height="$3" tmpfile=/tmp/output2screen.tmp.$$ echo 'system info' | nc 127.0.0.1 9999 >$tmpfile @@ -40,7 +42,7 @@ width=`echo $geometry |cut -f1 -d' '` height=`echo $geometry |cut -f2 -d' '` MIXERFORMAT=$VIDEO', bpp=(int)32, depth=(int)32, endianness=(int)4321, format=(fourcc)BGRA, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)'$width', height=(int)'$height', framerate=(fraction)'$ratefraction', pixel-aspect-ratio=(fraction)1/1, interlaced=(boolean)false' -OUTPUTFORMAT=$VIDEO', width=1024, height=768' +OUTPUTFORMAT=$VIDEO', width='$width', height='$height while true ; do