Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

creating Video from Android screen activities

Tags:

android

In my app I have a requirement to create a video from the screen activities programatically. (ie: I am running some animations for some time I need to convert these animations to a video, like video demos.)

I have been searching for this for the last week, but I haven't found any solution. I don't know whether it is possible in Android or not. If it is, please tell me the way or suggest me some links.

like image 520
raju Avatar asked Dec 26 '11 04:12

raju


1 Answers

If you want to capture the screenshots from "within your activity", it is possible. Follow this post

Having grabbed the screenshoton a bitmap, you need to encode the frames to a video yourself.

Captured bitmap --> JNI (Native-bitmap) --> feed input buffer to a native encoder (ffmpeg) --> save to file

like image 69
peasea Avatar answered Oct 01 '22 18:10

peasea