New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VideoPlayer: add method for requesting desired video resolution to de… #9531
Conversation
@@ -1,6 +1,6 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<addon id="kodi.inputstream" version="1.0.3" provider-name="Team Kodi"> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Imo it would be better to use video steam selection, we do this for any other stream type. |
@ace20022 i thought we agreed for both? automatic and manual selection? |
The others have both too. The videoplayer chooses a preferred stream from all available and not the demuxer. |
It's the demuxer that can change resolution and signal stream change event. Hence it is correct to instruct demuxer with desired resolution. |
@ace20022 not sure if you got the intent of this change. DASH uses bandwidth to decide what of that many available streams is best. But on a 720 it won't make sense to select a 1080 stream. This is nothing that can go to selection streams. Destination resolution can change by i.e. resizing the window. |
ofc I got it.
Why not? Downsampling for example? Imo a demuxer should only offer streams/resources and should not act on its own. |
heh? what about the "adaptive" in DASH? We already do this and this is just another parameter for optimization.
Certainly not a good idea. Why do you want to waste resources on network on GPU? Downloading 1080 and downscaling it to 720 makes ZERO sense if you can download 720 right away. |
I can't comment on the code but a downsampled 1080p looks usually better than a native 720p.. Web streams use the minimum bit rate necessary for a decent quality so usually you get more details with the downsampled version.. |
@phate89 I don't think you fully understand the topic here. In order to optimize an addon is free to use various parameters like bandwidth, desired resolution or whatever else is necessary. |
@phate89 As I have seen this "myst" again and again here is a counter example: 1080p rescaled from above 720p (size does not matter as our lanczos3 does this) Summary: When bandwidth gets really low I always prefer the 720p version at this bandwidth. |
jenkins build this please |
I said already, that I'll make resolutions selectable if anybody wnats to play around with it. |
@fritsch you are doing the opposite.. |
@phate89 yes, the user is can still select the desired quality or an automatic mode. For now player requests window resolution but this will be more dynamic in the future. Not sure if you have noticed ProcessInfo. This object is supposed to collect runtime data and make many quality settings like deinterlacing of upscaling automatic. Means if there are enough system resources VideoPlayer may request the highest resolution and sets downscaling to the best quality. On a different scenario VideoPlayer infrastructure may be used to render into a preview window, PIP, or transcoding on-the-fly. Those are scenarios player has to decide on its own anyway. jenkins build this please |
thanx! will implement soon (currently its hell on earth at work) |
…muxer
@mapfau not complete finished but should to for now. I only sets resolution at the time video stream is opened. Can be improved later.