How to screen capture screenshots or movies on the Linux framebuffer

▼魔方 西西 提交于 2019-12-24 13:28:44

问题


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?


回答1:


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 ...)




回答2:


you could use ffmpeg or avconv (eg. avconv -f fbdev -i /dev/fb0 mymovie.flv).



来源:https://stackoverflow.com/questions/1861472/how-to-screen-capture-screenshots-or-movies-on-the-linux-framebuffer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!