The goal is: I want to create a movie (including audio) of what’s happening in my game, made in Unity, while playing it in my Android mobile. The idea is to use some API that I can call from my game when I click a button.
I’m explaining this like that to avoid the idea that I’m using the unity editor or executing the game in my laptop when creating the movie.
The point is, there is no an easy and ready-to-go way on doing that.
Possible solutions?:
As it’s easy to capture every frame as an image, I could just capture the frames, and then create a movie including the audio (actually it’s easy to record) someway. In windows it’d be easy, just calling a command to ffmpeg to assemble all the frames, but … How I could do that in Android? There is something called SharpFFmpeg , like a wrapper in C# to call FFmpeg functions. Does anyone know if that actually works?
The last idea I can think of, is some kind of android / java library, that I can actually implement or just called. In fact, any Android with camera has the ability of creating a video (when recording from the camera), so there has to be some API or service or something that I could use.
Well, I’d really appreciate if someone could point me in the right direction.
I’m afraid, none of the solutions are actually what I’m looking for. All of them are a third party app, that has to be executed, and then to come back to the game and capture the video.
I want just to create a movie from, in example, a bunch of frames that I could create. I’ve been having a look to some Java stuff, but I’m not an Android programmer, so I’m always half way.
It’s really a pain that something so important and easy to do using windows or linux (create a movie from a list of frames), it’s so difficult and not available for Android or Unity in a cool API.
I hope someone can give me some more idea that might work.
You are more than welcome and let us know how you get on, if you do find a good and workable solution I am certain many other people would be interested