Capture android screen and create video programmatically

androidqq6 picture androidqq6 · Nov 16, 2012 · Viewed 18.9k times · Source

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

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.

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

Answer

Neeraj Sharma picture Neeraj Sharma · Nov 25, 2012

Check the following link https://code.google.com/p/java-remote-control/

in this project the owner has created a java remote control i.e. he has captured the images from the remote computer and transfer to server and convert it to movies with different format all you need to understand what he has done and implement the same for all your needs. you can access the full source code with SVN client from the following URL

http://java-remote-control.googlecode.com/svn/trunk/

Also you can look for the Remote class in java which provides createScreenCapture method