Skip to content

2 OSC, 4 UIs, lots of toggles, configurable (changes saved in a file)

Notifications You must be signed in to change notification settings

zTnR/mpv-osc-tog4in1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

0

UI 1 is based on mpv-modern-x-compact.

UI 2 is based on vanilla PotPlayer.

Concept

Giving access to functionalities and OSC customization directly through the OSC without having to modifiy the script.

  • Switch between 2 OSC, and 2 minimal versions of them.
  • Change seekbar color / height
  • On top : on / off / while playing
  • Chapters : on / off
  • Thumbfast : on / off
  • Tooltips : on / off
  • OSC mode : always hide / show on pause / always show
  • OSC behaviour : show on cursor move on / off
  • Modify subtitles vertical positioning
  • Modify hide / fade timeouts
  • Loop file / playlist

Changes are saved in a saveparams.ini file in the root directory.

Extra buttons can be hidden by right-clicking on the show Statistics one.

Compatible with thumbfast

Installation

Config folders :

  • Linux : ~/.config/mpv
  • Windows : C:/Users/Username/AppData/Roaming/mpv or C:/Users/Username/AppData/Roaming/mpvnet

Copy tog4in1.lua in a script folder.

Copy the font folder.

Tog4in1

1

2

2

4

Buttons / Other

Seekbar

- Left timer        > Left click       : Show / hide title in OSC
- Left timer         > Right click     : Show / hide title in top bar

- Right timer       > Right click      : Shitch between default / minimal UI versions

- Seekbar           > Right click      : Chapters on / off
- Seekbar           > Mouse wheel      : Increase / decrease seekbar height

Buttons

- Play button       > Right clic      : Cycle seekbar / hover colors

- Toggle UI         > Left click      : Switch between th 2 OSC

- Toggle on top     > Left click      : On / off
- Toggle on top     > Right click     : While playing

- Toggle osc mode   > Left clic       : switch OSC default / on pause / always
- Toggle osc mode   > Right clic      : show OSC on mouse move on / off
- Toggle osc mode   > Mouse wheel     : increase / decrease hide timeout
- Toggle osc mode   > Shift + wheel   : increase / decrease fade timeout

- Toggle statistics > Left clic       : Show statistics
- Toggle statistics > Right clic      : Show / hide extra buttons

- Toggle tooltips   > Left click      : On / off
- Toggle thumbfast  > Left click      : On / off
- Toggle loop       > Left click      : Loop current file on / off
- Toggle loop       > Right click     : Loop playlist on / off

- Toggle subtitles  > Left clic       : Next subtitle
- Toggle subtitles  > Right clic      : Display subtitle list osd
- Toggle subtitles  > Mouse wheel     : Subtitle position up / down

- Toggle audio      > Left clic       : Next audio track
- Toggle audio      > Right clic      : display audio track list osd

Specifics

New parameters in user_opts

-- tog4in1

modernTog = true,            -- Default UI (true) or PotPlayer-like UI (false)
minimalUI = false,           -- Minimal UI (chapters disabled)
UIAllWhite = false,          -- UI all white (no grey buttons / text)
saveFile = true,             -- Minimal UI (chapters disabled)
minimalSeekY = 30,           -- Height minimal UI
jumpValue = 5,               -- Default jump value in s (From OSC only)
smallIcon = 20,              -- Dimensions in px of small icons
seekbarColorIndex = 8,       -- Default OSC seekbar color (oscPalette)
seekbarHeight = 0,           -- seekbar height offset
seekbarBgHeight = true,      -- seekbar background height follow seekbar height
bgBarAlpha = 180,            -- seekbar background opacity
showCache = true,            -- Show cache
showInfos = false,           -- Toggle Statistics
showThumbfast = true,        -- Toggle Thumbfast
showTooltip = true,          -- Toggle Tooltips 
showChapters = false,        -- Toggle chapters on / off
showTitle = false,           -- show title in OSC
showIcons = true,            -- show 'advanced buttons'
onTopWhilePlaying = true,    -- Toggle On top while playing
oscMode = "default",         -- Toggle OSC Modes default / onpause / always
heightoscShowHidearea = 120, -- Height show / hide osc area
heightwcShowHidearea = 30,   -- Height show / hide window controls area
visibleButtonsW = 300,       -- Max width for bottom OSC side buttons visible

Content saveparams.ini

showThumbfast=true
showTooltip=true
showChapters=false
showTitle=false
showIcons=true
oscMode=default
seekbarColorIndex=8
seekbarHeight=0
modernTog=false
minimalUI=false
hidetimeout=0
fadeduration=0
hidetimeoutMouseMove=1000
fadedurationMouseMove=500
volume=100
windowcontrols_title=false
timetotal=true
ontop=no
onTopWhilePlaying=true

Credits

Base : mpv-modern-x-compact

Lists : mpv-osc-tethys

On top while playing : https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/ontop-playback.lua

Saving params in file : mpv-player/mpv#3201 (comment)

About

2 OSC, 4 UIs, lots of toggles, configurable (changes saved in a file)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages