Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 ShmayFish · Feb 01, 2013 at 08:06 PM · videoexportplaymovie

Video won't play in exported game?

I'm having an issue with an exported game, which persists in builds for the web, MacOSX, and Windows 7. The game consists of 4 scenes, one of which plays a video (opening cinematic)and another which plays a video on a TV screen in the level. The cinematic plays but the video on the TV screen does not.

HOWEVER, the video plays normally when I play the game through the Unity editor.

So what gives?

Thanks!

Comment
Add comment · Show 3
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 Wolfram · Feb 02, 2013 at 04:31 PM 0
Share

Is it an asset? Is it a Resource? Is it strea$$anonymous$$g from somewhere? How do you load/access that video? Is the "cinematic" another video? What's the difference to your TV screen video? $$anonymous$$ore info please...

avatar image ShmayFish · Feb 02, 2013 at 09:43 PM 0
Share

Both are .mov format being imported into Unity and placed on a plane's material as an animated texture (started with a play and loop script). I should have been clear about that. So they are assets. There is no difference to my knowledge between the two videos besides possibly file size. Also, the TV screen video loops and the cinematic does not.

The scenes are different too, I suppose, with the cinematic screen literally only consisting of a camera and the plane, while the TV exists in a scene with many other objects. But again, it works perfectly when run out of the Unity Editor.

Thanks!

avatar image Wolfram · Feb 02, 2013 at 09:50 PM 0
Share

Hm. Web, $$anonymous$$ac, and Windoze builds all behave the same?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Wolfram · Feb 02, 2013 at 09:58 PM

Unless there is some scripting interdependency (for example, since execution orders of all Start() resp. Update() etc. are unpredictable, they are known to sometimes behave differently in Editor vs. build), which we can't say since we don't know how you control/start/reset your movies, another possibility is a problem with the video itself.

You can try to convert your videos yourself into a format that can be played natively by Unity (which is Ogg Theora), instead of relying on Unity to convert it. This way you also have more control over the resulting quality. Use ffmpeg2theora to convert your movie.

Oh, another idea: Even if it's an asset, it might not get included into the build. Is the screen black, or do you see the correct first frame and it just isn't playing? Do you have your videos referenced in your scene in the Inspector (on an object, in a material, ...), or do you assign the video via script? If the latter, it's possible it doesn't get included (check the output log after running a build, it should mention an exception or an error). Prevent this by placing your video asset inside a folder named "Resources".

(EDIT: woops, you did mention they are placed on a material. So you can probably ignore my last paragraph)

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 ShmayFish · Feb 02, 2013 at 10:53 PM 0
Share

Thanks! I'll try this out! For the record, the screen is black.

avatar image
0

Answer by ShmayFish · Feb 03, 2013 at 03:50 AM

I got it to work. I realized that the video file was assigned to an object that had 2 textures on it from child objects (one for the screen and one for the box). I assume that because I was simply assigning the video to play from the main texture of the parent, the build was not including it but still played in the Builder. My solution was simply to pop a new plane of the TV screen and apply the movie texture to it.

I feel so silly :p

Thanks for the help!

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 shady123456 · Oct 16, 2017 at 12:30 PM

alt text


screenshot-279.png (275.9 kB)
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 shady123456 · Oct 16, 2017 at 12:31 PM 0
Share

what the solve for this problem !!

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

11 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

Related Questions

How to take video input to unity ? 1 Answer

creating play once only 1 Answer

Splash videos on android and iOS? 0 Answers

Error on playing MovieTexture in Unity 3.1 1 Answer

Wheres my options for Movie textures? 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