[From nobody Sat Aug 10 21:40:46 2019 Return-Path: <kde-promo-admin@mail.kde.org> Delivered-To: ossi@master.kde.org Received: (qmail 8275 invoked by uid 1055); 3 Feb 2003 19:30:17 -0000 Delivered-To: kde.org-ossi@kde.org Received: (qmail 8229 invoked from network); 3 Feb 2003 19:30:13 -0000 Received: from localhost (HELO ktown.kde.org) (127.0.0.1) by localhost with SMTP; 3 Feb 2003 19:30:13 -0000 Return-Path: <ml@tjansen.de> Delivered-To: kde-promo@mail.kde.org Received: (qmail 7820 invoked from network); 3 Feb 2003 19:29:03 -0000 Received: from mailout11.sul.t-online.com (194.25.134.85) by kde.informatik.uni-kl.de with SMTP; 3 Feb 2003 19:28:31 -0000 Received: from fwd10.sul.t-online.de by mailout11.sul.t-online.com with smtp id 18fmGa-00016h-05; Mon, 03 Feb 2003 20:28:28 +0100 Received: from 192.168.0.101 (520059241914-0001@[217.226.21.89]) by fmrl10.sul.t-online.com with esmtp id 18fmGV-10Hqr2C; Mon, 3 Feb 2003 20:28:23 +0100 From: Tim Jansen <ml@tjansen.de> User-Agent: KMail/1.5.9 Content-Disposition: inline To: kde-promo@mail.kde.org Message-Id: <200302032028.30486.ml@tjansen.de> X-Sender: 520059241914-0001@t-dialin.net X-Spam-Status: No, hits=1.8 required=5.5 tests=HTML_EMBEDS,RCVD_IN_OSIRUSOFT_COM,SPAM_PHRASE_02_03, USER_AGENT,USER_AGENT_KMAIL,X_OSIRU_DUL,X_OSIRU_DUL_FH version=2.43 X-Spam-Level: * Subject: [kde-promo] VNC2SWF (making a flash demo movie) HowTo Resent-Sender: kde-promo-admin@mail.kde.org Resent-From: kde-promo@mail.kde.org X-Mailing-List: <kde-promo@mail.kde.org> Sender: kde-promo-admin@mail.kde.org Errors-To: kde-promo-admin@mail.kde.org X-BeenThere: kde-promo@mail.kde.org X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: kde-promo@mail.kde.org X-Reply-To: kde-promo@mail.kde.org List-Unsubscribe: <http://mail.kde.org/mailman/listinfo/kde-promo>, <mailto:kde-promo-request@mail.kde.org?subject=unsubscribe> List-Id: For advocates and promotion of KDE through articles, advocacy, announcements, etc. <kde-promo.mail.kde.org> List-Post: <mailto:kde-promo@mail.kde.org> List-Help: <mailto:kde-promo-request@mail.kde.org?subject=help> List-Subscribe: <http://mail.kde.org/mailman/listinfo/kde-promo>, <mailto:kde-promo-request@mail.kde.org?subject=subscribe> List-Archive: <http://mail.kde.org/pipermail/kde-promo/> X-Original-Date: Mon, 3 Feb 2003 20:28:30 +0100 Date: Mon, 3 Feb 2003 20:28:30 +0100 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 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. ]