Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Video Speed of video player

Discussion in 'Audio & Video' started by dcamod, May 5, 2020.

  1. dcamod

    dcamod

    Joined:
    Oct 29, 2019
    Posts:
    19
    I have read that the video player is slow in Unity. Is there anything I can do to optimize it or is there any planned updates to it. I have looked around for information on the website and the roadmap but have seen nothing yet.
     
  2. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    256
    Hi!

    The VideoPlayer's performance is a function of what the media playback/decoding libraries bundled with the platform can do. Most implementations use the fastest code path available, which means decoding is accelerated with the use of graphics hardware. The latest addition in this area is the Windows/UWP implementation which is now hardware accelerated, both on DX11 an DX12 in 2019.3.

    There is not much you can do on your end to speed things up if you've found a scenario that you observe is too slow for your requirements. You can obviously select a lower resolution or frame rate if this is acceptable in your context.

    You can also submit a bug report if you find a situation where a native media player on your system can play a source without trouble while Unity's VideoPlayer doesn't keep up. We try to address these situations as bandwidth permits, keeping in mind that certain design decisions of Unity's VideoPlayer favor flexibility over highest performance (also depending on platform).

    Hope this helps!

    Dominique Leroux
    A/V developer at Unity
     
    dcamod likes this.
  3. Wynellrussell

    Wynellrussell

    Joined:
    Apr 28, 2020
    Posts:
    3
    thank you so much for this valuable information!
     
  4. dcamod

    dcamod

    Joined:
    Oct 29, 2019
    Posts:
    19
    This was helpful. Thank you. I would like to know if there are any planned changes to look forward to but your response more than covered most of my concerns.
     
  5. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    256
    Hi again!

    There are no short term plans for performance improvements, as we are not aware of actual performance problems; please let us know if you can observe the opposite. Or course, there are bugs that we are regularly fixing, but these don't fall into the category of optimization or performance enhancements.

    Have a nice day!

    Dominique
     
    dcamod likes this.