[kde-edu]: Fwd: [kde-promo] VNC2SWF (making a flash demo movie) HowTo

Eva Brucherseifer kde-edu@kde.org
Tue, 4 Feb 2003 01:00:49 +0100

Hash: SHA1

On kde-promo the making of movie-presentations of the desktop was discussed=
and Tim Jansen wrote a little howto.=20
Should we put it on our webpage?

Have fun,

=2D ----------  Forwarded Message  ----------

Subject: [kde-promo] VNC2SWF (making a flash demo movie) HowTo
Date: Monday 03 February 2003 20:28
=46rom: Tim Jansen <ml@tjansen.de>
To: kde-promo@mail.kde.org

VNC2SWF (making a flash demo movie) HowTo
=2D -----------------------------------------------------

1. Install vncserver
Install vncserver, which is hopefully part of your distribution. Suse calls
the package "vnc". Otherwise get it from www.tightvnc.com. Try to find rpms
 as compilation is not trivial (vncserver is actually a XFree 3.3.x fork wi=
 a special VNC graphics driver).

2. Change vncserver startup script
If you have never used vncserver before, start it using

        vncserver :10

It will ask you for a password and create create its configuration directory
in $HOME/.vnc (this is the only purpose of this exercise). Then shut it down

        vncserver -kill :10

Now edit the file $HOME/.vnc/xstartup to start kde instead of twm. Usually
 the following should be enough:


3. Start vncserver
Now start vncserver for the first time with KDE:

        vncserver -geometry 800x600 :10

800x600 is the resolution, you can use any other resolution. :10 is the
display number. Every other display number under 100 is fine, I just took 10
to avoid a conflict with Desktop Sharing servers. (Like X11 vnc uses the
display number for the port of the server, displaynumber+5900=3Dport)

You should now be able to connect to your server using

        krdc -h :10


        vncviewer :10

(-h tells krdc that it is a fast connection, it is like selecting "high
quality" in the dialog)

4. Install ming
Grab ming 0.2a from http://ming.sourceforge.net/.
Grab my ming patch from
Unpack ming, enter the directory, patch it using
        patch -p1 < path/to/ming-input-stream.patch
Compile and install:
        make install

5. Install vnc2swf
Grab vnc2swf 0.2 from http://www.unixuser.org/~euske/vnc2swf/
Grab my mp3 patch from
Unpack vnc2swf, enter the directory and patch it using
        patch -p1 < path/to/vnc2swf-mp3.patch

Compile and install:
        xmkmf -a
        make install

6. Record your movie

        vnc2swf -dumpfile test.swf -framerate 15 :10

Replace test.swf with the name/path of your flash file, and change framerate
if you like to. :10 is the display number of the vncserver. You stop the
recording by closing the window.

If you want a mp3 soundtrack, use

        vnc2swf -dumpfile test.swf -soundfile sound.mp3 -framerate 15

vnc2swf does not re-encode your mp3, so you probably want to encode the mp3
with settings that dont need too much bandwidth (22 khz/mono/32 kbit is ok
and does not sound too bad, especially for voice).

I haven't managed to get live recording to work, since all recording tools
seem to write the sound data in large chunks - vnc2swf would need a real
streaming input.

7. Create the HTML page

To embed the movie in a HTML page, you need to upload the *.swf file and use
the following tag in a HTML page:
<embed src=3D"test.swf" width=3D"800" height=3D"600"

The src must contain the path to the swf file, width and height must match
 the vncserver geometry of your recording.

8. Stop the vncserver

If you are finished with recording or want to restart the server, kill it

        vncserver -kill :10

This message is from the kde-promo mailing list.

Visit http://mail.kde.org/mailman/listinfo/kde-promo to unsubscribe, set
 digest on or temporarily stop your subscription.

=2D -------------------------------------------------------
Version: GnuPG v1.0.7 (GNU/Linux)