Offer a Lua file for OSD customization similar to the one for OSC #15150
Replies: 3 comments 1 reply
-
osc.lua is not provided to customize the OSC, it's where it's implemented. To modify the OSD you have to modify the C code that implements it or add options. |
Beta Was this translation helpful? Give feedback.
-
Well yes from what I understand, it is compiled into MPV, but, MPV allows user to copy that osc.lua file out of the source code to edit it and then be able to use it as your OSC that MPV uses by allowing option to turn off the compiled osc Thank You |
Beta Was this translation helpful? Give feedback.
-
I put this in the "Ideas" section with the idea of maybe this would be something that would be added in the future, as there is no way for users to make that many modifications to the default OSDs currently. |
Beta Was this translation helpful? Give feedback.
-
MPV provides
osc.lua
file for users to customize the OSC.From what I have been told there are no current ways to make modifications to the default OSD items that MPV provides other then some minor adjustments.
I am suggesting maybe a similar file can be provided
osd.lua
that would allow user to customize how these OSD items are displayed.Some of the items that this osd.lua would contain are....
Volume OSD Bar
Duration OSD 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 #15149 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)
Not sure if any developers come into the Discussions section?
Would any developers be interested in adding something like this?
Thank You
Beta Was this translation helpful? Give feedback.
All reactions