• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7
Kodi doesn't choose the correct resolution from the whitelist
#16
(2024-01-20, 08:46)fritsch Wrote: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)
...
[WHITELIST] Searching the whitelist for: width: 1280, height: 720, fps: 25.000, 3D: false
[WHITELIST] Searching for an exact resolution with an exact refresh rate
[WHITELIST] No match for an exact resolution with an exact refresh rate
[WHITELIST] Searching for an exact resolution with double the refresh rate
[WHITELIST] Matched an exact resolution with double the refresh rate 1280x720 @ 50.000000 - Full Screen (34)
Display resolution ADJUST : 1280x720 @ 50.000000 - Full Screen (34) (weight: 0.000)

Then as I've already wrote there's this in the log: 
Code:
CRenderManager::Configure - change configuration. 1920x1088. display: 1920x1080. framerate: 25.00.
...
[WHITELIST] Searching the whitelist for: width: 1920, height: 1088, fps: 25.000, 3D: false
[WHITELIST] Searching for an exact resolution with an exact refresh rate
[WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 25.000000 - Full Screen (32)
[WHITELIST] Searching for an exact resolution with double the refresh rate
[WHITELIST] Matched an exact resolution with double the refresh rate 1920x1080 @ 50.000000 - Full Screen (28)
Display resolution ADJUST : 1920x1080 @ 25.000000 - Full Screen (32) (weight: 0.000)

So Kodi in the first place selects 720p 50Hz then it switches to 1080p 25Hz. Why ?
Reply
#17
If it would have remained with its first decision that would have been perfect, but after 2 seconds it changed its mind as you can see in the log. Therefore finally the video is being played at 1080p 25Hz and not a 720p 50Hz.
Same behavior with the 576p that goes from 576p 50Hz to 1080p 25Hz. The 1080p and the 2160p are played correctly because it finds a perfect matching resolution and refresh rate. The problem is with the lower resolutions because it gets them wrong. Maybe, as Zuikkis as suggested before, we have to blame the Fire Stick; maybe it's the Fire Stick that triggers this wrong behavior.
Reply
#18
(2024-01-20, 08:29)Kayn Wrote: Of course if I whitelist only 4K resolutions then Kodi will upscale everything to 4K and that's exactly what I wanna avoid. Actually I'm trying to achieve the exact opposite. Kodi has to select the best resolution in order to avoid upscaling and possibly also the refresh rate manipulation.

At least I'm not the only one who have seen it. As you said too in the first place Kodi selects the best resolution, so if we take as an example the 720p it chooses 720p 50Hz (double 25Hz), then it changes its mind and selects 1080p 25Hz. Same behaviour with the 576p, on the other hand with the 1080p and the 2160p everything it's ok.

As you suggested maybe it's the fire stick that triggers this behaviour; maybe that's its fault.... I don't know...

I do understand what you mean (I seem to be the only one).. Smile

But what I said, I doubt you can see any difference no matter how you upscale it. I don't believe your TV has any better upscaling than Kodi has...

576p and 720p also have the problem that overlays will look really bad. Subtitles etc.

I wonder if that is part of the problem. If Kodi GUI is configured to run at 1080p, does it even allow lower video resolution? It is impossible to overlay 1080p GUI if HDMI output is 576p.
Reply
#19
(2024-01-20, 09:26)Kayn Wrote:
(2024-01-20, 08:46)fritsch Wrote: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)
...
[WHITELIST] Searching the whitelist for: width: 1280, height: 720, fps: 25.000, 3D: false
[WHITELIST] Searching for an exact resolution with an exact refresh rate
[WHITELIST] No match for an exact resolution with an exact refresh rate
[WHITELIST] Searching for an exact resolution with double the refresh rate
[WHITELIST] Matched an exact resolution with double the refresh rate 1280x720 @ 50.000000 - Full Screen (34)
Display resolution ADJUST : 1280x720 @ 50.000000 - Full Screen (34) (weight: 0.000)

