Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Video playback working on everything except Steam Deck

Discussion in 'Audio & Video' started by Peeling, Mar 15, 2023.

  1. Peeling

    Peeling

    Joined:
    Nov 10, 2013
    Posts:
    442
    We have some preview video content that we render in our UI using unity's Video Player. It works perfectly on Android, iOS, Switch, PC (via Steam) and PS4 - but not on Steam Deck.

    On the Deck we get either a rainbow-coloured test card (newer model Deck) or a strange shearing effect:

    upload_2023-3-15_15-28-43.png

    Everything else about the game works just fine.

    Could it be video resolution? Aspect ratio? Format? We've ticked 'transcode' and it made no difference.
     
  2. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    Can you share a little bit more info? On what version of Unity are you? What video format are you using? Are you building for Linux or are you using something like Wine to run the game?

    My assumption is you are maybe playing an mp4 using Wine and the bridge between MediaFoundation and GStreamer broke somewhere. You said you tried transcoding but did you change the codec to VP8 instead of auto?
     
  3. Peeling

    Peeling

    Joined:
    Nov 10, 2013
    Posts:
    442
    All we're actually doing at the moment is running the version we build and upload for PC Steam on a (couple of) Steam Decks. We haven't yet properly focused on it as a platform.

    I'll try changing the codec for the next build - thanks very much!
     
  4. Peeling

    Peeling

    Joined:
    Nov 10, 2013
    Posts:
    442
    VP8 has worked; thank you!
     
    The_Island likes this.
  5. Xesk

    Xesk

    Joined:
    Dec 26, 2017
    Posts:
    15
    Would there be a solution in which we dont have to change the codec? Maybe exporting the video in another format? Fix this broken bridge somehow?