I have used this to create video FAQs when I do a GUI app for clients that pay for my work. It adds that bit of professional touch
First we have to install the ming libraries. This lets us create flash movies. NOTE: vnc2swf does not work with ming v.3 at the time of writting this
Code:
wget http://unc.dl.sourceforge.net/sourceforge/ming/ming-0.2a.tgz
tar zxfv ming-0.2a.tgz
cd ming-0.2a
make
make install
ldconfig -v
Now that our ming library is installed.. Lets download and compile vnc2swf which we will use to grab a vnc session and turn it into a flash movie file.
Code:
wget http://www.unixuser.org/~euske/vnc2swf/vnc2swf-0.4.2.tar.gz
tar zxfv vnc2swf-0.4.2.tar.gz
cd vnc2swf-0.4.2
./configure --prefix=/usr
make
make install
Now that vncrec is installed. We have to start a vncserver. You can use any vncserver you want. I assume you have one up and running. So now we run the following command as the user that started the XServer
Code:
vnc2swf -truecolour -startrecording demo.swf localhost:1
Now you should have a demo.swf file in the same directory you ran that command in. NICE! You should be able to view that in a browser now or some flash viewer.
Now we can add some nice tags to improve our little flash file
Code:
-soundfile <mp3-to-play> # That will loop a mp3 file while the demo is playing
-framerate <frames-per-sec> # will change the framerate to make it smoother or to conserve filesize
From there we can import it into a webpage by using the following code
Code:
<embed src="demo.swf" width="600" height="400" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">