Kodi Community Forum

Full Version: trying to force output of 24 refresh rate on videos
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm trying to make 23.970 fps to output at 24hz refresh rate. I have made this advancedsetting.xml file.
<advancedsettings>
    <video>
        <adjustrefreshrate>
              <override>
                   <fpsmin>23.900</fpsmin>
                   <fpsmax>23.999</fpsmax>
                   <refreshmin>24.000</refreshmin>
                    <refreshmax>24.000</refreshmax>
               </override>
        </adjustrefreshrate>
    <video>    
</advancedsettings> 
In log file there is an error
2022-03-07 10:24:12.889 T:3123     INFO <general>: loading settings
2022-03-07 10:24:12.906 T:3123     INFO <general>: special://profile/ is mapped to: special://masterprofile/
2022-03-07 10:24:12.924 T:3123     INFO <general>: No settings file to load (special://xbmc/system/advancedsettings.xml)
2022-03-07 10:24:12.956 T:3123    ERROR <general>: Error loading special://profile/advancedsettings.xml, Line 12
                                                   Error reading end tag.
2022-03-07 10:24:12.956 T:3123     INFO <general>: Default Video Player: VideoPlayer
I'm running ubuntu 21.10 with xorg not wayland, kodi 19.4. Kodi settings refresh rate is start/stop delay 1 sec. When playing the video it is showing a 23.970 fps video when hitting "o" key. When hitting "z" key it shows 60 refresh rate. My desktop display setting is 1920/1080 60hz. Do you need a complete log file?

thanks
jim
Mybe you should try something like this:

Code:
    <adjustrefreshrate>
      <override>
        <fpsmin>23.00</fpsmin>
        <fpsmax>23.98</fpsmax>
        <refresh>23.976</refresh>
      </override>
      <override>
        <fpsmin>24.00</fpsmin>
        <fpsmax>24.40</fpsmax>
        <refresh>24.00</refresh>
      </override>
      <override>
        <fpsmin>24.50</fpsmin>
        <fpsmax>26.00</fpsmax>
        <refresh>25.00</refresh>
      </override>
      <override>
        <fpsmin>29.50</fpsmin>
        <fpsmax>29.98</fpsmax>
        <refresh>29.97</refresh>
      </override>
      <override>
        <fpsmin>30.00</fpsmin>
        <fpsmax>31.00</fpsmax>
        <refresh>30.00</refresh>
      </override>
      <override>
        <fpsmin>49.90</fpsmin>
        <fpsmax>51.00</fpsmax>
        <refresh>50.00</refresh>
      </override>
      <fallback>
        <refresh>60.00</refresh>
      </fallback>
    </adjustrefreshrate>
Is that exactly what is in your advancedsettings.xml?  If it is exactly as posted, you forgot the "/" in the closing <video> tag (second last line).

In case it doesn't work, take a look at section 1 of wiki entry.  I'm not positive if it matters, but you are missing version="1.0" portion in the opening <advancedsettings> tag.  But I am being literal when reading the wiki.

Also, I think you might be able to get rid of the <refreshmin> and <refreshmax> and just replace with <refresh>24.0</refresh>.
Hi,
I finally got the advancedsettings.xml to register properly. When i check the log file the error is gone and the advancedsettings are listed correctly. I did discover that if i make the .xml file and open it the web browser it tells me were to look for structural errors. once all the errors are gone then it just shows the complete xml file, which then worked in kodi. I did find were some else had some problems with structure and the kodi guy said the version didnt mater, if i put it in though then the error would go away.
So I think i need some general information on .xml files. This is from my guisettings.xml.
<setting id="weather.currentlocation" default="true">1</setting>
    <setting id="weather.addon" default="true" />
    <setting id="videoscreen.monitor" default="true">Default</setting>
    <setting id="videoscreen.screen" default="true">0</setting>
    <setting id="videoscreen.resolution">23</setting>
    <setting id="videoscreen.screenmode" default="true">DESKTOP</setting>
    <setting id="videoscreen.fakefullscreen" default="true">true</setting>
    <setting id="videoscreen.blankdisplays" default="true">false</setting>
    <setting id="videoscreen.delayrefreshchange">10</setting>
For example on the videoscreen resolution line the number 23, what does that mean? Is there some place that can list what a number for that line means. I would think these number are specific to Kodi and are not a universal number from any xml file. Some lines to me are self explanatory but others I'd like to know the meaning.

thanks
jim
When trying to change refreshrate with start/stop and advancedsettings.xml, does the fps/refreshrate have any correlation with the resolution.
(2022-03-15, 17:36)jdefed Wrote: [ -> ]does the fps/refreshrate have any correlation with the resolution.

I'd say no. You can have lots of video resolutions and all can be at 23.976 or 24 or 25 fps.
What actually is the controlling factor for the output resolution/fps? If the gui resolution is only for the gui, does the desktop resolution/fps control the output of the hdmi to the tv.