Documentation › Settings

Config File

Every setting is stored in config.yaml and can be edited by hand if desired. Any changes to the file directly will require TinePlayer to be restarted to take effect.

For the file location see Where Data Is Saved.

Settings

No setting is required, everything will use its default if omitted.

KeyDefaultValues
ui_scaleUnset (Automatic) Interface scale from 0.33 to 3, such as 1.5.
languageUnset (System) The interface language as a locale code, such as ru or pt-BR.
soundstrue Play navigation click sounds.
check_for_updatestrue Check for and alert for new updates.
primary_sinkUnset (System Default) The first output device's name. If unset will use the system default device.
Use tineplayer --list-devices from the command line.
secondary_sinkUnset (null) The second output's device name, or null for none.
primary_language
secondary_language
Unset A language code for track auto-selection.
primary_audio_description
secondary_audio_description
false Auto-select a described track.
primary_volume
secondary_volume
1.0 The output's level, from 0.0 to 1.0.
main_volume1.0 The All Outputs level, which each output's own level is a fraction of, from 0.0 to 1.0.
primary_muted
secondary_muted
false Whether the output is muted.
primary_offset_ms
secondary_offset_ms
0 Sync for the device, in milliseconds from -1000 to 1000.
primary_offset_on
secondary_offset_on
false Whether the sync correction is applied. Allows retaining the above value without using it.
subtitle_kindforced_only Which subtitles to choose automatically: none, forced_only, forced, full or sdh.
subtitle_languagefirst Which language to choose for subtitles: first_only, second_only, first, second, or a language code.
subtitle_size12 Point size from 8 to 24, measured against the video's resolution.
subtitle_fontSans Bold Font family and style name.
read_metadatatrue Whether NFO and artwork files beside a video are read. The container's own tags are read either way.
show_backdroptrue Whether the backdrop is drawn behind the media page.
remember_positionstrue Whether positions and track choices are written to positions.json at all. Off keeps what is already saved and stops adding to it.
resume_min_percent5 Watch progress percentage to allow resuming. Never less than ten seconds.
watched_percent90 Watch progress percentage to consider a video completely watched.

Additional State Settings

A few keys are state rather than settings. They are also stored in config.yaml and can be edited or deleted, but will be overwritten by TinePlayer when state changes.

KeyState
last_folderWhere the file browser was last open to.
last_videoThe most recent video opened.
fullscreenThe fullscreen toggle state.
kodi_pathsManually added Kodi installations.

Video watched percentage and track selections are stored in positions.json. See Where data is saved.

Example Config

A fully commented config file covering every key can be found in the repository at examples/config.yaml.

ui_scale: 1.5
sounds: true
check_for_updates: true

primary_sink: Built-in Audio Analogue Stereo
primary_language: en

secondary_sink: Sennheiser USB Headset Analogue Stereo
secondary_language: ru

subtitle_language: ru
subtitle_size: 12
subtitle_font: Sans Bold

Invalid Configuration

If TinePlayer is unable to parse the config file it will report an error on startup and copy the file to config.yaml.invalid so you can see what went wrong. Fix it, rename it back, and restart.

Language Codes

The codes used by Preferred Language and Subtitle Language preferences, and for matching external audio and subtitle file languages.

A track tagged with any of the alternatives in the last column matches the same language, and a region is ignored, so en-US and en_GB both satisfy en.

CodeLanguageIts own nameAlso matches
arArabicالعربيةara
hyArmenianՀայերենhye, arm
azAzerbaijaniAzərbaycanaze
bnBengaliবাংলাben
bsBosnianBosanskibos
bgBulgarianБългарскиbul
yueCantonese粵語
caCatalanCatalàcat
zhChinese中文zho, chi, cmn
hrCroatianHrvatskihrv
csCzechČeštinaces, cze
daDanishDanskdan
nlDutchNederlandsnld, dut
enEnglishEnglisheng
etEstonianEestiest
fiFinnishSuomifin
frFrenchFrançaisfra, fre
kaGeorgianქართულიkat, geo
deGermanDeutschdeu, ger
elGreekΕλληνικάell, gre
heHebrewעבריתheb, iw
hiHindiहिन्दीhin
huHungarianMagyarhun
isIcelandicÍslenskaisl, ice
idIndonesianBahasa Indonesiaind, in
itItalianItalianoita
jaJapanese日本語jpn
kkKazakhҚазақшаkaz
koKorean한국어kor
lvLatvianLatviešulav
ltLithuanianLietuviųlit
msMalayBahasa Melayumsa, may
mlMalayalamമലയാളംmal
faPersianفارسیfas, per
plPolishPolskipol
ptPortuguesePortuguêspor
paPunjabiਪੰਜਾਬੀpan
ruRussianРусскийrus
srSerbianСрпскиsrp
skSlovakSlovenčinaslk, slo
slSlovenianSlovenščinaslv
esSpanishEspañolspa
svSwedishSvenskaswe
tlTagalogTagalogtgl, fil
taTamilதமிழ்tam
teTeluguతెలుగుtel
thThaiไทยtha
trTurkishTürkçetur
ukUkrainianУкраїнськаukr
urUrduاردوurd
viVietnameseTiếng Việtvie