Then as I've already wrote there's this in the log: 
Code:
CRenderManager::Configure - change configuration. 1920x1088. display: 1920x1080. framerate: 25.00.
...
[WHITELIST] Searching the whitelist for: width: 1920, height: 1088, fps: 25.000, 3D: false
[WHITELIST] Searching for an exact resolution with an exact refresh rate
[WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 25.000000 - Full Screen (32)
[WHITELIST] Searching for an exact resolution with double the refresh rate
[WHITELIST] Matched an exact resolution with double the refresh rate 1920x1080 @ 50.000000 - Full Screen (28)
Display resolution ADJUST : 1920x1080 @ 25.000000 - Full Screen (32) (weight: 0.000)

So Kodi in the first place selects 720p 50Hz then it switches to 1080p 25Hz. Why ?

Why do you ignore what kodi does?

In the first selection the input dimension as found / parsed by kodi is 1280x720 - in the second selection it is 1920x1080, so it's a different starting condition. That is nothing kodi does voluntarily ... it is given by the file.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#20
You see the "onAVChange" events in the log. Turn on ffmpeg debug logging or provide a sample for your file. Then I can clearly show you why it sooo often triggers refresh / resolution change.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#21
(2024-01-20, 08:29)Kayn Wrote: At least I'm not the only one who have seen it. As you said too in the first place Kodi selects the best resolution, so if we take as an example the 720p it chooses 720p 50Hz (double 25Hz), then it changes its mind and selects 1080p 25Hz. Same behaviour with the 576p, on the other hand with the 1080p and the 2160p everything it's ok.

As you suggested maybe it's the fire stick that triggers this behaviour; maybe that's its fault.... I don't know...

What is your video resolution set by FireOS ?

Also this line in your log:
"CRenderManager::Configure - change configuration. 1920x1088. display: 1920x1080. framerate: 25.00."
Shows that you are using a video file with non-standard resolution...
Reply
#22
(Edit: removed my harsh comment, sorry) Smile

Here's the relevant lines copypasted if it's too difficult to spot otherwise.

First file: (576p)

2024-01-19 03:41:31.486 T:14489 info <general>: ffmpeg[0xcdd28030]: Stream #0:0(ita): Video: h264 (High), yuv420p(progressive), 720x306 [SAR 1:1 DAR 40:17], 25 fps, 25 tbr, 1k tbn (default)
2024-01-19 03:41:31.494 T:14489 debug <general>: [WHITELIST] Matched an exact resolution with double the refresh rate 720x576 @ 50.000000 - Full Screen (36)
2024-01-19 03:41:33.772 T:14513 debug <general>: CRenderManager::Configure - change configuration. 1920x1088. display: 1920x815. framerate: 25.00.
2024-01-19 03:41:33.882 T:14167 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 25.000000 - Full Screen (32)

Second file: (720p)

2024-01-19 03:42:12.119 T:14627 info <general>: ffmpeg[0xcdcb6c30]: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)
2024-01-19 03:42:12.122 T:14627 debug <general>: [WHITELIST] Matched an exact resolution with double the refresh rate 1280x720 @ 50.000000 - Full Screen (34)
2024-01-19 03:42:14.562 T:14641 debug <general>: CRenderManager::Configure - change configuration. 1920x1088. display: 1920x1080. framerate: 25.00.
2024-01-19 03:42:14.818 T:14167 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 25.000000 - Full Screen (32)

Third file: (1080p)

2024-01-19 03:42:55.203 T:14733 info <general>: ffmpeg[0xcdd28030]: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1040 [SAR 1:1 DAR 24:13], 23.98 fps, 23.98 tbr, 1k tbn (default)
2024-01-19 03:42:55.207 T:14733 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 23.976000 - Full Screen (30)
2024-01-19 03:42:57.550 T:14748 debug <general>: CRenderManager::Configure - change configuration. 1920x1088. display: 1920x1040. framerate: 23.98.
2024-01-19 03:42:57.732 T:14167 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 23.976000 - Full Screen (30)

Fourth file: (4K)

2024-01-19 03:43:29.090 T:14834 info <general>: ffmpeg[0xcdcb6c30]: Stream #0:0(ita): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
2024-01-19 03:43:29.096 T:14834 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 3840x2160 @ 23.976000 - Full Screen (27)
2024-01-19 03:43:32.035 T:14848 debug <general>: CRenderManager::Configure - change configuration. 3840x2160. display: 3840x2160. framerate: 23.98.
2024-01-19 03:43:32.106 T:14167 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 3840x2160 @ 23.976000 - Full Screen (27)

... so, for each file Kodi first plays a few seconds, then this "CRenderManager" kicks in and decides it's time to check whitelist again. For 1080p and 4K this second check gives same result so nothing is changed.
Reply
#23
(2024-01-20, 14:46)Sholander Wrote: Also this line in your log:
"CRenderManager::Configure - change configuration. 1920x1088. display: 1920x1080. framerate: 25.00."
Shows that you are using a video file with non-standard resolution...

You can see the video resolutions in the log (above), it's not 1088. 1088 somehow comes from Kodi math when it decides to upscale to fullhd.
Reply
#24
Last chance: Post your video - or continue spamming around for yourself.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#25
I can confirm the behavior reported in this thread. I tried a 720p 25Hz file. The resulted resolution was 1920x1080 25Hz, although 1280x720p 50Hz is whitelisted. The log contains Kodi attempts to select 1280x720 50Hz, but then switched to 1920x1080 25Hz.

There is also 1920x1088 somewhere in the log, that has nothing to do with the input file.

Tested devices: AFT 4K Max 2nd gen -> Denon X4800H -> LG C1.

Kodi.log

I'll try to do more debugging on this. First I need to understand how it's supposed to work. The concept of separate GUI resolution and video resolution is new to me. How GUI resolution 1920x1080 and video resolution 1280x720 are supposed to work together?
Reply
#26
(2024-01-20, 17:19)boboc Wrote: The concept of separate GUI resolution and video resolution is new to me. How GUI resolution 1920x1080 and video resolution 1280x720 are supposed to work together?
The GUI will get scaled to match the video resolution.
Reply
#27
Who can explain exactly what influence the GUI resolution has on video playback?
Reply
#28
(2024-01-22, 14:52)-locha- Wrote: Who can explain exactly what influence the GUI resolution has on video playback?
Me, none.
Reply
#29
Is this statement correct?:
If "Adjust refresh rate on start/stop" is not active, everything is output as the GUI is set.
Reply
#30
(2024-01-22, 15:45)-locha- Wrote: Is this statement correct?:
If "Adjust refresh rate on start/stop" is not active, everything is output as the GUI is set.

No.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7

Logout Mark Read Team Forum Stats Members Help
Kodi doesn't choose the correct resolution from the whitelist0