luigi.ungaro
Posts: 1
Joined: Sun Feb 08, 2015 5:36 pm

Mp3 Audio encoder

Sun Feb 08, 2015 5:50 pm

Good evening to all.
I'm creating a project in python in which i need to encode an audio stream into an mp3 file. I was using lame with subprocess, but I confess I don't like so much that way. Then, I was searching an mp3 audio encoder for python and i found the PyMedia library. The problem, is that I am not able to build and install that library even if I follow the correct instructions. The error I get from gcc is
"audio/libavcodec/dsputil.h:484:24: error: static declaration of 'lrintf' follows non-static declaration". I removed the "static" parameter in that line of code, and the file gets compiled but i get other errors on other files... My question is: Is there any here who knows how to install the PyMedia lib? Or perhaps someone could give me a name of an audio encorder that works with python, that would be great too.

Thanks,
Luigi Ungaro.

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: Mp3 Audio encoder

Fri Feb 13, 2015 4:30 pm

http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

Return to “Python”