Using recordMyDesktop to screencast live!

2008-08-25
2013-06-03
  • Hi,

    While trying to find a solution to have a software like ManyCam for windows in Ubuntu, I finally found a way to screencast the desktop as a virtual webcam.

    All is needed is recordMyDesktop, ffmpeg, flashcam and mjpegtools_yuv_to_v4l.

    See: http://blog.patrickballeux.com/2008/08/ubuntu-et-une-webcam-virtuelle.html for complete details and scripts (sorry, in french...)

    Here is my small scripts that I use on Stickam to broadcast my destop thru the vloopback of Flashcam:
    *******************
    mkfifo stream.ogg
    sudo modprobe vloopback
    echo "CTRL-C to stop the capture"
    sleep 5
    recordmydesktop -width 320 -height 240 -fps 15 --no-sound --on-the-fly-encoding --follow-mouse --overwrite -o stream.ogg & sleep 10 & ffmpeg -i stream.ogg -an -s 320x240 -r 15 -f yuv4mpegpipe - | mjpegtools_yuv_to_v4l /dev/video2
    killall recordmydesktop
    rm stream.ogg

    ******************

    What would be great is that recordMyDesktop would be able to write directly to a vloopback device.  Then no need for flashcam, ffmpeg and mjpegtools_yuv_to_v4l. 

    My 2 cents

    Patrick Balleux
    http://blog.patrickballeux.com