Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
196 stars 9 forks source link

Add option to force-load high resolution video-only streams from youtube-dl #1466

Open candypheonixIO opened 3 years ago

candypheonixIO commented 3 years ago

I've just tried two 4k livestreams from youtube and two 8k and 4k videos from youtube as well, neither provided anything higher than 1080p resolution when setting the Max Width and Height for the VideoTextureProvider.

Is this just a limitation to what ever youtube-dl variant we are using now?

Frooxius commented 3 years ago

Which video did you try? Often times YouTube splits the higher resolution videos into separate video and audio streams, but Neos needs a version that has both for the playback. If there's no such version available for 4K then it won't load that one.

You can check in the log which versions were available.

candypheonixIO commented 3 years ago

PERU World 8K these were the videos, 4k and 8k videos.

Frooxius commented 3 years ago

Looks like YouTube offers video-only raw streams for the 4K and 8K versions. You'd have to download them and mux them into a single video file.

I can add an option to load those streams, but it will play without audio.

Note that 8K might be way too heavy though and cause severe framerate drop, 4K might be heavy-ish too, depending on whether Unity Native or libVLC is used (libVLC version we're using has unstable hardware decoding).