zoukankan      html  css  js  c++  java
  • unbuntu下vnc和vnc2swf的使用

    安装:sudo apt-get install vnc4server,vncviewer

    默认vnc2swf安装了的。

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

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

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

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

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

     3. 运行vnc2swf来录制操作

    disappear@ubuntu:~$ vnc2swf -n -o 000.swf locahost:1
    Using pygame 1.9.1release
    there 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
    
  • 相关阅读:
    CF110A Nearly Lucky Number
    Max Sum Plus Plus HDU – 1024
    洛谷 p1003 铺地毯
    poj-1226
    Where is the Marble? UVA – 10474
    Read N Characters Given Read4
    Guess Number Higher or Lower && 九章二分法模板
    Intersection of Two Arrays II
    Reverse Vowels of a String
    Meeting Rooms
  • 原文地址:https://www.cnblogs.com/maseng/p/3598907.html
Copyright © 2011-2022 走看看