捕获android屏幕并以编程方式创建视频 [英] Capture android screen and create video programmatically

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

问题描述

在Android/Java中,是否有任何代码示例以编程方式捕获每秒具有良好帧数的计算机的屏幕截图并创建视频?

In Android/Java, Is there any code example to capture the screenshot of a computer with good frames per second programatically and create video?

我想要一个教程或完整的源代码来做到这一点.我希望该程序可以在设备没有植根"的情况下使用.

I'd like a tutorial or full source code to do this. I'd like the program to work with and without the device having been "rooted".

Play商店中有一个名为 Screencast Video Recorder 的应用程序可以执行此操作.但是您需要对设备进行ROOT才能使其正常工作,所以我知道可以做到这一点.

There is app in the play store called Screencast Video Recorder that does this. But you need to ROOT the device for it to work, so I know it can be done.

在非root用户的设备上以编程方式捕获android屏幕截图并创建视频的最佳方法是什么?

What's the best way to capture android screenshot and create a video programmatically on a non-rooted device?

推荐答案

有一个名为Telecine的应用程序,该应用程序是开源的,允许您记录屏幕-可以在

There is an app called Telecine that is open source that allows you to record screens - the code can be found at https://github.com/JakeWharton/Telecine. All credit is to Jake Wharton.

如果需要一个示例,可以在Commonsware的github页面上找到一个示例-Mark Murphy提供了一个示例示例应用程序,用于使用MediaProjection API进行屏幕捕获和屏幕录制.

If you need an example, you can find one at Commonsware's github page - Mark Murphy has provided a sample app for both screen capture and screen recording using the MediaProjection APIs.

这篇关于捕获android屏幕并以编程方式创建视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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