Linux的录屏

先安装一下:

[[email protected] ~]# sudo yum install asciinema
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package asciinema.noarch 0:1.4.0-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: asciinema-1.4.0-2.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: asciinema-1.4.0-2.el7.noarch
--> Processing Dependency: python36-setuptools for package: asciinema-1.4.0-2.el7.noarch
--> Running transaction check
---> Package python3.x86_64 0:3.6.8-10.el7 will be installed
--> Processing Dependency: python3-libs(x86-64) = 3.6.8-10.el7 for package: python3-3.6.8-10.el7.x86_64
--> Processing Dependency: python3-pip for package: python3-3.6.8-10.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-10.el7.x86_64
---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed
--> Running transaction check
---> Package python3-libs.x86_64 0:3.6.8-10.el7 will be installed
--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-10.el7.x86_64
---> Package python3-pip.noarch 0:9.0.3-5.el7 will be installed
--> Running transaction check
---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================
 Package                                        Arch                               Version                                    Repository                        Size
=====================================================================================================================================================================
Installing:
 asciinema                                      noarch                             1.4.0-2.el7                                epel                              55 k
Installing for dependencies:
 libtirpc                                       x86_64                             0.2.4-0.16.el7                             base                              89 k
 python3                                        x86_64                             3.6.8-10.el7                               base                              69 k
 python3-libs                                   x86_64                             3.6.8-10.el7                               base                             7.0 M
 python3-pip                                    noarch                             9.0.3-5.el7                                base                             1.8 M
 python3-setuptools                             noarch                             39.2.0-10.el7                              base                             629 k

Transaction Summary
=====================================================================================================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 9.6 M
Installed size: 48 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): libtirpc-0.2.4-0.16.el7.x86_64.rpm                                                                                                     |  89 kB  00:00:00
(2/6): python3-3.6.8-10.el7.x86_64.rpm                                                                                                        |  69 kB  00:00:00
(3/6): asciinema-1.4.0-2.el7.noarch.rpm                                                                                                       |  55 kB  00:00:00
(4/6): python3-pip-9.0.3-5.el7.noarch.rpm                                                                                                     | 1.8 MB  00:00:00
(5/6): python3-setuptools-39.2.0-10.el7.noarch.rpm                                                                                            | 629 kB  00:00:00
(6/6): python3-libs-3.6.8-10.el7.x86_64.rpm                                                                                                   | 7.0 MB  00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                 30 MB/s | 9.6 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libtirpc-0.2.4-0.16.el7.x86_64                                                                                                                    1/6
  Installing : python3-pip-9.0.3-5.el7.noarch                                                                                                                    2/6
  Installing : python3-setuptools-39.2.0-10.el7.noarch                                                                                                           3/6
  Installing : python3-3.6.8-10.el7.x86_64                                                                                                                       4/6
  Installing : python3-libs-3.6.8-10.el7.x86_64                                                                                                                  5/6
  Installing : asciinema-1.4.0-2.el7.noarch                                                                                                                      6/6
  Verifying  : libtirpc-0.2.4-0.16.el7.x86_64                                                                                                                    1/6
  Verifying  : asciinema-1.4.0-2.el7.noarch                                                                                                                      2/6
  Verifying  : python3-libs-3.6.8-10.el7.x86_64                                                                                                                  3/6
  Verifying  : python3-pip-9.0.3-5.el7.noarch                                                                                                                    4/6
  Verifying  : python3-setuptools-39.2.0-10.el7.noarch                                                                                                           5/6
  Verifying  : python3-3.6.8-10.el7.x86_64                                                                                                                       6/6

Installed:
  asciinema.noarch 0:1.4.0-2.el7

Dependency Installed:
  libtirpc.x86_64 0:0.2.4-0.16.el7                python3.x86_64 0:3.6.8-10.el7       python3-libs.x86_64 0:3.6.8-10.el7       python3-pip.noarch 0:9.0.3-5.el7
  python3-setuptools.noarch 0:39.2.0-10.el7

Complete!

用之前启用录屏就行:

[[email protected] ~]# asciinema rec
~ Asciicast recording started.
~ Hit Ctrl-D or type "exit" to finish.
[root@iZbp143t3oxhfc3ar7jey0Z ~]# qweiuqieu
bash: qweiuqieu: command not found
[root@iZbp143t3oxhfc3ar7jey0Z ~]# ls
catalina.base_IS_UNDEFINED  fhadmin.jar  mysql-5.6.35-linux-glibc2.5-x86_64  mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz  test.txt
[root@iZbp143t3oxhfc3ar7jey0Z ~]# exit
exit
~ Asciicast recording finished.
~ Press <Enter> to upload, <Ctrl-C> to cancel.

View the recording at:

    https://asciinema.org/a/jnQunGqWCM2R2Uoa7D5csxKY5

This installation of asciinema recorder hasn‘t been linked to any asciinema.org
account. All unclaimed recordings (from unknown installations like this one)
are automatically archived 7 days after upload.

If you want to preserve all recordings made on this machine, connect this
installation with asciinema.org account by opening the following link:

    https://asciinema.org/connect/5f0d34eb-9787-4b29-ae8d-5eb4346a3671

