GithubHelp home page GithubHelp logo

Comments (7)

TailyFair avatar TailyFair commented on August 27, 2024 8

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.

jaseg avatar jaseg commented on August 27, 2024 2

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.

yellowsoar avatar yellowsoar commented on August 27, 2024 1

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.

yellowsoar avatar yellowsoar commented on August 27, 2024 1

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.

jaseg avatar jaseg commented on August 27, 2024

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.

McSinyx avatar McSinyx commented on August 27, 2024

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.

McSinyx avatar McSinyx commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.