unbuntu下vnc和vnc2swf的使用

来源:互联网 发布:淘宝客丢单如何找回 编辑:程序博客网 时间:2024/05/21 15:00

安装:sudo apt-get install vnc4server,vncviewer

默认vnc2swf安装了的。

pyvnc2swf的说明文档:http://www.unixuser.org/~euske/vnc2swf/pyvnc2swf.html

1. 先建立一个vnc服务器:

disappear@ubuntu:~$ vnc4serverNew 'ubuntu:1 (disappear)' desktop is ubuntu:1Starting applications specified in /home/disappear/.vnc/xstartupLog file is /home/disappear/.vnc/ubuntu:1.log
#可以用vnc4server -kill :1来删除vnc server

 

2. 使用vncviewer连接vnc服务器:

disappear@ubuntu:~$ vncviewer ubuntu:1Connected to RFB server, using protocol version 3.8Performing standard VNC authenticationPassword: 

 3. 运行vnc2swf来录制操作

disappear@ubuntu:~$ vnc2swf -n -o 000.swf locahost:1Using pygame 1.9.1releasethere is no soundcard

 

 如果想要录制当前已经存在的屏幕,需要用x11vnc,为了缓解掉帧情况,请将分辨率调为最低。

1. x11vnc启动一个server,为了缓解掉帧,设置-wait 10 -defer 10

x11vnc -localhost -viewonly -wait 10 -defer 10 -bg

 2. vnc2swf 启动录制

vnc2swf -n -o out22.swf  localhost:1

 当然你可以设置framerate,扩大至24或者更高查看效果。

vnc2swf -n -r 25 -o out22.swf  localhost:1

 

 

0 0
原创粉丝点击