Code Monkey home page Code Monkey logo

Comments (7)

c0d3phr3ak avatar c0d3phr3ak commented on July 18, 2024

Should add the following as well:

root@raspberrypi:/home/pi/audiotools-2.21# apt-get install libmpg123-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmpg123-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 81 not upgraded.

from python-audio-tools.

tuffy avatar tuffy commented on July 18, 2024

The problem I run into is that running:

% python setup.py build
% apt-get install libmpg123-dev
% python setup.py build
% python setup.py install

won't work as expected since Python's distutils caches a lot of stuff, so you'll need to remove the build/ directory after installing additional packages.

But if that doesn't solve the problem, perhaps running:

% echo "from audiotools.decoders import MP3Decoder" | python -

might help determine why it's not loading. There might a 32/64-bit library mismatch or some other strangeness at work.

from python-audio-tools.

c0d3phr3ak avatar c0d3phr3ak commented on July 18, 2024

Thanks for the input. I will try tonight and let you know how that works.

On Tue, Sep 2, 2014 at 9:26 AM, tuffy [email protected] wrote:

The problem I run into is that running:

% python setup.py build
% apt-get install libmpg123-dev
% python setup.py build
% python setup.py install

won't work as expected since Python's distutils caches a lot of stuff, so
you'll need to remove the build/ directory after installing additional
packages.

But if that doesn't solve the problem, perhaps running:

% echo "from audiotools.decoders import MP3Decoder" | python -

might help determine why it's not loading. There might a 32/64-bit library
mismatch or some other strangeness at work.


Reply to this email directly or view it on GitHub
#36 (comment)
.

from python-audio-tools.

c0d3phr3ak avatar c0d3phr3ak commented on July 18, 2024

Hi,

Still receiving error when trying to run trackplay on an mp3.

However, I see the following when running python setup.py install:

Python Audio Tools 2.21 Setup

library present? used for download URL


libasound2 no ALSA output http://www.alsa-project.org
libcdio no CDDA data extraction http://www.gnu.org/software/libcdio/
libmpg123 yes MP3/MP2 decoding
libpulse no PulseAudio output http://www.freedesktop.org
mp3lame no MP3 encoding http://lame.sourceforge.net
opus no Opus encoding http://www.opus-codec.org
opusfile no Opus decoding http://www.opus-codec.org
twolame no MP2 encoding http://twolame.sourceforge.net
vorbisenc no Ogg Vorbis encoding http://www.xiph.org
vorbisfile no Ogg Vorbis decoding http://xiph.org

audiotools-config still shows mp2 and mp3 in red.

And when running trackplay I get the following:

library "libmp3lame" needed to support mp3 format
mp3lame can be downloaded from http://lame.sourceforge.net/
library "libmpg123" needed to support mp3 format
mpg123 can be downloaded from http://www.mpg123.org/
or check your system's package manager

When trying your other suggestion:

pi@raspberrypi ~/Desktop $ echo "from audiotools.decoders import MP3Decoder" | python -
pi@raspberrypi ~/Desktop $

Given the processor is ARM, I am not sure if there is 32/64 weirdness. Is there anything else I can try?

from python-audio-tools.

tuffy avatar tuffy commented on July 18, 2024

Ah, looks like you're missing libmp3lame which is needed for MP3 support, since the codec wants both the decoder and encoder in order to work. Try installing "lame" and "lame-dev", clean out the build/ directory and rebuild.

I haven't yet split the decoding and encoding prerequisites so that one can decode a file without also being able to encode it, but that is on my TODO list.

from python-audio-tools.

c0d3phr3ak avatar c0d3phr3ak commented on July 18, 2024

I was able to do the following steps and it works great now thanks!

With Raspian IMG 2014-06-20

sudo apt-get install python-dev python-gtk2
sudo apt-get install libcdio-dev libcdio-paranoia-dev libasound2 libasound2-dev
sudo apt-get install mpg123 twolame libtwolame-dev
sudo apt-get install mpg123 lame mp3gain libmp3lame-dev libmpg123-dev
sudo apt-get install vorbis-tools libvorbis-dev
sudo apt-get install opus-tools libopus-dev
FAAC/FAAD Installation (adapted from http://pierskennedy.wordpress.com/2013/03/28/python-audiotools-on-the-rpi/)
Edit your apt-get source list by adding another source. sudo nano /etc/apt/sources.list Paste in deb http://www.deb-multimedia.org/ wheezy main non-free on a new line. Save and exit.
sudo apt-get install debian-keyring
Next, we would perform sudo apt-get update, but it will complain that the public key for the new source is missing. You should probably go ahead and try it before continuing, because I would strongly recommend against blindly installing keys that you don't know what they are just because som random guy (me) told you so. apt-get will complain about key 07DC563D1F41B907 (which has fingerprint 1F41B907) is unknown.
The actions 4 and 5 need to be properly run as root (sudo bash, and then executing them), simply prepending every command with sudo did not do it for me.
gpg --keyserver pgp.mit.edu --recv-keys 1F41B907
gpg --armor --export 1F41B907 | apt-key add -
sudo apt-get update
sudo apt-get install faad libfaad-dev faac libfaac-dev

Audiotools Installation

git clone git://github.com/tuffy/python-audio-tools.git

cd python-audio-tools
sudo make
sudo make install

from python-audio-tools.

c0d3phr3ak avatar c0d3phr3ak commented on July 18, 2024

Forgot to add the following changes to the setup.cfg file to force acceptance of different libraries not found with probe:
libcdio_paranoia:probe
libpulse:probe
alsa:probe
libmpg123:yes
vorbisfile:yes
opusfile:probe
mp3lame:yes
twolame:yes
vorbisenc:yes
opus:probe

from python-audio-tools.

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.