如何在Ubuntu中录制屏幕
时间:2020-02-23 14:38:56 来源:igfitidea点击:
Byzanz可以将桌面会话记录到动画GIF图像,FLV,OGG和OGV文件格式。
它支持整个屏幕捕获,单个窗口或者指定区域。
对于那些偏好GUI的人,可以通过命令行或者通过面板小程序进行屏幕截图录制。
在Ubuntu安装Byzanz
本教程在Ubuntu 17.10上进行了测试。
它应该在Linux Mint和基本操作系统中工作。
第1步)启动终端。
步骤2)在终端中使用以下命令并按Enter键。
sudo apt-get install byzanz
第3步)这就是它。
Byzanz现在应该安装在计算机中。
通过命令行查找计算机的显示器的解决方案
我们需要首先知道本机桌面分辨率以开始录制整个屏幕。
要找到它,请启动"终端"并使用此命令:
xdpyinfo | grep dimensions
我们应该看到类似于此的输出:
igi@theitroad-ubuntu:~$xdpyinfo | grep dimensions dimensions: 1200x785 pixels (317x207 millimeters)
使用byzanz.
使用此命令将整个桌面记录到GIF中。
byzanz-record --duration=30 --x=0 --y=0 --width=1200 --height=885 desktop.gif
屏幕截图视频捕获
如果持续时间为单位,并且指定高度和重量以捕获整个桌面。
使用某些值代替0以捕获屏幕截图,以优选的高度和宽度以像素为单位。
这与区域屏幕捕获完全相同。
umermogg,OGV文件格式以带有音频录制视频。
FLV(Flash Video)是无损视频捕获的伟大格式。
使用'help'命令知道可以使用的命令用byzanz使用的完整列表。
byzanz-record --help
我们应该看到完整的命令列表,如下所示:
igi@theitroad-ubuntu:~$byzanz-record --help Usage: byzanz-record [OPTION…] record your current desktop session Help Options: -?, --help Show help options --help-all Show all help options --help-gtk Show GTK+ Options Application Options: -d, --duration=SECS Duration of animation (default: 10 seconds) -e, --exec=COMMAND Command to execute and time --delay=SECS Delay before start (default: 1 second) -c, --cursor Record mouse cursor -a, --audio Record audio -x, --x=PIXEL X coordinate of rectangle to record -y, --y=PIXEL Y coordinate of rectangle to record -w, --width=PIXEL Width of recording rectangle -h, --height=PIXEL Height of recording rectangle -v, --verbose Be verbose --display=DISPLAY X display to use