gif全屏录制指令(常用):
byzanz-record -x 0 -y 0 -w 1366 -h 768 -d 1000 ~/Pictures/gif/u014132947.gif
byzanz-record的使用场景:
电脑桌面录屏、窗口录屏、小视频、等场景。
byzanz-record的安装:
sudo apt-get install byzanz
byzanz-record的使用:
命令格式- byzanz-record -x(X坐标) -y(Y坐标) -w(宽) -h(高) -d时间(秒)。
wangyetao@wangyetao-Lenovo-G510:~$ byzanz-record --help
用法:
byzanz-record [OPTION…] 录制您的当前桌面会话
帮助选项:
-?, --help 显示帮助选项
--help-all 显示全部帮助选项
--help-gtk 显示 GTK+ 选项
应用程序选项:
-d, --duration=SECS 动画的时间 (默认:10 秒)
-e, --exec=COMMAND Command to execute and time
--delay=SECS 开始之前的延时(默认:1 秒)
-c, --cursor 录制鼠标光标
-a, --audio 录音
-x, --x=像素 要录制矩形的 X 坐标
-y, --y=像素 要录制矩形的 Y 坐标
-w, --width=像素 录制矩形的宽度
-h, --height=像素 录制矩形的高度
-v, --verbose 详细
--display=显示 要使用的 X 显示
wangyetao@wangyetao-Lenovo-G510:~$
辅助命令:
"xwininfo",查看你当前需要定位的窗口位置信息,x坐标、y坐标、宽、高与byzanz 命令参数一一对应。
wangyetao@wangyetao-Lenovo-G510:~$ xwininfo
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x2200001 "写文章-CSDN博客 - Google Chrome"
Absolute upper-left X: 72
Absolute upper-left Y: 27
Relative upper-left X: 72
Relative upper-left Y: 27
Width: 1294
Height: 741
Depth: 24
Visual: 0x21
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +72+27 -0+27 -0-0 +72-0
-geometry 1294x741-0-0
wangyetao@wangyetao-Lenovo-G510:~$