如何在 Linux 帧缓冲区上截取屏幕截图或电影
如何捕获 Cell Linux 上的 Linux 帧缓冲区以获得屏幕截图或电影?
是否有工具可以为正在运行的程序执行此操作,或者写入并可能控制帧缓冲区的程序还必须处理捕获和记录?如果是这样,程序将如何执行?
How can the linux frame buffer, on Cell Linux, be captured to obtain either screen shots or movies?
Is there a tool to do this for a running program, or must the program writing to, and presumably controlling, the frame buffer also handle capture and recording? If so, how would the program do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
许多工具可以实现此目的,例如 FBGrab 和 fbdump;查看这两个的源代码,扩展其中一个或编写自己的捕获视频而不仅仅是快照将非常容易。
但是,我建议写入帧缓冲区的程序也是一个记录,以便在写入帧之间同步捕获帧(而不是部分通过写入、或跳过或...)
Many tools for doing so, for example FBGrab and fbdump; look at the sources for those two, it would be pretty easy to extend either one or write your own which captures video instead of just snapshots.
However, I would recommend that the program writing to the framebuffer be the one recording as well, in order to synchronize capturing frames between writing them (and not partially through a write, or skipping, or ...)
您可以使用
ffmpeg
或avconv
(例如avconv -f fbdev -i /dev/fb0 mymovie.flv
)。you could use
ffmpeg
oravconv
(eg.avconv -f fbdev -i /dev/fb0 mymovie.flv
).