Closed Amaranthes closed 8 years ago
You were a bit hasty there ;)
There is no need to replace CDLL
with WinDLL
as even on Windows, libmpv is linked using a MinGW/gnu toolchain and the resulting library uses the cdecl calling convention that is supported via CDLL.
After I got that running, I ran into the problem that on Windows, mpv does not support the eventfd mechanism that I was super-cleverly using with asyncio. I now just patched out the asyncio stuff, and it now works for me on Windows after replacing libmpv.so
with mpv-1.dll
. Only video output does not work properly, but that's probably due to my VM setup and not caused by this script.
Try getting the version I just pushed to master and tell me whether this works for you.
A quick test with
m = mpv.MPV()
m.loadfile("file.mkv")
properly opens the player.
Thank you very much! :)
Is it possible to get this working with lachs0r's Windows build of libmpv? (It's included in the Dev package).
I've tried changing every
CDDL
toWinDLL
and everyCFUNCTYPE
toWINFUNCTYPE
but it did not work.I get the following exception:
while executing the following code:
I would appreciate any help.