- Home /
Best video format for smooth playback?
I'm currently looking to Unity for making an application that involves playing a fullscreen video in the background of my scene with 2D sprites or 3D objects. My initial testing was by using an MP4 encoded with H.264, and the video is only a 10 second loop at 1080p, but rendered at a high quality bitrate.
My question is what kind of format is best to get smooth playback in unity? Currently the video looks extremely choppy and with visual artifacts even. When I play the MP4 outside of Unity, it looks perfectly fine however.
I'm using a MovieTexture on a flat plane in orthographic camera mode to play the video. Right now the video is the ONLY thing in the application, and still getting the poor playback. The application itself is still running at ~60 FPS however, despite the choppy video.
EDIT: Let me clarify that this application is meant to run on PC only, and it does not seem to be a hardware limitation. Other programs can play these videos just fine.
Answer by TheFloatingSheep · May 10, 2015 at 08:50 PM
Unity is made to work with Ogg theora format. To import any other format it will use quick time player for converting, and that could f*ck with ur video's quality. Here's a good free online converter: http://video.online-convert.com/convert-to-ogg
Thank you, Ogg is definitely the way to go! Using that format fixed the performance, the artifacts, and even the color quality problems I was having. I ended up using the default settings on this command line converter, and it worked like a charm.
Your answer
Follow this Question
Related Questions
QuickTime problem in Unity 2 Answers
WebGL - Video 6 Answers
How read/get Video File FrameRate? 1 Answer
How stocked the video in full screen in the background? 0 Answers
Various documentation about movie formats is confusing... 1 Answer