[root@iZbp143t3oxhfc3ar7jey0Z ~]# ll
total 394564
drwxr-xr-x 3 root root      4096 Feb 12 14:18 catalina.base_IS_UNDEFINED
-rw-r--r-- 1 root root  89439672 Feb 12 14:26 fhadmin.jar
drwxr-xr-x 2 root root      4096 Feb 16 18:08 mysql-5.6.35-linux-glibc2.5-x86_64
-rw-r--r-- 1 root root 314581668 Feb 16 17:20 mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz
-rw-r--r-- 1 root root         0 Feb 12 22:57 test.txt
[root@iZbp143t3oxhfc3ar7jey0Z ~]# asciinema rec
~ Asciicast recording started.
~ Hit Ctrl-D or type "exit" to finish.

原文地址:https://www.cnblogs.com/dalianpai/p/12318259.html

时间: 2024-10-27 07:26:42

Linux的录屏的相关文章

linux中录屏工具byzanz

linux中录屏工具byzanz: 1.安装 sudo apt install byzanz 2.使用 help:byzanz-record --help 配合xwininfo使用--xwininfo为linux系统自带, 通过 xwininfo指令确定byzanz所需要的参数--x.y坐标,长.宽等 示例&效果图 1 byzanz-record -x 350 -y 800 -w 400 -h 900 ~/download/screenload.gif

Linux下录屏

我喜欢的: Gnome系用户,按ctrl+shift+alt+r,屏幕右上角有红点出现,开始录屏,结束的话再按一次ctrl+shift+alt+r,录好的视频在 ~/Videos下 ffmpeg # Use the x11grab device: ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 output.mp4 # This will grab the image from desktop, start

Linux终端录屏与播放 script 命令

script是一个非常炫酷的命令,它可以将终端的所有操作和输入输出录制下来,并通过 scriptreplay播放,是命令行版的"屏幕录像专家".非常实用,例如你想教很多人配置一个软件,可以在自己配置时,将过程录下来,然后发给别人自学,灰常的优雅! 一.安装 多数操作系统都默认安装了,Redhat/Fedora/CentOS: Host:BJ_Web_IP:252.97 User:root Dir:~$ >> yum install util-linux-ng或者Host:B

linux下常用的截图、录屏工具

录屏: 在linux下常用的录屏工具有5种,可以baidu或者google下喔,我选用的是recordMydesktop,使用非常方便,用时注意先把每秒桢数调高,否则效果必然很差. 在ubuntu下可以输入一下命令直接安装: DebianLINUX 的用户可以用命令"sudo apt-get install recordmydesktop gtk-recordmydesktop"安装该软件,其他用户 则需到以下网站下载http://sourceforge.net/projects/re

linux下方便的录屏命令

linux下方便的录屏命令   ffmpeg -f x11grab -s 1024*768 -r 20 -i :0.0 -sameq ~/recode.mpg -r后是刷新屏率,   推出直接Ctrl+C,方便.绿色.       作者 风林火山 本文来自:爱好Linux技术网 本文链接:http://www.ahlinux.com/start/cmd/19088.html

【Linux】Ubuntu下录屏&amp;&amp;制作GIF

在做Android的时候,想制作GIF用来演示效果.一番摸索,找到了一个简单可行的办法: App在模拟器中运行,用录屏软件录制,再将视频转成GIF. 系统: Ubuntu 15.04 录屏软件: RecordMyDesktop 视频转GIF: mplay 上面两个软件均可在商店找到直接安装,控制台用命令安装也行,这个就不详述了. 1.打开RecordMyDesktop,可以对局部录屏,简单方便.录制完成后会生成一个 ogv视频文件 (假设就叫 video.ogv) 2.然后将这个文件扔到一个文件

Linux下的录屏软件Kazam

发现Ubuntu下一个很好用的录屏软件kazam,Ubuntu官方源中就有. 1.安装 $ sudo apt-get install kazam 2.使用 使用很简单,除了截图,还可以录制屏幕视频.既可以全屏录制,也可以对某个窗口和区域进行录制.使用界面如下图. =-=-=-=-=Powered by Blogilo 原文地址:https://www.cnblogs.com/pandachen/p/10801719.html

ffmpeg,rtmpdump和nginx rtmp实现录屏,直播和录制

公司最近在做视频直播的项目,我这里分配到对直播的视频进行录制,录制的方式是通过rtmpdump对rtmp的视频流进行录制 前置的知识 ffmpeg: 用于实现把录屏工具发出的视频和音频流,转换成我们需要的格式,然后发送到rtmp中转服务器上. rtmpdump: 用于实现视频的录制,从rtmp的中转服务器接受到视频流,并把视频流保存成flv文件 nginx-rtmp-module: 用户rtmp中转服务,虽然他可以做很多功能,但是我这里只是使用了这一个 screen capture: windo

FFmpeg获取DirectShow设备数据(摄像头,录屏)

这两天研究了FFmpeg获取DirectShow设备数据的方法,在此简单记录一下以作备忘.本文所述的方法主要是对应Windows平台的. 1.       列设备 ffmpeg -list_devices true -f dshow -i dummy 命令执行后输出的结果如下(注:中文的设备会出现乱码的情况).列表显示设备的名称很重要,输入的时候都是使用"-f dshow -i video="{设备名}""的方式. 我自己的机器上列出了以下设备: [dshow @0