Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Auto resolution not working for some videos. #211

Closed
mzso opened this issue Dec 25, 2013 · 11 comments
Closed

Auto resolution not working for some videos. #211

mzso opened this issue Dec 25, 2013 · 11 comments

Comments

@mzso
Copy link

mzso commented Dec 25, 2013

This video always starts with 360p: https://www.youtube.com/watch?v=e9qvH69prjA

This start with 1080p or lower depending on setting: https://www.youtube.com/watch?v=31yu1gcx0CE

Also YTC seems to prevent other scipts/extensions from setting the correct resolution. Even when I disable auto-resolution.
(Dash enabled. SPF disabled)

@YePpHa
Copy link
Owner

YePpHa commented Dec 25, 2013

I think I know what the issue is. It seems like 1440p is not registered properly in YouTube Center. So therefore it is not correctly setting the quality when 1440p is present or something.

I will try to find a fix for this.

@mzso
Copy link
Author

mzso commented Dec 26, 2013

Tried with latest Dev build.
It's better, but not quite bug free. The second example correctly switches to the highest resolution. The first one on the other hand now starts with 1080p instead of 1200p (shown as 1440p.) and not 360p like before.

@YePpHa
Copy link
Owner

YePpHa commented Dec 27, 2013

Now it should work for the first video you linked too.

@mzso
Copy link
Author

mzso commented Dec 27, 2013

Great.

@YePpHa YePpHa closed this as completed Jan 2, 2014
@PeterDLai
Copy link

The two videos in the OP actually both come up as "Auto (480p)" for me with auto-resolution enabled to the max (Original Definition). I'm running the latest dev build #225.

@YePpHa
Copy link
Owner

YePpHa commented Jan 8, 2014

It seems like if you use the HTML5 player it will not work, but if you use the flash player it will. I will try to investigate why it doesn't work with the HTML5 player.

@YePpHa
Copy link
Owner

YePpHa commented Jan 9, 2014

There seem to be a bug in the HTML5 player where if you choose 1440p in https://www.youtube.com/watch?v=31yu1gcx0CE in the quality menu it will jump to another quality instead (most likely 480p). I've tried to make a hack which will lower the quality every 100 ms if the preferred quality hasn't been selected.

Also the quality naming is different for the flash player and the HTML5 player. So a video with the dimensions 1600x1200 in the flash player will have the quality 1080p where in the HTML5 player it will have 1440p.
This was what went wrong in https://www.youtube.com/watch?v=e9qvH69prjA so that is fixed now.

@mzso
Copy link
Author

mzso commented Jan 9, 2014

Doesn't the HTML5 player purposefully lower quality, if you're in embedded mode? And when you change to fullscreen it changed to your preference. At least that's what I remember. Of course this has an annoying flaw. In embedded mode it buffers several seconds quickly and it takes "ages" to change to the larger resolution. With HD the buffer is small (at least with my net speeds) and when I leave full screen for a few seconds I get a lengthy low res part if I go back.

I've tried to make a hack which will lower the quality every 100 ms if the preferred quality hasn't been selected.

What does lowering achieve?

@YePpHa
Copy link
Owner

YePpHa commented Jan 9, 2014

The issue you're experiencing doesn't have anything to do with the hack. The second video in the OP the quality 1440p is not available (see Quality), but none the less it is shown in the list. If the quality is chosen it will result in defaulting to auto instead (it's possible to select when everything has been buffered). So therefore YouTube Center can't choose that quality.

So therefore I made this hack, which will check if the quality is selected and if it's not it will lower the quality to the quality below it and so forth.

Quality
Actually the video have a quality resolution of 1600x1200, but I've only been able to use it in the flash player. The HTML5 player says 1440p because of that (see my previous post). So I would think that it has a codec or something, which the browser can't play and therefore it might be unavailable.


Doesn't the HTML5 player purposefully lower quality, if you're in embedded mode?

I think it's doing that on every page. Whenever I've used the HTML5 player it would not use the preferred quality at the start. So it had to be changed afterwards.

It seems like as you said that when entering fullscreen it would change the quality (in my case it would be 720p).


I will try to look more into the code of the HTML5 player to see if I can figure out if there's anything that can be done about these issues. But I highly doubt it.

@mzso
Copy link
Author

mzso commented Jan 9, 2014

Actually the video have a quality resolution of 1600x1200, but I've only been able to use it in the flash player.

Huh. I thought it was working with chrome at least, but I see now that you're right. I only get 1728*1080 even if I choose 1440p

@seriousam
Copy link

YePpHa, maybe this can help you get some ideas how to fix youtube center.. https://github.com/klemens/ff-youtube-all-html5
I'm using this script at the moment and it works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants