#!/bin/sh
# (C) Matthew Manjos, 2007
# Released under the GPL
# http://www.gnu.org/licenses/gpl.html

echo "(1) Black and White - by aalib"
echo "(2) Color - by caca"
echo "(3) Normal video"

read -e CHOICE

if (( CHOICE == 1 ))
then
{
	mplayer -vo aa:extended:driver=X11:reverse tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:fps=10:outfmt=yuy2
} fi
if (( CHOICE == 2 ))
then
{
	mplayer -vo caca tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:fps=10:outfmt=yuy2
} fi
if (( CHOICE == 3 ))
then
{
	mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:fps=10:outfmt=yuy2
} fi
