Desktop Screen Recorder for UNIX, Linux, Windows or Mac.
Download:
http://pypi.python.org/pypi/vnc2flv/
Discussion: (for questions and comments, post here)
http://groups.google.com/group/vnc2flv-users/
View the source:
http://code.google.com/p/vnc2flv/source/browse/trunk/vnc2flv
Vnc2flv is a cross-platform screen recording tool for UNIX, Windows or Mac. It captures a VNC desktop session (either your own screen or a remote computer) and saves as a Flash Video (FLV) file.
(Vnc2flv is a rewrite of its predecessor, vnc2swf. As FLV format is more prevalent today, vnc2flv is specialized for FLV format and aims at a simpler and more lightweight functionality.)
Demo: (created with vnc2flv itself)
setup.py
to install:# python setup.py install
Here is an additional instruction for Windows:
> python setup.py build -c mingw32 install
vnc2flv comes with several programs:
flvrec.py
is the main recording program.
It connects to a specified VNC server and
immediately starts recording.
It stops when it receives a SIGINT (or Ctrl-C is pressed).
You need to have a VNC server running on the target machine in advance.
The generated file is playable via either desktop programs like ffmpeg, VLC or mplayer, or other online Flash-based players.
flvrec.py [options] [host[:display]]
or
flvrec.py [options] [host [port]]
$ x11vnc -quiet -localhost -viewonly -nopw -bg (start up a vnc server) The VNC desktop is: localhost:0 PORT=5900 ****************************************************************************** Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet? The scheme stores pixel data offscreen on the VNC viewer side for faster retrieval. It should work with any VNC viewer. Try it by running: x11vnc -ncache 10 ... more info: http://www.karlrunge.com/x11vnc/#faq-client-caching $ flvrec.py localhost:0 (Record a local desktop) $ flvrec.py -C 640x480+0-0 remotehost:0 (Record a remote desktop with a 640x480 window at the bottom left of the screen.) $ flvrec.py -S 'arecord sample.wav' (Record a local desktop and capture audio input simultaneously using the ALSA recording utility)
-o filename
-r fps
-K keyframe
-P pwdfile
-N
-e encoding,encoding,...
-B blocksize
-C wxh{+|-}x{+|-}y
-S commandline
-d
flvcat.py
is a simplistic editing program for a FLV movie.
It supports concatenating multiple movies, clipping a movie's
frame size, re-sampling a movie into a smaller size with auto-panning,
etc.
flvcat.py [options] src1[:ranges1] src2[:ranges2] ... output
For each movie file, you can clip the parts of the movie to add by specifying its ranges. Ranges is comma-separated, hyphenated list of milliseconds. For example,
out.flv:10000-20000
means a 10-second clip from movie out.flv
(0:10-0:20).
Specifying only one end of the range is also supported:
out.flv:10000-
means the entire movie except the first 10 seconds.
When ranges are omitted, the whole movie is used.
$ flvcat.py movie1.flv movie2.flv output.flv (Concatenate movie1.flv and movie2.flv and save it as output.flv) $ flvcat.py -W 640x480 movie1.flv output.flv (Resize the movie1.flv with auto-panning with its window size 640x480 and save it as output.flv) $ flvcat.py movie1.flv:15000-30000 output.flv (Clip the part of movie1.flv from 0:15 to 0:30 and save it as output.flv) $ flvcat.py movie1.flv:2500- output.flv (Chop the first 2.5 seconds off and save it as output.flv)
-r fps
-K keyframe
-B blocksize
-C wxh{+|-}x{+|-}y
-W wxh
-S speed
-f
Add mp3 audio files to a movie.
flvaddmp3.py [options] src mp3file1[:ranges] mp3file2[:ranges] ... output
-f
Split a movie file into shorter clips. This can be used to chop movies into several chunks in order to fit each of them within the length limitation in several movie sites (e.g. YouTube).
flvsplit.py [options] src dstbase
-f
-r fps
-K keyframe
-B blocksize
-D duration
-P overlap
This program dumps the contents of a FLV file. This is used solely for debugging purposes.
flvdump.py [options] flvfile
This program is a shell script that launches a VNC server (x11vnc
),
the screen recorder (flvrec.py
) and
a voice recorder (arecord
), and combines the output files into a
single playable FLV file. A recording area in the screen can be either an entire desktop
or a single window. In the latter case, a target window can be chosen by
giving the window ID or window name, or simply click a window after
a prompt cursor appears. When a filename is unspecified,
a generated movie is automatically given a unique filename.
recordwin.sh [options] [filename]
-all
-name window_name
-id window_id
-display display_name
flvrec.py
can designate a child process to record audio during recording.
By giving -S
option, the specified command line is executed
when the recording is started. The child process can capture audio input and
encode it as an appropriate format. The process is terminated
when the recording is stopped. To put it onto an FLV movie, the audio needs to be
encoded as MP3 format. After the recording is finished, the user can
use the flvaddmp3.py
command
to combine the movie and audio output.
NOTICE: The audio sampling rate must be one of the following: 5500Hz, 11025Hz, 22050Hz, or 44100Hz.
$ flvrec.py -S 'arecord -f cd out.wav'
$ lame out.wav out.mp3
or$ flvaddmp3 out200908122312.flv out.mp3 final.flv
$ recordwin.sh
recordwin.sh
is a script for making these tasks easy.
It launches a VNC server and automatically does the things described above.
Currently the following free/opensource embeddable movie players are known to work with vnc2flv:
Copyright (c) 2009 Yusuke Shinyama <yusuke at cs dot nyu dot edu>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.