gui1117 / YouTubeStream

Apache License 2.0
13 stars 4 forks source link

Video quality control #4

Open k2arim99 opened 5 years ago

k2arim99 commented 5 years ago

I think there should a way to control the video quality of the stream it extracts

gui1117 commented 5 years ago

yes when opening a link we can have different stream available, opening a view offering the choice would be a huge improvement to me as well

JackDesBwa commented 5 years ago

+1!

I was about to propose something similar because I tried to see a VR180 video and it chose a low quality small monocular undistorted cropped version... not VR at all. I studied the feasibility to get the URLs of these streams and found a partial way. Although it is not totally okay for me, the method lists the different versions for regular and 3D videos including spherical ones (but without the 3D part for the panoramic videos apparently), so it will be useful for this issue at least.

As you know with my previous contribution, I am not very interested in learning and moreover install the environment for compilation. However, I suppose that the "help wanted" flag you added to this issue concerns the algorithm to get the list, not to display it within the app.

So I tested my findings with a small script and it works pretty well (potential errors/exceptions not handled). It is written in python for simplicity of the quick test: https://gist.github.com/JackDesBwa/bd0c07b091ada4344e5038a77c3b88e8

I hope it will help for this functionality.