iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
15.7k stars 1.72k forks source link

[Bug] wrong projection on 360 videos #4580

Open iBicha opened 3 months ago

iBicha commented 3 months ago

Describe the bug Currently 360 videos (webgl) are not properly projected (see screenshot)

Steps to Reproduce Open video sPyAQQklc1s

Screenshots

projection-bug

Additional context It's known that YouTube moved away from Equilateral Cubemap a while back (which what causes the wrong projection in the screenshot) to using the Equi-Angular Cubemap (I hope these are the right names)

Some people figured out that changing the user agent can get them the old format back https://github.com/ytdl-org/youtube-dl/issues/15267 Also related https://github.com/videojs/videojs-vr/pull/179

But "Equi-Angular Cubemap" does not necessarily have to be projected as described here, even projecting to a cube with the right UVs can be a huge improvement compared to current state.

As an example of that, you can test this html file (zip because github won't let me html) webgl-viewer.html.zip

iBicha commented 3 months ago

Relates to https://github.com/iv-org/invidious/issues/2394