rossy / mpv-install Goto Github PK
View Code? Open in Web Editor NEWSets up file associations for mpv on Windows
License: ISC License
Sets up file associations for mpv on Windows
License: ISC License
Replacing HCLM
by HKCU
let this batch script associate gvim
with text file types as a user (without admin rights). Could the same be offered for mpv?
Is it possible to implement "play all with mpv" in context menu when selecting all playable files?
So, after using mpv-install.bat and checking regedit to see how mpv.exe is invoked I see something like that:
"B:\blah\blah\mpv.exe" -- "%L
Take a note that there is no closing quote!
Is that as intended or not I do not know but if it isn't some one need to run a string replace like this:
From \"%%%%L"
To \"%%%%L\""
Despite Right Clicking and Run-ning as Administrator, the dialog kept instructing me to actually right click and click on "Run as Administrator".
Work around:
Right click on .bat file, and remove the following code:
:: Make sure the script is running as admin
call :ensure_admin
Once the above step was done, the script worked perfectly.
In you can use mpv .
to open current folder as playlist. Can you implement this in this script? You can place in extended context menu of a folder.
Hi ;
I'm trying make a installer pack from this script in innosetup.
How to convert file associations to inno script ?
Thanks.
Serves me right I guess, should've read the random .bat from the Internet then run it as admin.
But still. I have a separate audio player I really like, so it was rather unexpected. Probably not just me.
Hello ,
i have installed MPV on Windows + your install.bat ;
now i would like to use it with the Watch with MPV extension on Firefox
it asks for a full path where mpv is located;
should i use this path where MPV is located or is there another one because of the install.bat?
thank you
Just a friendly reminder that the repo is now being maintained at https://github.com/shinchiro/mpv-packaging
To mimic standard installation on windows. I found it can be useful. A folder can have:
start menu folder located in %AppData%\Microsoft\Windows\Start Menu\Programs
I told it to open the files it should be associated with it after running the install batch file as admin and instead of opening the files it just keeps asking me what I want to run it with. I hit ok I want to run it with the path to mpv and it just pops up again and again until I quit.
Hi @rossy, kickass utility. Great work!
But did you know that mpv is the best image viewer in the world? Modern GUI, lightning fast GPU-accelerated pan and zoom and rotation, lightning fast image loading, and with my Blackbox, Gallerizer, Colorbox and Leapfrog (https://github.com/mpv-player/mpv/wiki/User-Scripts) utilities, the navigation is incredibly good. Keyboard-based folder navigation, auto-generated playlists for all files in all subfolders of the given folder, ability to jump by +/- any number of images ("forward by 1, forward by 10" etc are all keybindable), and ability to jump to random images, and much more. And colorbox takes care of enhancing the images in realtime with filters such as contrast, saturation, sharpness, etc. Other utilities such as "auto-keep-gui-open.lua" (from my repo too) will ensure that mpv doesn't auto-close after the final image (playlist entry) is reached. And "cycle-video-rotate.lua" (yet another from my repo) gives you lossless rotation of the photos.
Sure, it took a bunch of utilities to make mpv this good, but nothing else beats it as an image viewer on any platform. Nothing else is as fast, powerful, scriptable and easy to navigate.
That begs the question: Would you be up for adding photo mime types to the registration so that mpv can be chosen as default photo viewer in Windows?
This is actually not a bug report.
I copied most of this project's mpv-install.bat
into my own project, which is a music (only) player. But for some strange reason, after executing the modified batch file, my player still does not apper in the Default programs listing.
My batch is here: https://github.com/ondras/mp/blob/gh-pages/bin/reg.bat
Everything else works -- extension association, Open with... item, verbs, icons. Just the program itself is apparently not registered properly.
Perhaps the reason for this is that my program is not an executable, but rather a mp.bat
run-script (https://github.com/ondras/mp/blob/gh-pages/bin/mp.bat)? Are only .exe files allowed in the Default programs listing?
I am also not exactly sure how the RegisteredApplications -> Capabilities linking works, because the Capabilities registry key does not reference the binary itself; instead, it only lists the programs' ProgIds. Where do the program Icon, Company, Website (these are shown in the Default programs) come from?
Thanks for any insights into this. Or a suggestion how to debug this weird stuff.
WEBM isn't being associated to MPV despite it coming up on the output while it's running the batch file for the asssociations. Not sure why, but if anyone knows or how to fix that would be great.
I have no issues with other file types, seems to be just webm.
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.