I have searched a lot on google but unfortunately have not found any solution of screen video recording. If you have used the Screencast Video Recorder from google play, you can better understand my question. Can anyone help me out that how to achieve screen video recording programmatically.
Asked
Active
Viewed 460 times
0
-
Unless this is for an API, this does not appear to be a programming-related question. I think that this question would be a more appropriate fit for http://android.stackexchange.com/. – Jan 14 '13 at 05:06
-
I have edited my question. I want to do this programmatically... – Mudassar Shaheen Jan 14 '13 at 05:11
-
Oh, alright. Which language? – Jan 14 '13 at 05:22
-
Oh yeah Java. Sorry for my dumb moment. :) – Jan 14 '13 at 07:59
-
Why don't you repost (and delete) this question, because nobody's seeming to answer it. Or you could set a bounty. I honestly don't know this stuff. When it comes to Android, I think it's wiser for me to stop with my two-cents. :) – Jan 14 '13 at 18:59
-
Share your research how you capture video recording of the screen programmatically – Ajay S Sep 08 '13 at 16:16
-
C++ version of screen recorder http://stackoverflow.com/a/43464269/6180077 visit this link for working FFMPEG c++ mp4 format screen recorder application. – Abdullah Farweez May 09 '17 at 04:35
1 Answers
0
AFAIK Screencast records by reading /dev/graphics/fb0, which is slow.
Programmatically the highest performance method is to create a virtual display. Currently only works on Android 4.4. See the screenrecorder.cpp for how to do this:
For Android 4.1 and above you can use the SurfaceComposerClient (both from native or Java code), although it's fairly broken on 4.3.
Unless you want to write a screen recorder yourself I wouldn't bother and just use one of the off-the-shelf recorders.
for some more detail see this answer.

Community
- 1
- 1

Christopher Fraser
- 511
- 5
- 6