Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by JacksonML · Jan 25, 2016 at 04:41 AM · androidvideorecordcapturecapturescreen

Unity Camera Capture for Android to video file

For our app we use iVidCapPro on iOS. Our android app is currently lacking video capture support. I've looked around and I saw the Intel INDE thing, but I couldn't find any set up instructions let alone a download link for the files.

I've searched around for an Android plugin but I can't find one. I'm looking to capture Unity's camera and not the device's camera. I'm open to writing my own solution as long as it isn't too complicated (especially writing my own h.264 encoder).

Any ideas? Thanks for any help.

I've heard of Everplay, but we're not looking for a game oriented network. We would also like to save directly to the gallery.

Comment
Add comment · Show 12
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Verusoft · Jan 30, 2016 at 09:08 PM 0
Share

What about Everyplay? Have you tried it?

avatar image JacksonML Verusoft · Feb 02, 2016 at 11:54 PM 1
Share

I've thought about it. The only issue is the app isn't exactly a game and we'd like to have it just save directly to the camera roll without an extra UI.

avatar image JohnS_Holovis · Mar 08, 2016 at 11:35 AM 0
Share

According to the support page, they're no longer allowing new users to download the application. https://software.intel.com/en-us/intel-inde-support

And the $$anonymous$$edia for $$anonymous$$obile bundle doesn't appear to be available as a standalone either. https://software.intel.com/en-us/media-for-mobile-support

Have you found a reliable solution just yet?

avatar image Steven Brooks · Mar 08, 2016 at 02:37 PM 0
Share

https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials-video-capturing-for-unity3d-applications

avatar image UnityDev291 · Jun 30, 2016 at 10:25 AM 2
Share

In case anyone else stumbles across this thread, the Intel $$anonymous$$edia For $$anonymous$$obile ($$anonymous$$4$$anonymous$$) has been re-released and is now on available on GitHub:

https://github.com/INDExOS/media-for-mobile

Use Android Studio to build. There is an example application included which shows how to natively record video in Android and the following guide should help with integrating with Unity:

https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials-video-capturing-for-unity3d-applications

You will have to update the import references from com.intel.inde.mp to org.m4m.domain

e.g. change

import com.intel.inde.mp.android.VideoFormatAndroid;

to:

import org.m4m.android.VideoFormatAndroid;

