Difference between revisions of "Advanced topics"

From Official Kodi Wiki
Jump to: navigation, search
(How-to's)
(How-to's: woo!!)
Line 26: Line 26:
  
 
==How-to's==
 
==How-to's==
{{#dpl:
+
<dpl>
| category = How-to
+
category = How-to
| category = Advanced topics
+
category = Advanced topics
| namespace= HOW-TO
+
namespace= HOW-TO
| format  = ,\n* {{big|'''[[%PAGE%]] -'''}} {{lst|%PAGE%|intro}}
+
format  = ,\n* {{big|'''[[%PAGE%]] -'''}} {{#lst:%PAGE%|intro}}
}}
+
</dpl>
  
 
[[Category:XBMC Manual]]
 
[[Category:XBMC Manual]]

Revision as of 05:15, 7 April 2014

Home icon grey.png   ▶ Extras ▶ Advanced topics

This section covers advanced topics for power users and those not afraid to break things.

1 Topics

This file is used for advanced settings and options that do not have GUI controls inside of Kodi. Some settings are experimental or very rarely set, so they can only be used via the advancedsettings.xml file. The file is simply a plain text file and can be edited by various text editors, so long as the name is "advancedsettings.xml". These advanced settings can be used to tweak various things such as episode naming patterns, special network ports, special behaviors, and more.

  • Autoexec.py - autoexec.py is an optional python script that users can create in their userdata folders that will be executed when Kodi starts up.
  • Auto wake on lan - Starting in v13, Kodi can automatically issue a 'wake-on-lan' packet to MySQL or a file sharing server right before it needs to connect to it.
  • Dirty regions - Dirty regions is an advanced setting and interface rendering method that can help speed up the GUI in Kodi and decrease the demand on your CPU and GPU. Dirty regions has no effect during video playback unless there are GUI elements (on screen buttons) visible. Using dirty regions requires Kodi v11 (Eden) or higher.
  • Edit decision list - An edit decision list (EDL) contains information about edits that should be made to the video during playback. Edit decision list information is contained in a separate file to the video that is read by Kodi just before the video is played. Examples of use include can be to skip commercials, cut out content inappropriate for children, or skip over the half hour acid trip in 2001: A Space Odyssey .
  • External players - While the built in video and audio players are capable, out of the box, to handle a huge variety of content, users might find themselves in need of using a different playback software but still using Kodi for scraping and organizing content. Reasons might include improved post-processing abilities, DRM restricted media that requires a specific player (such as encrypted Blu-ray discs), special player-specific features, etc. Kodi has a powerful tool to achieve this, the external player. The current method involves the configuration of a playercorefactory.xml file.
  • Import-export library - Kodi has the option to Export and Import the library databases. These options may be used for a number of reasons including the following more popular ones:
  • Perform database backup and recovery (This is not the only method for backup and recovery)
  • Reorganization of data or eliminate database fragmentation (export, clean/remove database, re-import)
  • Move data between Kodi databases on different platforms (eg Widows to Linux)
  • Path substitution - Path substitutions are settings in advancedsettings.xml to force Kodi to use different file paths. These are processed in order, and are useful for substituting an absolute path on a PC with a path suitable for Kodi to handle. Path subs work for most file and folder paths. Path subs work across local and network paths, across different network protocols, and can even be used with some of the special protocol.
  • Special protocol - The "Special Protocol" is Kodi's solution to platform dependent directories. Common directory names are assigned a special://[name] path which is passed around inside Kodi and then translated to the platform specific path before the operating system sees it. This helps keep most of the platform mess centralized in the code.
  • userdata folder - The userdata folder is where all of your settings and customizations are stored.

2 How-to's

  • HOW-TO:Change data location for Android - As of v14, Kodi supports a backdoor to specify the location of your settings folder, which includes the userdata folder and add-ons. It is the equivalent of using environment variables on other platforms
  • HOW-TO:Install Kodi for Universal Windows Platform -
  • HOW-TO:Install languages offline - Sets of language strings for Kodi v15 and later are now provided in the form of add-ons. Kodi still comes with International English by default, but does not include other languages until they are selected and downloaded. If you are doing an off-line installation of Kodi and won't have an internet connection when you change the language preferences then you will need to download the language add-on ahead of time.
  • HOW-TO:Modify automatic watch and resume points - This page describes three advancedsettings.xml settings that can be used to modify when "watched" and "resume" marks are saved. These settings can also be used to prevent automatically saving watched and resume points. A watched point records if a video has been watched or not. A resume point records where in a video file playback has stopped, so it can be resumed later.
  • HOW-TO:Modify dirty regions - Dirty regions is an advanced setting and interface rendering method that can help speed up the GUI in Kodi and decrease the demand on your CPU and GPU. Dirty regions has no effect during video playback unless there are GUI elements (on screen buttons) visible. Using dirty regions requires Kodi v11 (Eden) or higher.
  • HOW-TO:Modify the video cache - This page describes three advancedsettings.xml settings that can be used to maximize the video playback cache. You can use all or just a couple of these settings to see significant improvements in cache performance, should you require it (most users will not require these modifications). This can help with intermittent network issues, buffering, reduce how long the network is tied up, and sometimes improve battery life.
  • HOW-TO:Reduce disk space usage - As your library and usage of Kodi grows, so does the disk space storage taken up by Kodi's various settings and files. If you have a device with a low amount of internal disk space storage (8GB or less), such as a Fire TV, Raspberry Pi, and various Android boxes, this can be a problem. And the same goes when running Kodi from a smaller sized USB flash drive or SD (Secure Digital) card. This how-to will show ways to reduce the space used, as well as reclaim space from files that are no longer needed.
  • HOW-TO:Remotely update library - Some quick methods to updating the Kodi library outside of the Kodi interface. There are also several supplemental tools and smartphone remotes that can remotely update the library as well. These methods require Settings>Services>Control>Allow remote control via HTTP to be enabled.
  • HOW-TO:Update SQL databases when files move -

Kodi has functions to fully manage its database files. Some advanced operations can be performed by editing the database tables directly on your PC. Be forewarned that database tables are relational (inter-related) - do not change any entries unless you are sure of the implications! Make a backup first, and worst-case, you just have to delete the corrupt database file and rescan your music, videos, or programs from within Kodi.