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
4
Question by XeNoTimE · May 20, 2011 at 01:51 PM · videofullscreenmoviejerky

Jerky fullscreen video playback

Hi everyone,

I need to play fullscreen videos in my game. For it I create a video in ogg Theora 720p format and I apply it via a MovieTexture on my GUITexture. However the video rendering under Unity (in any way I choose import parameters) isn't smooth (video appears a bit jerky on camera tracking moves for example) while that is not the case when I watch it with VLC or Media Player Classic. It's just like some frames being skipped during video playback.

Do you know some tips to avoid this problem (compression settings, tool...)? Must I wait for a hypothetical update of the Unity video playing engine?

Thanks for your help.

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 kevinseligmann · Mar 08, 2012 at 08:46 PM 0
Share

Where you able to solve this? I'm on the same situation and I can't fin any solution.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by cregox · Jul 10, 2012 at 02:42 PM

Do you think this may have something to do with it?

Unity 3.5.2 - Changelog

Movies: · Time.captureFramerate is respected by movie playback when movie does not have audio.

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 Wolfram · Feb 03, 2013 at 04:08 AM 1
Share

Old question, but for reference I'll comment: Yes, using Time.captureFramerate is the way to go, we fixed our jerky Theora movies the same way. However, when just setting Time.captureFramerate, Unity still renders as fast as it can. So if you get 60fps and set it to 30, everything will run twice as fast.

To get a stable framerate, we combined it with setting VSync to "every other blank", resulting in 30Hz if your display refresh rate is 60Hz. So we created our videos at 30fps, and set Time.captureFramerate=30, and everything was smooth. The only unavoidable drawback is that the movie and the game time can sometimes run more slowly, if your framerate drops below 30fps.

Ins$$anonymous$$d of the VSync method it should also be possible to use Application.targetFrameRate ins$$anonymous$$d, but I haven't tested that. So for example if you rely on your input video which happens to be 25fps, you would set both Time.captureFramerate and Application.targetFrameRate to 25.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Playing from a specific point using Handheld.PlayFullScreenMovie 0 Answers

Video Texture Loop 2 Answers

How to check if Handheld.PlayFullScreenMovie has stopped playing 2 Answers

Some questions about Handheld.PlayFullScreenMovie 0 Answers

How to import a movie texture and apply it without stretching? 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