[kde-doc-english]Fwd: [kde-promo] VNC2SWF (making a flash demo movie) HowTo
Éric Bischoff
e.bischoff at noos.fr
Thu Feb 6 10:29:37 CET 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi doc writers,
That snippet could perharps be incorporated into the krdc's documentation :
- ---------- Pièce jointe ----------
Subject: [kde-promo] VNC2SWF (making a flash demo movie) HowTo
Date: Monday 03 February 2003 20:28
From: Tim Jansen <ml at tjansen.de>
To: kde-promo at mail.kde.org
VNC2SWF (making a flash demo movie) HowTo
- -----------------------------------------------------
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 with
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
using
vncserver -kill :10
Now edit the file $HOME/.vnc/xstartup to start kde instead of twm. Usually
the following should be enough:
#!/bin/sh
startkde&
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=port)
You should now be able to connect to your server using
krdc -h :10
or
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
http://www.unixuser.org/~euske/vnc2swf/ming-input-stream.patch
Unpack ming, enter the directory, patch it using
patch -p1 < path/to/ming-input-stream.patch
Compile and install:
make
su
make install
5. Install vnc2swf
Grab vnc2swf 0.2 from http://www.unixuser.org/~euske/vnc2swf/
Grab my mp3 patch from
http://www.unixuser.org/~euske/vnc2swf/vnc2swf-mp3.patch
Unpack vnc2swf, enter the directory and patch it using
patch -p1 < path/to/vnc2swf-mp3.patch
Compile and install:
xmkmf -a
make
su
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="test.swf" width="800" height="600"
type="application/x-shockwave-flash"></embed>
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
using
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.
- -------------------------------------------------------
- --
According to a recent survey, 82% of the citizens of the
European Union are against American planned invasion of Irak.
(EOS Gallup Europe, 15,080 people aged 15+, 21st to 27th January 2003)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE+QisBfYJTRPWp6rkRAoc0AJ4kl4ORs+Xre/d85sYW4boWIo4j2ACfdb4Z
to7a7gPiBKHCDY6J0f1ZkLg=
=aN5t
-----END PGP SIGNATURE-----
More information about the kde-doc-english
mailing list