- Home /
HD Video Playback
Has anyone experimented with playing a fullscreen 1080p video on a GUI texture? It's easy to do, but a 1920 x 1080 fullsreen video is choppy at best. I'm using a .MOV that's honestly a pretty large file (I'm picky about quality). Target is a standalone player on Windows 7 x64 quadcore w/ 8 Gigs of ram and a high end graphics card so I can tell you that the hardware is not lacking. Any ideas on compression settings etc to get great quality but smooth 1080p fullscreen playback?
Video playback quality in Unity is very poor (feels like they don't use GPU acceleration for this) I ended up using an external application created with openFrameworks to play the video.
I didn't use that default OpenFrameworks video playback system. I've ended up using a GStreamer based add-on for Open Frameworks in order to achieve a more fluid user experience. http://forum.openframeworks.cc/index.php/topic,3610.0.html https://github.com/fishkingsin/ofGstPlayerExample
In Unity I've just started a different process (by executing a command in the command line through the C# Api) with OpenFrameworks. When the process ended Unity was notified.
I don't have any code to give you though because I left the company I was working at and stopped working with Unity since then.
thanks for your reply. firstly, if you're running the thing as an external app, how would it appear in your game? like, if you execute it, would it take focus automatically, and appear on top of your game screen or...? secondly, do you think this method would give one total control? I mean, I'm gonna be using this for a video player in Unity (currently I'm converting the video to a picture sequence and loading the pictures as I need), in Unity, you could drag the video window, change its size, seek the video, go next/previous, etc basically all you'd do with a normal media player. since now this thing is an external app, I wonder if communication's gonna be easy between it and Unity... if feasible, at all.
Answer by taoa · Mar 03, 2011 at 09:00 AM
I'm actually very surprised you managed to import a 1080p video in Unity. The best I managed to do was a 720p.
To answer your question, Unity recompresses all imported videos in its own format, using Ogg Theora. So if you import your video using the best quality available (i.e. push the little slider aaaaaall the way to the right), then the result is going to be the best you can possibly achieve in Unity.
If that's not good enough for you, then you're out of luck, I'm afraid, until Unity improves video playback, but considering their main target market (mobile devices, webplayers...), it's massively unlikely in the short/middle term.
Your answer
Follow this Question
Related Questions
Playing from a specific point using Handheld.PlayFullScreenMovie 0 Answers
Full video out on iPad 1 Answer
HD Video in Unity 3D 0 Answers
Importing and Playing a Video 7 Answers