们 需要将在 Linux 桌面上的操作过程录制下来,比如制作屏幕演示、视频教学等。这里将介绍在 Linux 下值得使用的 5 个屏幕录像软件,包括 Istanbul、Wink、Xvidcap、Vnc2swf、Recordmydesktop,希望对有此需求的朋友提供参考。

1. Istanbul 使用 Istanbul,你可以将 Linux 屏幕上的一切操作过程录制下来。Istanbul 既能够按照你的需要录制全屏、区域或者窗口,也可以录制声音和鼠标指针,最终会生成 Ogg Theora 格式的视频文件。
2. Wink Wink 是录制 Flash 视频演示的极好工具,除支持 Linux 平台外,也能够在 Windows 系统上运行。你可以使用 Wink 为所录制的文件添加文字说明和声音旁白。
3. Xvidcap Xvidcap 支持生成 avi、mpeg、asf、flv、swf、mov 等视频格式,可以应用在各种场合。录制的区域也可以随意选择,显得非常方便。
4. Vnc2swf Vnc2swf 是继 Wink 外适合在 Linux 中使用的另一个 Flash 录制工具,但比 Wink 稍微要难用点,而且也没有 Wink 功能全面。
5. Recordmydesktop Recordmydesktop 功能主要有:可录制全屏、窗口,也可以录制选择的区域;除了能够录制视频的基本功能之外,还能够录制音频;有一些录制的

参数可以调整;生成的视频格式为 ogg。它默认提供 GTK+ 界面,另外也有一个适合 KDE 桌面环境的 reKordmydesktop。

在这里讲一下怎么安装recordmydesktop.

下载软件:

  1. # wget http://sourceforge.net/projects/recordmydesktop/files/recordmydesktop/0.3.8.1/recordmydesktop-0.3.8.1.tar.gz
  2. # wget http://sourceforge.net/projects/recordmydesktop/files/gtk-recordMyDesktop/0.3.8/gtk-recordmydesktop-0.3.8.tar.gz

我采用的是源代码编译安装,先介绍一下上面的两个软件包,

第一个是主程序

第二个是界面配置工具,我采用的是Gnome界面所以下载了gtk版本

先安装第一个主程序(下面是官方发布的安装说明):

You will need the development headers(i.e. packages ending with -dev or -devel(在安装软件时先查看下面的包是否正确安装,这是包依赖包)
depending on the distribution you use) for the following:
X
libICE-dev
libSM-dev
libXext
libXdamage
libXfixes
libogg
libvorbis
libtheora

 If you got a release tarball, to compile the program you have to go through the regular drill:(这个是安装过程利用这个 就可以)

~$ gzip -d recordmydesktop-x.y.z.tar.gz
~$ tar -xvf recordmydesktop-x.y.z.tar
~$ cd recordmydesktop-x.y.z
~$ ./configure
~$ make
~$ sudo make install

最好就是先把上面所列的依赖包安装好,在centos 6上的安装过程:

  1. # tar -zxvf /root/Downloads/recordmydesktop-0.3.8.1.tar.gz 
  2. # tar zxvf /root/Downloads/gtk-recordmydesktop-0.3.8.tar.gz 
  3. # cd recordmydesktop-0.3.8.1/
  4. # ./configure –prefix=/usr/local/recordmydesktop
  5. configure: error: Can't find libXfixes
  6. # yum install libXfixes-devel
  7. # ./configure –prefix=/usr/local/recordmydesktop
  8. configure: error: Can't find libXdamage
  9. # yum install libXdamage*
  10. # ./configure –prefix=/usr/local/recordmydesktop
  11. configure: error: Can't find libvorbis
  12. # yum install libvorbis-devel
  13. # ./configure –prefix=/usr/local/recordmydesktop
  14. configure: error: Can't find libtheora
  15. # yum install libtheora-devel
  16.  ./configure prefix=/usr/local/recordmydesktop
  17. # make
  18. # make install

另外 语音的支持:
If you want to compile with ALSA support, you will also
need the libasound headers.If they are not found, OSS
will be used and you must have the sys/soundcard.h header.
To use OSS regardless of whether or not you have the ALSA
headers, you can use the –enable-oss switch during
configuration.

Last, you need the regular headers, plus the ones for pthreads
(both of which you should have if you have compiled anything else before).

Of the above, the most likely to be missing are probably those of libXdamage and libtheora
but any recent linux distribution should offer an easy way to get them.

安装完成,采用recordmydesktop 来测试一下

  1. # ln -/usr/local/recordmydesktop/bin/* /usr/local/bin/
  2. # recordmydesktop
  3. Recording is finished.
  4. recordMyDesktop has exited with status:768
  5. Description:Could not open/configure sound card.
  6. ## 报如上错误,会提示使用 –no-sound 启动 ##
  7. # /usr/local/recordmydesktop/bin/recordmydesktop  –no-sound

测试成功后按ctrl+c取消后会自动保存文件为out.ogv。。。

安装第二个界面配置软件(复制官方安装说明);

 DEPENDENCIES:
(利用yum检查依赖包)
GNU automake >=1.5
Python >= 2.4
PyGTK>=2.10 or PyGTK>=2.8 with gnome-python-extras >= 2.11.3  (Be carefull since this is checked on runtime. )
recordMyDesktop 0.3.5

To compile the program you have to go through the regular drill:
(安装步骤)
~$ gzip -d gtk-recordmydesktop-x.y.z.tar.gz
~$ tar -xvf gtk-recordmydesktop-x.y.z.tar
~$ cd gtk-recordmydesktop-x.y.z
~$ ./configure –prefix=/usr/
~$ make
~$ sudo make install

The –prefix=/usr/ option might not be necessary, but it
will prevent some problems when running the program
(if you get messages about module recordMyDesktop not found,
you have to use it).

After this you should get a menu entry under multimedia.
If you don't get one even after a logout/login from your WM
you can launch the program from a terminal like this:

~$ gtk-recordMyDesktop (命令运行)

在centos 6上安装gtk-recordmydesktop时,报如下错误:

configure: error: You need pygtk >=2.4 and the appropriate development headers to proceed

很明显的没有把依赖包装上,执行如下命令即可:

  1. # yum install pygtk2-devel
  2. # ./configure –prefix=/usr/local/recordmydesktop/gtk-recordmydesktop
  3. # make && make install
  4. # ln -s /usr/local/recordmydesktop/gtk-recordmydesktop/bin/* /usr/local/bin/

安装成功后,直接打开/usr/local/bin目录,把 gtk-recordmydesktop 文件拖到桌面上边栏,任意命名,如RecordMyDesktop,点击图标到/usr/local/recordmydesktop/gtk- recordmydesktop/share/pixmaps/选择icon,这样就在桌面上边栏生成了recordmydesktop的快捷方式 了。。。

本文资料来源于互联网,如需查看原文,可到 http://cysky.blog.51cto.com/211942/563550。。。

0
奇谭
热衷开源,痴迷Linux
 

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

姓名 *

站点

评论

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

LINUX技术交流群

致力于Linux技术交流、开源共享!
共同学习、共同进步!

QQ群:291809453

期待你的加入!

点击这里给我发消息