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
0
Question by magotizila · Jul 21, 2019 at 07:57 PM · bugcrashvideo

Guys i have puted a video as a background in my game menu but when i "build it" and run it crashes in the menu part? why is that happening?

my game is a 2d game for cellphone android, but for some reason when it reachs the menu the video doesnt execute and them the app crash but in the pc version everything works fine i mean the menu video... detail: i have puted my video in a cube a non 2d object dont know if that is abad thing because in the pc worked fine

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by JonPQ · Jul 22, 2019 at 04:05 PM

How are you playing the video? my guess would be some kind of plugin from the asset store, probably with libraries/dll's for playing the video. But does it have libraries for iOS/Android? check the documentation. Contact the creator of the plugin and ask about mobile support.

second possibility...memory... how big is the video, and what hardware are you running it on, does it have enough ram to load the video? are you loading the whole video into memory or streaming it?

Sorry I cant be more specific without more info...

Comment
Add comment · Show 4 · 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 magotizila · Jul 22, 2019 at 04:54 PM 0
Share

so, i'm using a simple video player in canvas, and using the "render texture" in it, their sizes are 8mb and they are .mp4... i'm using them as background and they start with the game menu, i'm a begginer i don't really know how it should be to work fine... Do i need some kind of plugin to make it work?

avatar image JonPQ magotizila · Jul 22, 2019 at 05:40 PM 0
Share

I assume you are using the Unity video player to your render texture... check this page to see what format is supported by Android and iOS https://docs.unity3d.com/ScriptReference/Video.VideoPlayer.html

Check your video clip import settings on your clips. to see if you can match them to the platform requirements.

You might want to check this is enabled... which I think lets unity auto transcode the video into a supported format... but ideally, you already have it in the correct format before making a build. https://docs.unity3d.com/ScriptReference/VideoImporterTargetSettings-enableTranscoding.html from unity docs... "The best natively supported video codec for hardware acceleration is H.264, with VP8 being a software decoding solution that can be used when required. On Android, VP8 is also supported using native libraries and as such may also be hardware-assisted depending on models. H.265 is also available for hardware acceleration where the device supports it. $$anonymous$$ey values to look for in your encoding parameters:"

avatar image magotizila JonPQ · Jul 22, 2019 at 08:03 PM 0
Share

is there a way to see the console of my build i tried almost everything and is still doesn't working.... it still crashing

Show more comments
avatar image
0

Answer by aditya23dedhia · Jul 23, 2019 at 07:54 PM

Your video should not be on a 3D game object in the first place,it should be on a 2D blank sprite if you just need it as a part of a menu background . And make sure that in the canvas object. scaling is set with screen size or make sure that the sprite is visible in that resolution. However, as mentioned above, this can really be due to a lot of things.

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 magotizila · Jul 24, 2019 at 02:34 PM 0
Share

okay thank you, i solved the problem bye disabling a quality Sting in unity i dont know why it worked... haha but it worked maybe its the version of the unity im using the 2019

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

132 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 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 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 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 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 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 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 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

I'm experiencing constant crashes when the multiple game windows are open. 0 Answers

I can't use google admob ads 1 Answer

Unity 2.6.1f crashes 2 Answers

Unity refuses to open on my mac! 3 Answers

Text missing in Editor; huge amounts of bugs and glitches 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