WEBGL Doesnt work with H265 Video

Hello Everyone,

I have been experimenting with WebGL video, as we all know is a tricky matter to get it to work. I work with 360 Video and as I edit the videos myself I normally use the H265 codec for quality/size reasons.

To my surprise, anytime I would place the video in the WEBGL build I was able to hear the audio but wasn’t able to see the picture. I tried many different solutions and then I somehow managed to do make it work by using another video in my collection.

My conclusion is that H265 is not a supported codec from the browser perspective and for this reason, it doesn’t work. If anyone has a different opinion and a potential solution I’ll be happy to hear it, otherwise ill keep using H264 (which is the standard for almost any other video)

thanks!

Yes, the codecs that can be played depend on the browser.

2 Likes

You can find the support chart for H.265 here: HEVC/H.265 video format | Can I use... Support tables for HTML5, CSS3, etc . At the present time, looks like only Safari supports it. In order to work it via Unity, the H.265 video file should be placed inside the Unity StreamingAssets/ directory.