Comments (6)
Have you also installed libmpg123? Lame is needed for encoding, but mp3 and mp2 won't be available unless they have both the encoder and decoder (in this case mpg123 is used to decode both mp3 and mp2). The same is true for vorbisfile, which is needed for ogg decoding.
It should be possible to split formats into those that are "write capable" and "read capable" such that one might be able to encode mp3 with only lame but not decode it, but I haven't gotten around to that yet.
from python-audio-tools.
Yep, libmpg123
was also installed via brew install mpg123
before compilation. It's located at /usr/local/lib/libmpg123.dylib
.
Though actually, I'm realizing that libmpg123.dylib
is not a universal binary (as per running file
on it). That's possibly the issue. Is there a way to build python-audio-tools
so that it is compatible with 64-bit libraries? brew
doesn't provide a --universal
option when installing the mpg123
package.
PS I noticed an error message when building python-audio-tools
earlier when I had the non- --universal
version of lame installed, but I don't get that message currently at all.
from python-audio-tools.
Tried building on an ubuntu VM. It looks like the problem is definitely that 32-bit libraries are needed.
Steps:
- installed
libmpg123-dev
,libmp3lame-dev
(the non-dev packages were already installed) - cloned the git archive
- created a new branch at tag v.2.21, checked it out
- ran
sudo make install
- at this point
audiotools-config
showedmp3
in red. - installed
libmpg123-dev:i386
andlibmp3lame-dev:i386
- ran
sudo make clean; sudo make distclean; sudo make install
- now
audiotools-config
showsmp3
in green.
VM OS is an updated Ubuntu 14.04.1 LTS.
There were no error or warning messages displayed during the build either time.
from python-audio-tools.
That would explain why I hadn't been able to duplicate the problem under OS X. I've been compiling mpg123 from source with XCode which generates 32-bit and 64-bit dylib files for libmpg133 and the linker had been skipping the 32-bit one. I'll have to see if there's some way to get distutils to detect that condition and put up an appropriate warning at build-time.
from python-audio-tools.
I'm still confused as to why I can't continue with just a 64-bit libmpg123.dylib
. I've verified that python
is running as 64-bit; why does it need a 32-bit library to link to? Does this mean that I'll have to build libmpg123.dylib
from source, as well as the various other libraries for other formats? Is it normal for this to happen under linux also? I don't recall having this problem with my old 64-bit linux machine.
from python-audio-tools.
Still wondering what I should do to get this running. I tried compiling mpg123 myself but there were errors in the compilation that I don't have time to look at.
from python-audio-tools.
Related Issues (20)
- musepack support HOT 12
- Seperate Audio Decoders/Encoders and Audio Utils. HOT 1
- Output filename issue: *** Error: output file "track00.wav" occurs more than once HOT 1
- Utility to automatically merge gapless tracks HOT 1
- Fix CoreAudio for Python 3.x builds.
- "Error: read error during encoding" during wav to flac conversion
- ImportError: cannot import name WavPackDecoder HOT 1
- have any demo code for playing mp3?
- Import error while using `to_pcm()` method of OpusAudio class
- 'python setup.py clean' does not clean build files HOT 1
- audiotools.open does not recognize MP3 files in MPEG-2 or MPEG-2.5 format
- Error building on Windows pcm.h syntax error HOT 3
- how to change the output? HOT 1
- Is there a way to enqueue audio files for playing? HOT 1
- No ReplayGain tags added to aiff files
- raise UnsupportedFile(filename) HOT 2
- duplicate man audiotools.cfg.5 in man1 and man5
- FreeDB is no more HOT 1
- Container with python-audio-tools
- Missing mp3 write support after building, not sure how to debug why
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-audio-tools.