简体   繁体   English

如何在Linux帧缓冲区上截屏截图或电影

[英]How to screen capture screenshots or movies on the Linux framebuffer

How can the linux frame buffer, on Cell Linux, be captured to obtain either screen shots or movies? 如何在Cell Linux上捕获Linux帧缓冲区以获取屏幕快照或电影?

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? 如果是这样,该程序将如何执行?

Many tools for doing so, for example FBGrab and fbdump ; 许多用于执行此操作的工具,例如FBGrabfbdump 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 ...) 但是,我建议将写入帧缓冲区的程序也记录为一个记录,以便在写入帧之间同步捕获帧(而不是部分通过写入,跳过或...)。

您可以使用ffmpegavconv (例如avconv -f fbdev -i /dev/fb0 mymovie.flv )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM