-
Notifications
You must be signed in to change notification settings - Fork 162
MPV-Lazy Language Conversions And Additions! #369
Replies: 2 comments · 5 replies
-
Thanks for your efforts! Unfortunately, I get an lua error when I try to install this:( |
Beta Was this translation helpful? Give feedback.
All reactions
-
This was for an old version of UOSC, UOSC since has had dozens and dozens of updates, here's what I recommend doing: https://github.com/tomasklaen/uosc/releases/tag/5.6.0 After you have done that, go to your mpv folder and then open input_uosc.conf in notepad (it should be located in the folder named portable_config) Delete everything that's written inside that file and then copy everything below and paste inside that file and then save it.
|
Beta Was this translation helpful? Give feedback.
All reactions
-
^ Using the above input_uosc configuration will make your menu look exactly like the default that comes with Mpv-Lazy but in english, but if you want my version that comes with extra options then use this:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for the quick reply! Somehow, I can't get this to work! I'm probably making some pretty stupid mistakes, but I can't figure them out. Would you maybe be so kind as to zip up your portable_config folder and send it over? I'm sorry I'm being so stupid. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Sure thing, give me a bit of time. |
Beta Was this translation helpful? Give feedback.
All reactions
-
You will have to change a few things like maybe the hwdec settings in mpv.conf and you will also have to edit input_uosc.conf to re-arrange the menu items in UOSC. However for the time being this should make MPV-Lazy usable for you. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you! This did the trick. |
Beta Was this translation helpful? Give feedback.
All reactions
-
🚀 1
-
Since MPV-Lazy is in Chinese Language, I took it upon myself to convert it from Chinese Language To English and while I was at it, I changed a few things and also added in a few extra things such as more buttons for extra functions.
Images: (MPV-Lazy)
1- https://i.imgur.com/bQ5CzsZ.png
2- https://i.imgur.com/0NVh3YY.png
Images: (UOSC Right Click Menu)
01- https://i.imgur.com/RHXQmku.png
02- https://i.imgur.com/vkAF2yD.png
03- https://i.imgur.com/eqIqL3L.png
04- https://i.imgur.com/IthKcxe.png
05- https://i.imgur.com/OTmAWtl.png
06- https://i.imgur.com/1iFhezU.png
07- https://i.imgur.com/ibffirf.png
08- https://i.imgur.com/pHMWWUf.png
09- https://i.imgur.com/UyPaYaX.png
10- https://i.imgur.com/bsuXkHp.png
11- https://i.imgur.com/XXuYOTo.png
Steps To Convert:
Download main.lua from below link and replace it with the one in scripts\uosc directory.
https://raw.githubusercontent.com/AziRizvi/MPV-Lazy-Modification/main/main.lua
Download lang.lua from below link and replace it with the one in scripts\uosc\lib directory.
https://raw.githubusercontent.com/AziRizvi/MPV-Lazy-Modification/main/lang.lua
Download input_uosc.conf from below link and replace it with the one in scripts\uosc\lib directory.
https://raw.githubusercontent.com/AziRizvi/MPV-Lazy-Modification/main/input_uosc.conf
Download uosc.conf from below link and put it in script-opts directory.
https://raw.githubusercontent.com/AziRizvi/MPV-Lazy-Modification/main/uosc.conf
List Of Changes/Additions:
I've modified the Main.lua file in UOSC scripts folder and changed some of the control sizes and timeline options. (The rest of the file is as is, NO other changes have been made except one!)
The default entry inside the file was:
{title = lang._cm_decoding_api, value = 'cycle-values hwdec no auto auto-copy'},
I modified/changed it to:
{title = lang._cm_decoding_api, value = 'cycle-values hwdec no nvdec-copy auto-copy'},
I've modified the Lang.lua file and renamed the options back to English from Chinese.
I've also completely rewritten the MPV-Lazy Input.conf menu in English, properly formatted it and also added in many, many other options.
I also added in new extra buttons to uosc using the uosc.conf file.
I added in a button to launch SMPlayer an MPV frontend to download subtitles. (For the download subtitles button to work, SMPlayer has to be installed into your system, if you don't want to install it just download a portable version and add that directory to your path in environment variables.)
The only good thing that MPV lacks is a good way to download subtitles and the mpv-autosub and autosub-mpv scripts never worked for me properly and accurately so I needed another way to efficiently download subtitles.
When the download subtitle button is clicked, it launches SMPlayer and searches subtitles for the file that was playing.
Image: https://i.imgur.com/woJxij5.jpg
I also added in a button to cycle between different hardware decoders, I added in a button to cycle between different video tracks in the same file, I added in a new button to open file, by default uosc comes with only one button to open files and if a file is open, it will only let you cycle through the current playlist, so for this purpose I just added in an extra button, now the default button can be used to access the current playlist and the new button button to open files.
I also added in another button to open the directory of the currently open/playing file, when a file is playing or is open, just click the Clip/Link button and it will open the Directory of that File and will select it.
Lastly I added in one button to toggle WebTorrent Stats.
I use WebTorrent-MPV-Hook to download torrent files and I wanted a button to toggle the download state when a file is downloading and this button lets me do that.
https://github.com/mrxdst/webtorrent-mpv-hook
I also made one minor change in the MPV Lazy default script-opts.conf file.
The default entry inside the file was:
script-opts-append = uosc-idlemsg=mpv-lazy
I modified/changed it to:
script-opts-append = uosc-idlemsg=MPV - Lazy
That's pretty much it.
The new buttons that I have added can be changed/removed from the uosc.conf file in script-opts directory.
You can also add new buttons if you want to, refer to links below to understand how to add new buttons.
I learned how to add new buttons to uosc interface from these links:
https://superuser.com/q/1775550/1039759
https://www.reddit.com/r/mpv/comments/120w6ts/search_subtitles_with_smplayer_directly_from_mpv/
Beta Was this translation helpful? Give feedback.
All reactions