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 user-2585 (google) · May 16, 2010 at 09:39 AM · videomovietexture

Best video preparation for unity.

I'm having major issues with the sound on my GUI movie textures. Really inconsistent results...

Doesn't unity have a preferred format for movies that you import? A preferred codec? I'm currently using MOVs with h264. cheers

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

6 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Paul Clay · Sep 20, 2010 at 01:33 AM

I too have had these problems. My solution: avoid unity's native importer/converter at all costs for video work. It breaks with big files and gives you inconsistent results.


Workflow to fix audio sync problems, but might have loss of video quality


Export to Mpeg2 format with the following settings:
Pixel ratio: square
Field: lower or upper
width and height adjusted to compensate for square pixels.
download ffmpeg2theora http://v2v.cc/~j/ffmpeg2theora/
on the terminal type (mac version):
 cd path/to/file
 ffmpeg2theora myfilename.mpg
Drag n drop new .ogv file to your unity assets folder. Done!


Work flow for top video quality, but likely will have audio sync issues.


Same as above accept instead export to H264 or Quicktime Animation (if your video is not progressive)
Use ffmpeg2theora to convert .mov to .ogv


Moral of story: always use ffmpeg2theora for your videos, especially if they are large video files.

Hope this helps!
-P

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 zerebruin · Feb 22, 2012 at 09:20 PM 0
Share

Yup, this works pretty well. Still not anything near HD quality you get from aperfect FHD video but acceptable.

avatar image DustInTheAir · Jun 08, 2012 at 01:06 PM 0
Share

How did you do that? I have replaced an .mov video by .ogv, but it seems that Unity can't import the .ogv video. On this page: http://unity3d.com/support/documentation/$$anonymous$$anual/Video%20Files, “Video files are imported via Apple QuickTime. Supported file types are what your QuickTime installation can play (usually .mov, .mpg, .mpeg, .mp4, .avi, .asf).” Should I add a codec to quick time in order to do this? Thanks!

avatar image
1

Answer by Peter G · May 16, 2010 at 10:54 AM

According to the manual, Unity will automatically converts movies into Ogg Theora videos so your movie format does not change the end result much.

What I would do and others do, is import the highest quality you can, then use the quality slider to create an acceptable compromise between quality and performance. That way if you need a very high quality, you have it, and everywhere else, you can make a duplicate with increased performance where you need it. This is very similar to the max texture settings when importing tex 2D.

One other way to increase quality would be to turn filtering to trilinear.

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
1

Answer by ryandeluz · Mar 14, 2012 at 08:39 PM

I've used .H264 in a .MOV file with some success.

I find it important to set the audio to uncompressed, otherwise things can break!

It definitely matters what file format it starts as. I'm using Unity 3.5

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 ryandeluz · Mar 14, 2012 at 08:39 PM

I've used .H264 in a .MOV file with some success.

I find it important to set the audio to uncompressed, otherwise things can break!

It definitely matters what file format it starts as. I'm using Unity 3.5

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 cregox · Jun 14, 2012 at 02:38 PM

I use Handbrake 0.9.6 "universal" device profile and then manually remove extra audios. Then create a new profile:

cabac=0:ref=2:me=umh:bframes=0:weightp=0:8x8dct=0:trellis=0:subq=6

Works great - video is good on both iPad and Android! :-)

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 masterchop · Jun 08, 2016 at 06:44 PM 0
Share

what are you working with to create the sphere?

  • 1
  • 2
  • ›

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

how can i put button to stop this movie? 2 Answers

how can i play a video from a specific playback position? 0 Answers

MovieTexture will not play in Build - Black Screen 1 Answer

MovieTexture cutscene - performance issues (stuttering) in Unity5 0 Answers

WebGL - Video 6 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