You can overlay a native Android surfaceView ontop of the Unity view - note, I have found that Unity 5.3.x has performance issues with overlaid native views (with the device's camera enabled). Unity 5.2.4f1 performs better.

avatar image Vectorthree UnityDev291 · Jul 14, 2016 at 05:59 PM 0
Share

Does this $$anonymous$$4$$anonymous$$ Intel re-release, supports AR$$anonymous$$ Chipsets? Do you thing this pack, implemented in Unity then deployed to Android, will work for the majority of devices?

As some one stated earlier, I'm using iVidCapPro for iOS and works perfectly, but for Android... there is no current solution... until this... but since there is little to no information around it, Im dubious whether spending the time required to implement it or just plain wait.

avatar image UnityDev291 Vectorthree · Jul 16, 2016 at 04:35 PM 0
Share

I've tested the re-release on Samsung S6, LG $$anonymous$$8, Nexus 7 and HTC One A9 - all were fine, though I implemented it as a native Android view overlaid over the Unity view rather than capturing from within a Unity camera.

Show more comments
avatar image Hakimo UnityDev291 · Nov 15, 2016 at 09:29 AM 0
Share

Hi UnityDev291, Sorry to bring this question up again but I think your post is the closest I've got into using media mobile. Right now, I'm not sure what to do next. I have 1. Downloaded $$anonymous$$edia for mobile at github. This is my very first time using Android Studio so apologies in advanced if anything I write sounds dumb. 2. I 'think' I've already build the project successfully in Android Studio. There a few errors but I just had to update the SD$$anonymous$$s and download the build tools. Here's what I can see in the project view: ![alt text][1] [1]: /storage/temp/82219-gradle01.jpg

  1. Now I'm not sure where I should go next. Looking at your second link(the one from intel), it says to copy the android file and domain file but I can 't seem to find them. Did I miss a step. Would appreciate your help. Thank you.

gradle01.jpg (15.7 kB)
avatar image Snake9 Hakimo · Nov 18, 2016 at 02:22 PM 3
Share

Hi Hakimo, Did you find a solution ? I am in the same case as you, I don't know how to get android-.jar and domain-.jar as mentionned on the second link.

EDIT : Well, I found 2 download links to get the 2 jar files : https://mega.nz/#!UZsCCLxY!lgRRkSw-6CJ$$anonymous$$Zu0BZ$$anonymous$$zoD_R6knWLbud7LYttTu5SbFk https://mega.nz/#!INEE3I$$anonymous$$$$anonymous$$!azgo9NrNjU-nxLPpUk04XAb0Gb96Buyffhi$$anonymous$$wiSOsYY android-1.2.2415.jar and domain-1.2.2415.jar

Now I'm trying to build the java files into Capturing.jar by using ant, following the tuto on the the 2nd link but I got a lot of errors from the java files given by the tuto : "package android.os does not exist" etc...

EDIT 2 : Ok I solved the errors and finally get the Capturing.jar file. Going to follow the tutorial until the end and give a feedback here. If you have any errors when you launch the cmd "ant build-jar clean-post-jar", try to change the settings in your build.xml :

 <property name="sdk.dir" value="C:\<PATH_TO_YOUR_ANDROID_SD$$anonymous$$>\Android\sdk"/>

check the target specified in the line below is the same as the version of the android sdk you have installed (you can check this in the "platforms" folder under your Android\sdk folder.

 <property name="target" value="android-23"/>


Check the path of the classes.jar in the Unity\Editor folder :

 <property name="unity.androidplayer.jarfile" value="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Development\Classes\classes.jar"/>


EDIT 3 : Okay it works. In the last Unity script from the tutorial (CaptureGUI.cs), you need to change "capture.inProgress" by "capture.isRunning". However it captures the sound too and I don't know how to capture only the images.

So finally you don't have to open Android Studio at all, just download the android et domain jar files and follow the tuto as I did. I hope that helped you.

Show more comments
avatar image Neriad · Oct 12, 2017 at 02:03 PM 0
Share

Were you able to find a solution to that problem ? Right now, Im looking for an android plugin to record the ingame screen to use that same video inside the game.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Max-Bot · Feb 01, 2018 at 10:40 PM

FFmpeg Unity Bind allows to record video files and edit them as well.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by TheFloatingSheep · Jan 30, 2016 at 08:01 PM

I found this. http://renderheads.com/product/av-pro-movie-capture/

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JacksonML · Feb 01, 2016 at 09:16 PM 0
Share

Nice but it seems to support Windows and not Android.

avatar image
0

Answer by MoonHeadJohn · Nov 18, 2016 at 03:23 PM

Providing you're targeting Android 5.0 and above, you could create a plugin and use the screen capturing and sharing facilities: https://developer.android.com/about/versions/android-5.0.html

See "Screen capturing and sharing" to read further into the api.

Back when I first looked into it, there were a number of tutorials online on how to initialise it, but all of it was specifically native code with very few articles going into how you should use this feature with Unity. It's definitely possible but you'll have to do a load of background reading to properly understand it.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Capture the Screen, and Audio being Played in a Unity3D based iOS Game 0 Answers

How to record video from the screen on android and save it to gallery? 1 Answer

Record the entire level and save that video in Desktop/Gallery of PC/Android [In-Game] 2 Answers

Unity Video ads closing when player leaves app. 0 Answers

Can Hanheld.PlayFullScreenMovie run concurrently with other process? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges