如何在没有 X 服务器的情况下进行截屏(从屏幕输出中取出视频文件)?我的意思是,纯粹来自 tty,没有 KDE、没有 LXDE、没有 Xorg。就像我处于单用户模式一样。
Recordscreen.py
听起来像你正在寻找的东西。您可以像这样下载并“安装”它:
$ wget http://www.davidrevoy.com/data/documents/recordscreen_12-04.zip
$ unzip recordscreen_12-04.zip
$ rm recordscreen_12-04.zip
$ chmod +x recordscreen.py
Run Code Online (Sandbox Code Playgroud)
它需要一些依赖项:
$ sudo apt-get install wget libav-tools ffmpeg libavc1394-0 libavformat-extra-53 \
libavfilter2 libavutil-extra-51 mencoder libavahi-common-data
Run Code Online (Sandbox Code Playgroud)
像这样运行它:
$ ./recordscreen.py
Run Code Online (Sandbox Code Playgroud)
您ttyrec
也可以使用它来完成此操作。
例如,要记录:
$ ttyrec
...
(In the executed shell, do whatever you want and exit)
...
Run Code Online (Sandbox Code Playgroud)
或者这样,仅记录正在运行的命令:
$ ttyrec -e command
...
(command specified by -e option will be executed)
...
Run Code Online (Sandbox Code Playgroud)
然后您可以使用ttyplayback
来播放您的录音:
$ ttyplay ttyrecord
Run Code Online (Sandbox Code Playgroud)
本文标题为: ttyrec > Linuxaria上的脚本,其中有一些示例视频。
归档时间: |
|
查看次数: |
1594 次 |
最近记录: |