Support VP9 and AV1 within webm for Unity Video Player
regalialong
This isn't a bug report because technically it's working as intended, but I digress, I recently wrote a blog article about what video codecs work with VRChat. Trying to load anything but VP8 within the webm container gives the following errors when using the Unity Video Player:
Error: Unsupported video codec 'VP9' found <url>
Error: Unsupported video codec 'AV1' found in <url>
It's not that the system lacks the capability to play these, using AVPro or remuxing it into mp4 makes it play fine.
This is really annoying because it requires remuxing all open format content into mp4 for just compatibility with one of the two video players, it would be immensely helpful to be able to use webm files verbatim.
Log In
D
Docteh
What audio codec are you using? I tried using a VP8 with Vorbis in a webm, and it failed to play in a world with a "Unity 720p" option. Works fine with the AVPro option.
One thing I'll try later is disabling the VP9 Video extension I got in the windows store, and see if that effects VP9 playback in VRChat.
regalialong
I used Opus but I tried a video file stripped of audio and it does the same thing, VP8 is expected to work I believe as per https://docs.unity3d.com/2021.3/Documentation/Manual/VideoSources-FileCompatibility.html#CompatibilityWithTargetPlatforms but Unity just... forgot about the rest
D
Docteh
regalialong video playback ends up being an interesting mix of technology.
I figured out why vp8 was giving me trouble. turns out that vp8 webm with unity video requires https. mp4's work fine
the internet at large is all https these days, but an insecure webserver is easy to spin up on localhost
now i can uninstall either vp9 or av1 and see what happens.