Create videos from Android screen settings

In my application, I have a requirement for creating video from screen actions programmatically. (i.e. I’ve been running some animations for some time, I need to convert these animations to videos, like video demos.)

I searched for this last week, but I did not find any solution. I don't know if this is possible on Android or not. If so, please tell me, or offer me some links.

+6
source share
2 answers

If you want to take screenshots from "inside your activity", this is possible. Follow this post

Grabbing a screenshot of the bitmap, you need to encode the frames on the video yourself.

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

+5
source

This project will meet your request Android-MJPEG-Video-Capture-FFMPEG This is just converting jpegs to movie file using ffmpeg bin

-2
source

Source: https://habr.com/ru/post/904471/


All Articles