Comments (7)
I dig a bit into this. And I finally managed to get everything working. So installation process is something like that:
-
Regular mpv player binaries do not contain
mpv-1.dll
, you need to download them from dev package -
Then extract both mpv.exe + mpv.com and mpv-1.dll into
/Scripts
folder of your Python -
After that you can install pip module
pip install python-mpv
If you have Python 32 bit, make sure to download 32 bit mpv-1.dll or 64 bit if you're having Python 64 bit. DLL have to match Python bit versions.
from python-mpv.
Since it seems to work for you I'll close this issue for now. If you have any more questions, feel free to re-open it or create a new one. I have added a section on supported platforms with a link to this issue to the README in 243414d .
from python-mpv.
I use chocolatey to install mpv:
$ choco install mpv
And run python script in virtual env by pipenv
So there's only one more thing to do manually:
Put mpv-1.dll
into /Scripts
This might be easier for windows user to maintain.
from python-mpv.
I'm not on Windows, but may I ask how is that easier? I agree on putin the dll to where
mpv.py
is installed, but are all the bloats (choco, pipenv) necessary?
Well, install mpv via choco
don't need to extract zip file into /Script
for each virtual env.
(Or, adding mpv path into system variable path is the same)
And won't need to do that when upgrading mpv later. Just choco upgrade
.
(The same way yum
, dnf
, apt
and brew
did.)
But pipenv is not necessary, I just mention it for my env.
Sorry for the misunderstanding...
BTW, put mpv-l.dll
in the same directory where python script is, will be ok as well.
from python-mpv.
Ah, ok. Your first error sounds like it was trying to use something but this project's mpv.py
. Make sure you install the python-mpv
pypi package.
The second error is because it can't find the libmpv dll. Try to find out where that was installed, then try to make Windows find it. This might mean e.g. adding mpv's installation directory to your PATH
environment variable.
from python-mpv.
I'm not on Windows, but may I ask how is that easier? I agree on putin the dll to where mpv.py
is installed, but are all the bloats (choco, pipenv) necessary?
from python-mpv.
Well, install mpv via
choco
don't need to extract zip file into/Script
for each virtual env.
I'm a bit confused, so need one manually copy mpv-1.dll
to Script
anymore? If not, definitely this is a lot better.
from python-mpv.
Related Issues (20)
- python-mpv not finding libmpv DLL on MSYS2 HOT 7
- no-border not working as intended HOT 1
- tests/test_mpv.py::TestLifecycle::test_wait_for_event_shutdown hangs HOT 1
- Audio controls
- I do not literally know which DLLs does it need to consume HOT 2
- How to directly play audio bytes? HOT 2
- "Cannot find libmpv in the usual places" on Arch Linux, Hypnotix HOT 2
- How to replace mpv.MpvEventID.METADATA_UPDATE ? HOT 2
- Loadfile command broken by API change in mpv v0.38.0 HOT 5
- The PyPI package is not up to date HOT 3
- playlist_next() and playlist_prev() beyond end of playlist causes SystemError HOT 1
- [QUESTION] How do I add custom scripts? HOT 2
- QOpenGLWidget is displayed in its own window since ibmpv.so.2.3.0 HOT 3
- SyntaxError on Mac os with python3 on v1.0.6 HOT 2
- Unable to set Gapless Playback option HOT 3
- Is it possible to read music files from an USB key or HD ? HOT 1
- trying to capture mouse clicks when running mpv HOT 2
- wait_until_playing and wait_for_property throws exception HOT 3
- wait_until_playing() seems to be triggered too early HOT 2
- How to set User-Agent? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-mpv.