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 BlackOmen52 · Nov 13, 2014 at 09:43 PM · videoslowproanimatedmovie texture

Movie Texture running choppy at random times

Hello! I made a simple 2D Pong in Unity and I wanted to put an animated background to it. I noticed that the animated background tends to run choppy every few seconds. Basically it looks as if your FPS dropped while playing. I checked the FPS and it's 60-120 so that isn't the issue. The video is only 14 seconds long and keeps looping. The file is 7MB and in .OGG format. I tried lowering the bitrate and changing it from 1080p to 720p but it's still the same. It plays completely smooth in any video player. The movie texture is attached to a Mesh Renderer and I use the following script to play and loop it:

var movTexture : MovieTexture;

function Start () {

movTexture.loop = true;

renderer.material.mainTexture = movTexture;

movTexture.Play();

}

You can also download the game from here and see the how the background runs: https://mega.co.nz/#!lJw1SBCJ!XuBcRSZxuUbIhklFgMroqIn2yWFEfpZmp1S7ss00bh4

Anyone knows how to make it play smooth as it does in the video player?

Comment
Add comment · Show 1
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 Graham-Dunnett ♦♦ · Nov 13, 2014 at 09:43 PM 0
Share

(Download is PC only.)

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Graham-Dunnett · Nov 13, 2014 at 09:45 PM

Movie textures are decoded in software, with each decoded frame uploaded to the GPU as a texture. These decoded frames can obviously consume memory. Video players will upload the compressed frames to the GPU and use the GPU to do the decoding.

Comment
Add comment · Show 2 · 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 BlackOmen52 · Nov 14, 2014 at 11:38 PM 0
Share

Is there a way to stream the animated background from disc? If so, would that help?

avatar image LuisCRSousa · Feb 09, 2015 at 02:31 PM 0
Share

So, what is the solution?

avatar image
0

Answer by PedramGC · Aug 10, 2016 at 07:52 PM

I "fixed" it by changing the resolution to something lower and after the video is done playing going back to whatever resolution it was using. It don't fix the issue entirely but makes it much better. The lower the resolution the better it plays, but at the cost of reduced quality.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Movie Texture running choppy every few seconds 0 Answers

Video quality problem when creating 360 degree video with Unity 0 Answers

movie texture in mobile devices 3 Answers

Why does the game pause whenever my movie loops? 2 Answers

How to play video on Windows without Pro version 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