Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mpv-sidebarsubtitles

Example for Sidebarsubtitles

A plugin I made just for my own fun. You can see the subtitle content in the sidebar. This repository was created as a backup and in case it might help others.

Key Bindings

shortcut description
h open sidebar for primary subtitle
Ctrl+h open sidebar for secondary subtitle

Usage

2025-10-09.15-00-53.mp4

Installation

  1. Install FFmpeg.
  2. Place sidebarsubtitles folder into your scripts directory.

MPV Default

I’m not planning to shrink the controls for the default theme, please use uosc.

Editing uosc

If you are using uosc, open uosc/main.lua, and follow these steps to shrink the player controls:

# find:
    if real_width <= 0 then return end

# add below:
	local temp_width = real_width
	if sidebarsubtitles_width and sidebarsubtitles_width > 0 then real_width = sidebarsubtitles_width end



# find:
    Elements:update_proximities()
    request_render()

# add below:
	if sidebarsubtitles_width and sidebarsubtitles_width > 0 then
	display.width, display.bx = temp_width, temp_width
	end



# find:
--[[ MESSAGE HANDLERS ]]

# add below:
mp.register_script_message("sidebarsubtitles", function(value)

	sidebarsubtitles_width = tonumber(value)
end)

Supported Themes

  • Default (not fully)
  • uosc

Known Bugs

  • Scale

About

An MPV plugin that displays subtitles in a sidebar.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages