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
    
  • 相关阅读:
    Java Jsch SFTP 递归下载文件夹
    spring-jms,spring-boot-starter-activemq JmsTemplate 发送方式
    Spring Boot 入门之消息中间件篇(转发)
    Springboot websocket使用
    FinalCutPro快捷键
    基本CSS布局三
    As Simple as One and Two
    Game of Credit Cards
    WOW Factor
    Lose it!
  • 原文地址:https://www.cnblogs.com/maseng/p/3598907.html
Copyright © 2011-2022 走看看