Skip to content
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

Plays in 480p if I select any video quality less than 480p #243

Closed
dagfinnr1 opened this issue Nov 4, 2021 · 3 comments
Closed

Plays in 480p if I select any video quality less than 480p #243

dagfinnr1 opened this issue Nov 4, 2021 · 3 comments

Comments

@dagfinnr1
Copy link

Suffice it to say I have really crappy internet where I live. Anyways I have it set in the settings of your add-on to play in 360p. Sometime ago I noticed I was getting more buffering than usual at this setting and hit info during video play back and noticed it said 480p. Went to check my settings and they were still set at 360p. Moved it to 720p and it says its playing at 720. I then set it to play at 480p and it says it is playing at 480p. Tried the 2 lower settings 360p and 240p and both said they were playing at 480p. Thought perhaps youtube wasn't serving up the lower quality vids anymore so set your add-on to always ask for video quality. Depending on the video there were options to select 360p, 240p or 144p and every time I select one of those options it still says it is playing in 480p. I thought well maybe your add-on is reporting the wrong video quality in the video info page so I thought I would see if I could see any difference between 480p and any of the lower settings. I noticed no visual degradation upon selecting the lower video quality from within your add-on all appear to be playing at 480p.

@anxdpanic
Copy link
Owner

In the YouTube addon
Settings - MPEG-DASH - Use for videos
then set your quality there as well

@dagfinnr1
Copy link
Author

I already have those parameters set as you have stated.
Here is a log after a fresh kodi restart in which i have gone straight to your addon and have initiated playing of a video. it played as 480sd as per info page even tho set as 360p in both settings pages (mpeg-dash & general).

2021-11-03 21:54:19.366 T:2696 INFO : Loading skin file: MyVideoNav.xml, load type: KEEP_IN_MEMORY
2021-11-03 21:54:19.436 T:7228 INFO : initializing python engine.
2021-11-03 21:54:20.535 T:7228 INFO : [plugin.video.youtube] Running: YouTube (6.8.18+matrix.1) on Matrix (Kodi-19.1) with Python 3.8.5
Path: /
Params: {}
2021-11-03 21:54:20.557 T:7228 INFO : CPythonInvoker(9, C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\default.py): script successfully run
2021-11-03 21:54:53.109 T:7228 INFO : initializing python engine.
2021-11-03 21:54:53.110 T:7228 INFO : [plugin.video.youtube] Running: YouTube (6.8.18+matrix.1) on Matrix (Kodi-19.1) with Python 3.8.5
Path: /special/new_uploaded_videos_tv/
Params: {}
2021-11-03 21:55:02.446 T:7228 INFO : CPythonInvoker(9, C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\default.py): script successfully run
2021-11-03 21:55:41.067 T:7228 INFO : initializing python engine.
2021-11-03 21:55:41.069 T:7228 INFO : [plugin.video.youtube] Running: YouTube (6.8.18+matrix.1) on Matrix (Kodi-19.1) with Python 3.8.5
Path: /play/
Params: {'video_id': 'h3trHfFKABI'}
2021-11-03 21:55:41.762 T:7228 INFO : CPythonInvoker(9, C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\default.py): script successfully run
2021-11-03 21:55:41.771 T:2696 INFO : VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?video_id=h3trHfFKABI
2021-11-03 21:55:41.772 T:7384 INFO : Creating InputStream
2021-11-03 21:55:42.131 T:7384 INFO : Creating Demuxer
2021-11-03 21:55:42.795 T:7384 INFO : Opening stream: 0 source: 256
2021-11-03 21:55:42.795 T:7384 INFO : Creating video codec with codec id: 27
2021-11-03 21:55:42.795 T:7384 INFO : CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2021-11-03 21:55:42.795 T:7384 INFO : Creating video thread
2021-11-03 21:55:42.796 T:6352 INFO : running thread: video_thread
2021-11-03 21:55:42.796 T:7384 INFO : Opening stream: 1 source: 256
2021-11-03 21:55:42.796 T:7384 INFO : Finding audio codec for: 86018
2021-11-03 21:55:42.797 T:7384 INFO : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2021-11-03 21:55:42.797 T:7384 INFO : Creating audio thread
2021-11-03 21:55:42.797 T:4556 INFO : running thread: CVideoPlayerAudio::Process()
2021-11-03 21:55:42.798 T:6352 WARNING : DXVA::CContext::CreateContext: using app d3d11 device for decoding due extended NV12 shared textures it's not supported.
2021-11-03 21:55:42.808 T:4556 INFO : Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
2021-11-03 21:55:42.808 T:9584 INFO : CActiveAESink::OpenSink - initialize sink
2021-11-03 21:55:42.815 T:6352 INFO : DXVA::CDecoder::Open: Total video memory available is 4850 MB (dedicated = 1010 MB, shared = 3840 MB)
2021-11-03 21:55:42.815 T:6352 INFO : DXVA::CContext::CreateDecoder: hw may not support multiple decoders, releasing existing ones.
2021-11-03 21:55:42.843 T:9584 WARNING : CWin32DirectSound::GetSpace - buffer underrun - W:7320, P:264, O:5288.
2021-11-03 21:55:42.884 T:2696 INFO : DXVA::CProcessorHD::InitProcessor: supported deinterlace methods: blend:no, bob:yes, adaptive:yes, mocomp:yes.
2021-11-03 21:55:42.884 T:2696 WARNING : CRendererHQ::CheckVideoParameters: chosen scaling method 1 is not supported by renderer
2021-11-03 21:55:42.959 T:2696 INFO : Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
2021-11-03 21:55:43.098 T:6352 INFO : CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 33333
2021-11-03 21:55:44.398 T:2696 INFO : Loading skin file: VideoOSD.xml, load type: KEEP_IN_MEMORY
2021-11-03 21:55:50.869 T:2592 INFO : JSONRPC Server: New connection added
2021-11-03 21:55:58.198 T:2696 INFO : Loading skin file: DialogFullScreenInfo.xml, load type: KEEP_IN_MEMORY

@MoojMidge
Copy link
Collaborator

This should be fixed since #506

Note that Kodi seems to incorrectly label these low resolution videos, so a 480p video shows up as 540 SD, while a 360p video shows up as 480 SD, etc. The actual video resolution correctly matches the selected quality though.

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

No branches or pull requests

3 participants