OSMC 18 - Refresh Rate Adjustment Behavior

I was playing a 960x720/24Hz video today, and my Vero 4K+ insisted on playing it at 720p/60 instead of 1080p/24.

I was able to get it to play at 1080p/24 by un-whitelisting 720p/60; but in the light of the discussion higher up this thread, I was a little surprised I needed to do that. Is this expected behaviour, or might there be something odd going on?

Happy to post logs, mediainfo, etc. if it sounds like there’s something to look at, but didn’t want to bother if this sounds like correct behaviour. :slight_smile:

You couldn’t have just changed it from the video menu when you were playing the file?

Can we see MediaInfo?

Sam

I don’t think many people know that function is available through the context menu. Is that a relatively new addition? I certainly didn’t know about it until I stumbled upon it a month ago while hopping into the menu to change subtitle placement settings.

I think it showed up with whitelists because it is only an option when your using them.
(I could be wrong though, so don’t quote me on that)

Yes. The algorithm looks for an exact match to either width or height at the exact refresh rate or x2 or x2.5 before trying the GUI resolution.

I could, but that starts to get annoying after a while if you stop playback and restart later - it doesn’t store the fact that you switched resolution the last time you played that file and you have to set it again each time you restart it.

That combines with another issue where, if I’m watching with the video mode set to “original size”, sometimes it doesn’t keep playing in original size mode after a resolution change.

And if you accidentally hit the Back button one time too many during playback, and then hit it again to get back to the video, that also resets the resolution to the default.

Obviously none of this is that big a deal, but given that the way it’s behaving surprised me, I figured it was worth checking what the behaviour is supposed to be.

Will post that tomorrow.

It was new in Kodi Leia, I think - not available in Krypton.

Okay, fair enough. It seems odd to me, though - I would have expected it to prioritise matching the refresh rate to matching the resolution (so, given a 720p/24 video I would expect it to pick 1080p/24 in preference to 720p/60). In fact, I thought that was precisely the change you and Sam made back in May… I obviously misunderstood.

I understand you now. When you said “I was a little surprised I needed to do that” [emphasis mine] it sounded like you were saying the normal workaround was not functioning for you.

1 Like

No - the change we made was if there wasn’t the correct refresh rate at the GUI resolution then try a higher one. Aimed specifically at US TVs without 1080p50Hz but with 2160p50Hz.

TBH I don’t understand Kodi’s thinking. In Krypton they had a scoring system to select the best compromise, and I can’t recall anyone complaining about that, albeit it didn’t consider resolutions less than GUI. They then abandoned that to prioritise width and height. There’s a further go at it in a PR by Lukas but it hasn’t been agreed and I still don’t understand what he’s trying to achieve.

I’m glad I’m not the only one. :slight_smile:

Here you go, @sam_nazarko:

General
Unique ID                                : 231066661395353899432123929128167831401 (0xADD5D1FACBB7DEF89608956A2B647769)
Complete name                            : E:\QBT\Space 1999 s02e01-24x24 1976.x264.BDRip.720p.kosmoaelita\Space 1999 s02e01x24 Metamorf 1976.x264.BDRip.720p.kosmoaelita.Rus.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 2.33 GiB
Duration                                 : 51 min 9 s
Overall bit rate                         : 6 534 kb/s
Movie name                               : Space: 1999 s02e01x24 The Metamorph / 1976г / Релиз kosmoaelita.com
Encoded date                             : UTC 2016-04-12 00:24:21
Writing application                      : mkvmerge v6.6.0 ('The Edge Of The In Between') built on Dec  1 2013 17:55:00
Writing library                          : libebml v1.3.0 + libmatroska v1.4.1
Attachments                              : Poster space-1999.jpg

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 12 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 12 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 51 min 9 s
Bit rate                                 : 5 124 kb/s
Width                                    : 960 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 24.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.309
Stream size                              : 1.83 GiB (78%)
Title                                    : kosmoaelita
Writing library                          : x264 core 148 r2597 e86f3a1
Encoding settings                        : cabac=1 / ref=12 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=6,6 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=150 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.75 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.10 / aq=3:0.80
Default                                  : Yes
Forced                                   : No

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 51 min 9 s
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 234 MiB (10%)
Title                                    : Русский ЛО (kosmoaelita, Рутилов) AC3 5.1 640
Language                                 : Russian
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 51 min 9 s
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 234 MiB (10%)
Title                                    : Engl AC3 5.1 640
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 4
Format                                   : VobSub
Muxing mode                              : zlib
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : Picture based subtitle format used on DVDs
Title                                    : Русский (Н.Лопатинская, kosmoaelita) VobSub перевод с англ. субтитров
Language                                 : Russian
Default                                  : Yes
Forced                                   : No

Text #2
ID                                       : 5
Format                                   : VobSub
Muxing mode                              : zlib
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : Picture based subtitle format used on DVDs
Title                                    : Русский (Н.Лопатинская, kosmoaelita) VobSub перевод с англ. субтитров
Language                                 : Russian
Default                                  : No
Forced                                   : No

Text #3
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Русский (Н.Лопатинская, kosmoaelita) srt перевод с англ. субтитров
Language                                 : Russian
Default                                  : No
Forced                                   : No

Text #4
ID                                       : 7
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:00:00:00.000
00:05:38.000                             : en:00:05:38.000
00:09:45.000                             : en:00:09:45.000
00:15:32.000                             : en:00:15:32.000
00:19:47.000                             : en:00:19:47.000
00:26:09.000                             : en:00:26:09.000
00:29:57.000                             : en:00:29:57.000
00:35:49.000                             : en:00:35:49.000
00:39:14.000                             : en:00:39:14.000
00:44:46.000                             : en:00:44:46.000
00:50:55.958                             : en:00:50:55.958