[HELP] Creating a movie of my game from my unity app in Android

Hi guys,

I have a problem and I need your help. :sweat:

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. :frowning2:

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?

  • I checked Intel INDE, that looks really what I need. I’ll give a try, but it looks a bit messy and complex. And, some files that the tutorial is using (https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials-video-capturing-for-unity3d-applications) are not in the GitHub open source project (https://github.com/INDExOS/media-for-mobile), because now it’s open source.

  • 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. :sweat_smile:

Thanks!!

1 Like

Hi @JoseCuenca,

I’ve never tried this myself, but a quick Google search produced this:

Hope this is of use.

Hi @Rob !

Thanks a lot for your reply. :slight_smile:

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. :disappointed:

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. :anguished:

Here there is some stuff: http://stackoverflow.com/questions/24544361/how-to-create-a-mp4-video-from-images-in-java-by-using-jcodec-library but, at the end, I try to use it and then I get errors. :confounded:

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. :rage:

I hope someone can give me some more idea that might work.

Thanks anyway! :smile:

Hi @JoseCuenca, so what you are saying is that you want to be able to effectively have an in-game recording method?

Updated Thu Nov 03 2016 23:40

How about this?
http://renderheads.com/product/av-pro-movie-capture/

Additionally, there’s quite a bit of info here from people wanting to achieve the same thing;

Several articles I’ve seen suggest taking screenshots from within your game and then turning them into an .avi;

Also, I found this, not sure what VisualDub is though, so not sure how useful this would be;

1 Like

Hi @Rob , :slight_smile:

yes, the idea is to have an in-game recording method, and trying to do that inside the Android OS is not really easy, I have to say.

But thanks! I’ll have a look to the links you sent me.

Regards!! :smile:

2 Likes

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 :slight_smile:

1 Like

WOW, one of the links you sent me looks pretty promising.

https://developers.everyplay.com/documentation/Everyplay-integration-to-Unity3d-game.md

I’ll try and I’ll let you know if that worked.

Regards! :laughing:

2 Likes

Fantastic! :slight_smile:

Hi Jose. I have the same Problem too. how did you solved it ?

Hi All
This thing is doing all heavy lifting:
FFmpeg Unity Bind