animated-gif - 有没有办法停止使用 Byzanz 录制屏幕?

标签 animated-gif screencast

我使用名为 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/

相关文章:

android - 使用 android MediaCodec 对原始 H264 视频流的解码不正确

Android 应用程序 - 从 ChromeCast 应用程序打开 "Screen Cast"

android - AllShare Cast/Screen Cast 不适用于某些手机

google-chrome - 为什么在 Canvas 上绘制动画 gif 仅在重新选择选项卡后才会更新?

android - 在 G. Maps v2 中使用动画 Gif 作为地面叠加层

android-studio - 记录/捕获 Android 应用程序行为 - 转换为动画 GIF

python - 使用 PIL 在 Tkinter 中显示动画 GIF

internet-explorer - IE7/IE8 和卡住的 gif 动画

javascript - 使用 Socket.IO 和 Node.JS 的截屏网站