Java:捕获屏幕上显示的视频 [英] Java: Capture video of what's on the screen

查看:64
本文介绍了Java:捕获屏幕上显示的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在考虑用Java编写一个软件,该软件可以在运行期间记录监视器.您对如何有效捕获监视器输出有任何建议吗?

We are considering writing a software in Java that records whats monitor for certain durations of time while it is running. Do you have any suggestions on how to efficiently capture the monitor output?

占用的CPU越少,我们捕获屏幕的频率就越高,并且在不干扰正在运行的其他应用程序的情况下生成的视频越平滑.

The less CPU it takes the more often we can capture the screen and the smoother a video we can generate without interfering with the other apps that are running.

如果复制屏幕捕获部分不太困难,则Java中的现有开放源代码程序将起作用.我希望它不需要调用另一种编程语言.我们将会看到.

An existing Open Source program in Java would work if it is not too difficult to copy out the screen capture section. I hope it won't require a call to another programming language. We will see.

推荐答案

我不确定您是否需要框架.

I'm not sure if you'll need a framework.

查看 java.awt.Robot 类的文档,特别是 createScreenCapture 方法的文档.

Check out the documentation for the java.awt.Robot class, specifically the createScreenCapture method.

http://java.sun.com/javase/6/docs/api/java/awt/Robot.html

这篇关于Java:捕获屏幕上显示的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