Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Gollygeewizard's avatar
Gollygeewizard
Honored Guest
10 years ago

Best Practices or Plugins for Video Playback

Hello,

What are your best practices or preferred plugins for playing HD video in Unity?

I spent some time hunting around the forums looking for best practices for HD video playback in unity but I didn't come up with too much by way of what other devs are using or what the preferred methods are. I don't need 360 degree or stereoscopic video, I'm just trying to have a movie screen in my scene.

Movie Texture seems to be too slow for Oculus playback as it keeps dropping my frame rate below 75fps.

I have used Universal Video Texture to some success as it is fast enough for playback but it takes up a ton of texture memory as it is based on image sequences.

I have read that AVPro works well for Oculus but it has some issues with certain effects or lighting.

Is AVPro the best option right now? How are you implementing video?

Thanks!

1 Reply

Replies have been turned off for this discussion
  • Depends on what resolution do you need and your target hardware.
    I'm using AVI player, that is really nice and easy to use (and it works on every platform). But it's good with oculus for maximum resolutions of 1024X1024. With fast CPU you can maybe go even higher. It has a high quality codec MJPEG codec, but this codec generates large files (one minute video on hi-quality setting is aprox. 100mb). Main disadvantage (or advantage, depends on what do you need) is that it doesn't use GPU decoding and/or native plugin, but uses CPU for decoding.
    https://www.assetstore.unity3d.com/en/#!/content/15580

    I have tried AVpro demo, but I don't like it much. I've noticed problems with Linear color space in Unity (changes completely colors), and that, paired with really high price, keeps me holding back from buying it.
    I'm afraid that for now, there isn't any perfect solution for video inside unity. And that is strange, as for example, a video in Unity with mobile SDK (on Gear VR) is really powerfull. It has no performance dropdowns even with UHD video files.