if [ -z "$AUDIOSRC" ]; then AUDIOSRC=`gconftool-2 -g /system/gstreamer/0.8/default/audiosrc` fi if [ -z "$AUDIOSRC" ]; then AUDIOSRC=alsasrc fi if [ -z "$VIDEOSINK" ]; then VIDEOSINK=`gconftool-2 -g /system/gstreamer/0.8/default/videosink` fi if [ -z "$VIDEOSINK" ]; then VIDEOSINK=xvimagesink fi VIS=goom if [ $# -ge 1 ]; then VIS=$1 fi echo Using visualisation: $VIS gst-launch $AUDIOSRC ! audio/x-raw-int,rate=44100,channels=2\;audio/x-raw-float,rate=44100,channels=2 ! { queue max-size-time=250000000 ! audioconvert ! $VIS ! \ video/x-raw-rgb,width=\[128,512\],height=\[128,512\],framerate=25.0\;video/x-raw-yuv,width=\[128,512\],height=\[128,512\],framerate=25.0 ! \ videoscale ! video/x-raw-rgb,width=320,height=240,framerate=25.0\;video/x-raw-yuv,width=320,height=240,framerate=25.0 ! \ ffmpegcolorspace ! $VIDEOSINK } $@