mpv-player / mpv-player/mpv

OSD - Offer a Lua file for customization similar to the one for OSC

Open
#16,991 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Expected behavior of the wanted feature

The OSC is coded in Lua.
It was mentioned that currently the OSD is coded in C
This suggestion is to consider creating the OSD in Lua instead, which would allow users to more easily modify the OSD, similar to how this is available in OSC.
This could allow 3rd party OSC creators to customize/match OSD items with their custom OSC.

BARS & TEXT
This would include the main two OSD elements
Volume Bar
Duration Bar

not as important but can also allow for parameters such as....
Brightness Bar
Saturation Bar
etc.

This osd.lua file would allow the user to edit things such as

TEXT AT TOP
-change what the default text displays
-move text at the top to a different location?
-add text items
-font / font size
-font colors

ICONS
-remove/ replace the Duration Play/Pause icon
-remove/ replace the Volume speaker icon
-placement
-size
-color

BARS
-bar colors
-fill the background in a color (requested here as an option #16992 but can also be added to this osd.lua file)
-move bar location (I have seen that this is already possible but can still be added to the osd.lua file)

Thank you to anyone who reads this

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the existing Lua-based OSC with the C-based OSD implementation. Define the scope for exposing OSD text, icons, and bars to Lua, then verify that users can customize the listed elements without losing current OSD behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
design, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.