我使用名为 byzanz 的工具来录制屏幕并创建 gif 文件。
这是我使用它的方式:
byzanz-record -d 55 --delay=2 -x 0 -y 0 -w 3940 -h 950 desktop-animation.gif
然而,我常常无法提前知道录音会持续多长时间,因此最终会出现尴尬的时刻或过早结束录音。有没有办法告诉 byzanz 停止它的工作,也许是通过用kill之类的东西向它发送信号?
最佳答案
似乎有一个选项可以实现这一目标:
http://manpages.ubuntu.com/manpages/zesty/man1/byzanz-record.1.html
-e, --exec=COMMAND Instead of specifying the duration of the animation, execute the given COMMAND and record until the command exits. This is useful both for benchmarking and to use more complex ways to stop the recording, like writing scripts that listen on dbus.
但是,在我的最新 byzanz (fedora) 包管理器中,--exec 不存在。
我认为有了这个选项,你可以这样做:
byzanz-record --exec 'sleep 1000000' --delay=2 -x 0 -y 0 -w 3940 -h 950 desktop-animation.gif
当您想停止录制时,请执行以下操作:killall sleep
旁注:我在 redhat bugzilla tracker 上打开了一个问题来更新他们的 byzanz-record 版本:https://bugzilla.redhat.com/show_bug.cgi?id=1531055
关于animated-gif - 有没有办法停止使用 Byzanz 录制屏幕?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45330900/