#! /bin/sh
gst-launch-0.10 videotestsrc pattern=smpte is-live=true \
               ! video/x-raw-yuv,width=720,height=576,framerate=\(fraction\)25/1 \
	       ! videorate \
	       ! video/x-raw-yuv,framerate=\(fraction\)25/2 \
	       ! videoscale \
	       ! video/x-raw-yuv,width=176,height=144 \
	       ! ffmpegcolorspace \
	       ! textoverlay font-desc="Helvetica 32" text="0" halignment=left valignment=bottom xpad=10 ypad=10 shaded-background=False \
	       ! videobox alpha=1 border-alpha=0 fill=0 top=0 left=0 right=-704 \
	       ! video/x-raw-yuv,width=880,height=144 \
	       ! queue \
	       ! VideoMixer. \
	       videotestsrc pattern=smpte is-live=true \
	       ! video/x-raw-yuv,width=720,height=576,framerate=\(fraction\)25/1 \
	       ! videorate \
	       ! video/x-raw-yuv,framerate=\(fraction\)25/2 \
	       ! videoscale \
	       ! video/x-raw-yuv,width=176,height=144 \
	       ! ffmpegcolorspace \
	       ! textoverlay font-desc="Helvetica 32" text="1" halignment=left valignment=bottom xpad=10 ypad=10 shaded-background=False \
	       ! videobox alpha=1 border-alpha=0 fill=0 top=0 left=-176 right=-528 \
	       ! video/x-raw-yuv,width=880,height=144 \
	       ! queue \
	       ! VideoMixer. \
	       videotestsrc pattern=smpte is-live=true \
	       ! video/x-raw-yuv,width=720,height=576,framerate=\(fraction\)25/1 \
	       ! videorate \
	       ! video/x-raw-yuv,framerate=\(fraction\)25/2 \
	       ! videoscale \
	       ! video/x-raw-yuv,width=176,height=144 \
	       ! ffmpegcolorspace \
	       ! textoverlay font-desc="Helvetica 32" text="2" halignment=left valignment=bottom xpad=10 ypad=10 shaded-background=False \
	       ! videobox alpha=1 border-alpha=0 fill=0 top=0 left=-352 right=-352 \
	       ! video/x-raw-yuv,width=880,height=144 \
	       ! queue \
	       ! VideoMixer. \
	       videotestsrc pattern=smpte is-live=true \
	       ! video/x-raw-yuv,width=720,height=576,framerate=\(fraction\)25/1 \
	       ! videorate \
	       ! video/x-raw-yuv,framerate=\(fraction\)25/2 \
	       ! videoscale \
	       ! video/x-raw-yuv,width=176,height=144 \
	       ! ffmpegcolorspace \
	       ! textoverlay font-desc="Helvetica 32" text="3" halignment=left valignment=bottom xpad=10 ypad=10 shaded-background=False \
	       ! videobox alpha=1 border-alpha=0 fill=0 top=0 left=-528 right=-176 \
	       ! video/x-raw-yuv,width=880,height=144 \
	       ! queue \
	       ! VideoMixer. \
	       videotestsrc pattern=smpte is-live=true \
	       ! video/x-raw-yuv,width=720,height=576,framerate=\(fraction\)25/1 \
	       ! videorate \
	       ! video/x-raw-yuv,framerate=\(fraction\)25/2 \
	       ! videoscale \
	       ! video/x-raw-yuv,width=176,height=144 \
	       ! ffmpegcolorspace \
	       ! textoverlay font-desc="Helvetica 32" text="4" halignment=left valignment=bottom xpad=10 ypad=10 shaded-background=False \
	       ! videobox alpha=1 border-alpha=0 fill=0 top=0 left=-704 right=0 \
	       ! video/x-raw-yuv,width=880,height=144 \
	       ! queue \
	       ! VideoMixer. \
	       videomixer name=VideoMixer \
	       ! queue \
	       ! ffmpegcolorspace \
	       ! video/x-raw-rgb,width=880,height=144,framerate=\(fraction\)25/2 \
	       ! queue \
	       ! ximagesink
