Problem that it uses some dependencies which does not work\exists in Android - javax.imageio
I would like to be able to capture my scenes as mp4 video - what is the best practice for doing so?
external recording application is not good for me. I have built my own jMonkey based product (www.scenemax3d.com) and I need to be able to export the scene as mp4 video. I was hoping that there will be some kind of support in the engine for doing so but the “advanced” way is not working in Android
Ok. Well usually recording gameplay is the problem of a third party application. It is not unheard of that some games do record, but it may not be actual video - but more of a replay of events. Is this a possibility instead? For all intent it would act as a video and be played inside the application.
my application is not a game… it’s an animation computer programming language for young children. I need to be able to export the scene as a mp4 to enable kids share their animations on YouTube channels and such.
It’s a must feature…
Recording the screen is probably not the way to go anyway because then in order to export it the user needs to sit through the whole animation again and is unable to do anything else while its happening. Meanwhile, any lag and notifications will ruin the recording.
Assuming there is indeed no way to get the example working on android but it is possible on the pc. maybe a companion program on the computer that is able to export the animations?
Alternatively you can setup a server that is able to take in the data from the animation and create .mp4 files. If you do this you could use this to directly have a place to share animations meaning that users can just click a “share” button and their animation gets uploaded to your server for all to see. Which seems a lot easier than to click “export” then go to youtube, find the animation and upload it.
I’m not certain of the license restrictions and fees, either. I do know that they are patented (.mp3 and .mp4) tech and would require some kind of license, but I have no idea about cost, implications or restrictions. Maybe someone better versed in this area can shed some light, but it’s probably something you want to look at first before you invest heavily in any format.
Moving the export to video logic to the cloud will make the solution much more complex and resource dependent. I will not be able to keep it free in that case. I would like to maintain it 100% mobile solution.
I searched a lot and didn’t find a sample code for binding a current GLSurfaceView to a MediaRecorder (If you have such code I’ll be glad to try it out).
Now I found an interesting article about “Recordable surface view” which can replace an existing GLSurfaceView so I’m going to try using it for my application.