Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Video not playing on Steamdeck (tried converting to webm)

Discussion in 'Audio & Video' started by potatomasterrace, Nov 25, 2023.

  1. potatomasterrace

    potatomasterrace

    Joined:
    May 23, 2019
    Posts:
    75
    So I had a .mov file which I was able to play in my game build, but only on Windows. It did not work when I played the game on steamdeck. I did some googling and apparently only certain video codecs compatible with steamdeck (the linux ones below)

    https://docs.unity3d.com/Manual/VideoSources-FileCompatibility.html

    So I used VLC player to change the video from .mov to .Webm (VP80 + Vorbis in VLC player).

    The video still doesn't play on steamdeck, and furthermore it doesn't work on the PC build either now lol. I can watch the .webm video fine in other video players like media player or VLC or whatever, just doesn't work in game.

    Does it need to be a specific type of webm or am I missing something here, maybe .webm gets handled differently to .mov in unity?

    Any advice appreciated. Thanks.
     
  2. potatomasterrace

    potatomasterrace

    Joined:
    May 23, 2019
    Posts:
    75
    thanks. seems vlc didnt offer any other conversion, but i converted using ffmpeg and it produced a webm that works!
     
    halley likes this.
  3. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,661
    Can you provide your ffmpeg command line recipe for that conversion? I'm sure it will help out a lot of people.
     
  4. potatomasterrace

    potatomasterrace

    Joined:
    May 23, 2019
    Posts:
    75
    ffmpeg -i input.mov -c:v libvpx -b:v 1M -c:a libvorbis output.webm

    i think that was it. i just asked chatgpt before and asked again and it gave that for converting from .mov to webm vp8