Help - Search - Members - Calendar
Full Version: Record Your desktop
linux-noob.com/forums > Linux Noob > Tips and Tricks
hijinks
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">
anyweb
totally cool Jy ! now all i gotta do is try it out, can you post a swf file you have created with this method here just to see what its like ?

cheers

anyweb
hijinks
http://homer.meso.com/crap/demo.swf

Here it is embeded in html.. looks much better

http://homer.meso.com/crap/test.html

i'd have to re-size my vncserer's desktop in order for it to look better.
anyweb
will this howto work for fedora core release 3 ?
hijinks
it should
lerum
nice!

got my mouse doing an act laugh.gif
it worked on FC3!
xDamox
hijinks, how did you just get it to show a certian part of the screen not the whole thing?
joesnow99
tried in FC4 and got this error:

[root@js2 vnc2swf-0.4.2]# make
gcc -DHAVE_LIBZ=1 -DHAVE_LIBMING=1 -I. -DVNC_SOCKLEN_T=socklen_t -I/usr/X11R6/include -O2 -Wall -g -c argsresources.c
gcc -DHAVE_LIBZ=1 -DHAVE_LIBMING=1 -I. -DVNC_SOCKLEN_T=socklen_t -I/usr/X11R6/include -O2 -Wall -g -c colour.c
colour.c: In function ‘SetupBGR233Map’:
colour.c:449: warning: pointer targets in passing argument 3 of ‘XFreeColors’ differ in signedness
gcc -DHAVE_LIBZ=1 -DHAVE_LIBMING=1 -I. -DVNC_SOCKLEN_T=socklen_t -I/usr/X11R6/include -O2 -Wall -g -c desktop.c
desktop.c:32: error: static declaration of ‘gc’ follows non-static declaration
vncviewer.h:161: error: previous declaration of ‘gc’ was here
desktop.c:33: error: static declaration of ‘srcGC’ follows non-static declaration
vncviewer.h:162: error: previous declaration of ‘srcGC’ was here
desktop.c:33: error: static declaration of ‘dstGC’ follows non-static declaration
vncviewer.h:162: error: previous declaration of ‘dstGC’ was here
desktop.c:34: error: static declaration of ‘desktopWin’ follows non-static declaration
vncviewer.h:160: error: previous declaration of ‘desktopWin’ was here

make: *** [desktop.o] Error 1


what do u suggest?
znx
QUOTE (joesnow99 @ Aug 16 2005, 09:49 AM)
CODE
vncviewer.h:160: error: previous declaration of ‘desktopWin’ was here
make: *** [desktop.o] Error 1


looks like one of the strange things that happens with gcc. as the developers of gcc strive to increase more strict conformance to the 'rules' of c code they inadvertantly break sloppy code. so as strange as it sounds you probably have 'too new' a version of gcc. this is a fault with vnc2swf, not gcc, the coding isn't up to scratch, hopefully the author is aware of it and will release a new patch to fix it.

i notice that there is a python version of this utility.. maybe give it a try? http://www.unixuser.org/~euske/vnc2swf/
dasunst3r
Another program you could use is called Wink: www.debugmode.com/wink
joesnow99
ty i'll check it out //both
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.