maoiscat / mpv-osc-modern Goto Github PK
View Code? Open in Web Editor NEWAnother mpv osc script
License: GNU Lesser General Public License v2.1
Another mpv osc script
License: GNU Lesser General Public License v2.1
With the default configuration of mpv
, the DEL
key toggles between the auto, always-on and always-off states of the OSC.
Is there a way to make the DEL
key work with mpv-osc-modern
so this behavior is replicated (or just that the OSC can be shown with a key press)? I use this in a HTPC setting with a IR remote, mouse hovering is unfortunately not an option.
I know it works when pausing the video, but sometimes I want to see how much time is left without pausing, just with a click of a button.
Pause button remain grayed out as long as i keep mouse on it
When i hit play (|>
), it immediately change to pause (||
) button. This is the expected behavior.
When i hit pause (||
), it does not immediately change to play (|>
) button. It grays out the pause button and wait till i remove the mouse from the pause button.
EXPECTED behavior of pause button is, when i hit pause (||
), it immediately change to play (|>
) button.
I have change line 1212 to if mp.get_property('pause') == 'no' then
.
Is there a way to get preview thumbnails in seekbar while using this script?
Due to a recent change in libass
, the mpv logo is out of proportion upon startup. It affected not only this theme but also the default osc. After I reported in #mpv-player/mpv#10710, mpv has fixed the issue in their osc, but this modern theme also needs adjustment. Please refer to the linked issue for more details.
mpv 0.37 only gave a warning, but mpv 0.38 removed the shared_script_properties property. From the release notes:
--- mpv 0.38.0 ---
...
- remove shared-script-properties (user-data is a replacement)
...
Because of this change, the modernx script now has a lua error Lua error: /etc/mpv/scripts/modernx.lua:2520: attempt to call field 'shared_script_property_set' (a nil value)
. The OSC doesn't appear anymore, and the script is therefore non-functional.
What's the best way to fix? A simple replacement of shared-script-properties
with user-data
in the script didn't work for me.
Hello, i found your script by coincidence and i loved it
The only thing that i'm missing from it is the "skip_back/forward" to be the usual "skip to next/previous chapter" instead of +5/+60s, because i already have time skip on my mouse wheel, can you show me how?
Thank you in advance.
It functions like Android's PIP mode, in which the video will be floating on bottom-right of the monitor.
Suggested because Shift+T and resizing manually takes a lot of time instead of clicking on a button.
Hi,
I'd like to make a package in ArchLinux for this script. Which License are you using?
Best Regards
OSC (Seekbar) is not visible while seeking. It is visible only there is any mouse movement. but when I seek through keyboard seekbar is not visible. Plz help me with this.
yo, it's probably because i have mpv set to auto-play when a file is launched, but now whenever a video is playing, the play (triangle) icon shows, and whenever it is paused, the pause icon shows (the two vertical lines).
I tried to use this together with mpv_thumbnail_script, but then the default MPV OSC is shown again. When moving it out of the scripts directory, it works again
Is this not compatible and if yes is there a workaround?
Currently the OSC is triggered on mouse movement. It would be great if main controls and window controls are triggered separately based on cursor proximity to trigger zones like the case in UOSC.
In user_opts
, seekrange = false
does not seem to disable the seekrange overlay. Likewise with the seekrangealpha
option, changing the transparency does nothing
In my workflow, I need to drag the progress bar frequently, but this progress bar is too thin.
I wanted to customize the height of the progress bar, but I searched for a long time and didn't find it anywhere.
Please tell me how to go about modifying it, thanks!
while the video is paused, the window control buttons (from the osc) and the play button won't show that same darkening effect when you click them. It only works while the video isn't paused, is there any way to fix this? @maoiscat
I'm using windows 10.0.19043.1526
Mplug is like a package manager but for mpv scripts.
Please add your script there (if already not there) and also installation instructions in manifest - https://github.com/Nudin/mpv-script-directory/blob/master/HOWTO_ADD_INSTALL_INSTRUCTIONS.md
There are few configs https://github.com/maoiscat/mpv-osc-modern#configuration
None of these take effect.
Even title = '1234',
does not work.
% mpv -v -v
...
[cplayer] Error parsing option profile-cond (option not found)
[cplayer] /home/ismail/.config/mpv/mpv.conf:153: setting option profile-cond='p["idle-active"]' failed.
[cplayer] Error parsing option profile-restore (option not found)
[cplayer] /home/ismail/.config/mpv/mpv.conf:154: setting option profile-restore='copy-equal' failed.
reproduce
It will be really helpful if it were to be implemented ,since the default osc has it.
Hi there!
Sorry I'm not familiar with lua scripts. Your theme is awesome.
Except when the media is playing, the pause button is set to 'play', and when the media is paused, it shows 'pause'.
I don't know if it is intentional or not, but can you tell me which parameters to edit to swap these buttons?
Thank you.
Thanks for adding the volume bar at the bottom. How do I make it scrollable using mouse wheel like in the original osc?
The file opens with something like play = '\239\142\170'
, I opened the file using vs code, how do I know its original icon?
Upon opening a video in mpv, I can see the following output in my terminal:
[osd/libass] fontselect: Using default font family: (mpv-osd-symbols, 400, 0) -> /usr/share/fonts/ubuntu-font-family/UbuntuMono-R.ttf, 0, UbuntuMono-Regular
[osd/libass] fontselect: Using default font family: (material-design-iconic-font, 400, 0) -> /usr/share/fonts/ubuntu-font-family/UbuntuMono-R.ttf, 0, UbuntuMono-Regular
Deleting .config/fontconfig/fonts.conf
only changes Ubuntu
to the Liberation
font in the mpv output, and doesn't help with loading the Material font.
I have the Material-Design-Iconic-Font.ttf
file installed in my /usr/share/fonts/
folder.
Here's what icons look like right now inside mpv:
Hi, may I ask which LICENSE are you using in this repo? We are trying to follow RFC16. If upstream can't provide a valid LISENCE, I can't keep this package in ArchLinuxCN repo anymore.
When I try making the deadzonesize equal to 1 it doesn't work. The default osc works but not this osc.
The issue is mpv-player/mpv#3001
I currently use the following keybinding to restart playback at the end of a video
Space script-binding control/cycle-pause
I got control/cycle-pause from https://github.com/oe-d/control
I would like to change the play/pause button to reload button when the video ends. And when i press the reload button, the video would restart. How can I do that?
I like the icon style of this theme, except the layout, because the space at the bottom is a bit high, I want to modify it to be similar to the usual web player layout and move the bottom menu down, can you tell me what key parts to modify?
I don't know why the triangle button is now showing while playing, but it doesn't fit most people's intuition.
I know it's possible to modify the script to toggle, but adding an option to toggle them I think would be nicer.
Some videos freeze after 3 seconds and when I close them, I see this error in the terminal
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: Packet corrupt (stream = 1, dts = 14314000).
- [ffmpeg] NULL: Invalid NAL unit size (7609 > 6927).
- [ffmpeg] NULL: missing picture in access unit with size 6931
Sample video:
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4
It only lacks the volume control, with that included it has everything it needs.
还有,没有打开文件时的那个大图标圈圈也想去掉。
另外,跟你推荐一下 mpv.net,支持 mpv osc 主题,支持右键菜单:
https://github.com/stax76/mpv.net
这里有我改好的中文菜单:
https://github.com/chwt163/mpv.net-Right-click-menu-CN
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.