Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

Video support on Linux

Discussion in 'Linux' started by Krisi98, Jan 9, 2021.

  1. Krisi98

    Krisi98

    Joined:
    Jan 9, 2021
    Posts:
    1
    Hello all,

    Playing a game build with the latest Unity on Linux I was unable to use one of the game features being animated backgrounds as enabling this in settings resulted in a black screen. Googling my problem I find this forum and that most video formats are not supported in Linux except webm while this game uses mp4. Replacing those videos with webm made the game too lagy, something that wasn't a problem before.

    So is there any plans for more video files support in the near future ? And what can I do in my case ?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,457
    VP8 encoded videos should work without lag.

    We can't add mp4 support on Linux because it depends on h.264 and h.265 decoders and Linux doesn't ship with them built-in (since there's nobody to pay the licensing fees).
     
  3. gamefox87

    gamefox87

    Joined:
    Aug 19, 2016
    Posts:
    45
    There is an Openh264 project that pays those licensing fees and has the codecs available for Linux. https://www.openh264.org/
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,457
unityunity