20tab / mpg123-python

mpg123 python wrapper
MIT License
15 stars 7 forks source link

Cross-Platform Installation Issues #2

Open rcbyron opened 6 years ago

rcbyron commented 6 years ago

Hi, I am trying to figure out how to install the mpg123 libraries so that they work with your python package. I saw that you are using "find_libraries" to find mpg123, but I am looking for more details on what that actually does.

I would love to be able to specify the location of my mpg123 installation... For example, on Windows I have a single static mpg123.exe file. I'd prefer not to add it to the path, but rather point your program to this exe. Any tips to point me in the right direction?

My end goal is to play mp3 files (chunk by chunk) cross-platform with as few dependencies as possible. Cheers.

rdeioris commented 6 years ago

Hi, the module does not use mpg123.exe but the various libraries of the project (libmpg123, libout123) so you need to add them to the PATH or specify their location with the library_path argument:

mp3 = Mpg123('tests/bensound-epic.mp3', library_path='path_to_dll')