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
1
Question by Noise crime · Jul 21, 2010 at 07:14 PM · wwwmovietexture

Movie Texture - lost first few seconds and long start up times

Ran into a really strange problem with movie textures.

I've got sorenson video 3, MPEG layer 3 quicktime mov (3 minutes long, 768x432pixels). It plays fine in Quicktime (win 7) but when imported into Unity the first 4 seconds are just black or cut off entirely (its hard to tell via the preview). It also takes a good few seconds to start playing.

Obviously i'm going to have to try using a different mov format, but just wondering if anyone else has had similar issues and what if any solutions were found?

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
1
Best Answer

Answer by Noise crime · Jul 21, 2010 at 08:09 PM

ok seem to have an answer for this.

For some reason playing an embedded movie in Unity suffers this problem, which appears to be more a case of a long delay, meaning the first few seconds are missed, rather than any codec issue.

Playing the same movie via WWW using a local file does not have this problem, it plays instantly, has no black frames and doesn't cut off the first few seconds.

My assumption is that when playing the embedded version it must be loading the entire movie or a considerable part of it into memory before playing. This means when it does start playing it has to skip forward a few seconds to be in sync.

I'd say this is a bit of abug as clearly WWW verison plays fine.

For reference I used the answer to this question.

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 alvaro-em · Jan 28, 2014 at 01:32 PM

Hi, Noisecrime.

I just followed your advice and it didn't solve the issue either.

This is my code:

     IEnumerator LoadMovie()
     {
         string path = "file://"+Application.streamingAssetsPath+"/"+videoPath;
         Debug.Log(path+": "+System.IO.File.Exists(path));
                        
         WWW w = new WWW(path);
 
         while (!w.isDone)
             yield return 0;
 
         Debug.Log("Bytes: " + w.bytesDownloaded);
     
         _videoManager.videoLeft = w.movie;
         while (!_videoManager.videoLeft.isReadyToPlay) yield return 0;
 
         Application.LoadLevel(1);
     }

The video is then played in the new scene.

I am still facing the same issue, with a few seconds in the video fully black, while the audio plays ok.

Any other ideas on how to solve this?

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

1 Person is following this question.

avatar image

Related Questions

'movie' is not a member of 'UnityEngine.WWW' 1 Answer

How can I load a mp4 from a website to use as a Movie Texture at runtime? 0 Answers

WWW in Editor getting request with null attributes 1 Answer

Black MovieTexture with Audio streaming on Mac? -1 Answers

Problem playing movietexture only with local file 1 Answer


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