$ wget -c http://www.swift-tools.net/Flashcam/flashcam-1.4.5.tgz
$ tar xfzv flashcam-1.4.5.tgz
$ cd flashcam-1.4.5
$ make
$ sudo make install
$ wget http://sourceforge.net/projects/webcamstudio/files/WebcamStudio4Linux/0.56/webcamstudio_0.56_all.deb/download
$ sudo gbedi webcamstudio_0.56_all.deb
$ wget http://panteltje.com/panteltje/mcamip/mjpegtools_yuv_to_v4l-0.2.tgz
$ tar xfzv mjpegtools_yuv_to_v4l-0.2.tgz
$ cd mjpegtools_yuv_to_v4l-0.2
$ make
$ sudo make install
Stop/Start fcinit (vloopback) and webcamstudio (in order to asign /dev/video[1|2] to vloopback and /dev/video[3|4] to webcamstudio)
$ sudo /etc/init.d/webcamstudio stop
$ sudo /etc/init.d/fcinit restart
$ sudo /etc/init.d/webcamstudio start
[tty1] $ startx -- :0.0
[tty2] $ startx -- :1.0
$ xrandr -d :1.0 -s 640x480
$ ffmpeg -f x11grab -s 640x480 -r 5 \
-i :1.0 -pix_fmt yuv420p -s 320x240 -r 5 -f yuv4mpegpipe -an - | \
mjpegtools_yuv_to_v4l /dev/video2
$ mplayer -vo gl2 -display :1.0 -fs /path/to/file
Start grabbing DISPLAY :1.0 to fill USTREAM stream.
LVDS1 primary left, VGA1 (640x480) right at DISPLAY :0.0
chvt N (ttyN with DISPLAY :1.0) and xrandr --same-as (man xrandr)
sleep
$ ./cineforiano.sh
xrandr VGA1 --right-of LVDS1 (man xrandr again :) and chvt (DISPLAY :0.0)
Webcam/Mic to USTREAM