KODIconfig

KODI setup

A few useful configuration items can go into the .kodi/userdata/advancedsettings.xml file, which must have as a minimum:

<advancedsettings>
</advancedsettings>

All of the following sections go between these two top-level tags.

Normally KODI will store all video and music file details in a local SQlite database. On my thin-client systems, this would mean too many updates to the flash DOM. Instead, a better choice is to use a central MySQL database for video and music file details, which also has the advantage of providing a common, shared repository for movie and music file details when using multiple KODI boxes in the household. Insert the following:

<videodatabase>
  <type>mysql</type>
  <host>humbaba</host>
  <port>3306</port>
  <user>mpkodi</user>
  <pass>summer98</pass>
  <name>kodiVideo</name>
</videodatabase>
<musicdatabase>
  <type>mysql</type>
  <host>humbaba</host>
  <port>3306</port>
  <user>mpkodi</user>
  <pass>summer98</pass>
  <name>kodiMusic</name>
</musicdatabase>

To increase the default timeout (10 seconds) to allow sleeping disks time to spin up add the following:

<samba>
  <clienttimeout>20</clienttimeout>  <!-- timeout (in seconds, 10 is default) -->
</samba>

To enable RAM caching of network-hosted videos (which is so for my KODI video repository) and increse the RAM cache from the default 20MB to 100MB, add:

<network>
  <buffermode>1</buffermode>
  <cachemembuffersize>104857600</cachemembuffersize>
</network>