I've got a project in mind and I would like to use the spectrum analyzer of pymedia to get frequency data from audio while it's playing.
Has anyone managed to install it? I've tried and failed. I've emailed the pymedia mailing list but do far no response.
Has anyone managed to use it on the pi, or do you know another module or have some example code of how to get frequency data out of audio while it's playing?
Here's my email to pymedia mailing list:
I have an idea for a project on the raspberry pi, www.raspberrypi.org, its a small arm based computer which runs linux and I have been trying to install pymedia.
I've used this post as the basis for getting it installed, and have managed to install all of the pre-requisites via apt-get (bar liblame-dev, which isn't available, Ill look to compile this as well if needed)
I receive the following when I try run sudo python setup.py install
OGG : not found VORBIS : not found FAAD : not found MP3LAME : not found VORBISENC : not found ALSA : not found Continue building pymedia ? [Y,n]:Y
When I continue, the installs run before erroring out with:
running build running build_py running build_ext building 'pymedia.audio.acodec' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1864 -DPATH_DEV_DSP="/dev/dsp" -DPATH_DEV_MIXER="/dev/mixer" -D_FILE_OFFSET_BITS=64 -DACCEL_DETECT=1 -DHAVE_MMX=1 -DHAVE_LINUX_DVD_STRUCT=1 -DDVD_STRUCT_IN_LINUX_CDROM_H=1 -DHAVE_AV_CONFIG_H -DUDF_CACHE=1 -I/home/pi/dev/pymedia/pymedia-18.104.22.168 -Iaudio/ -I/usr/include/python2.7 -c audio/acodec/acodec.c -o build/temp.linux-armv6l-2.7/audio/acodec/acodec.o In file included from audio/libavcodec/avcodec.h:14:0, from audio/acodec/acodec.c:30: audio/libavcodec/common.h: In function âskip_bitsâ: audio/libavcodec/common.h:571:1: warning: variable âre_cacheâ set but not used [-Wunused-but-set-variable] In file included from audio/acodec/acodec.c:31:0: audio/libavcodec/dsputil.h: At top level: audio/libavcodec/dsputil.h:484:24: error: static declaration of âlrintfâ follows non-static declaration audio/acodec/acodec.c:249:2: warning: initialization from incompatible pointer type [enabled by default] audio/acodec/acodec.c:249:2: warning: (near initialization for âACStringType.tp_strâ) [enabled by default] audio/acodec/acodec.c: In function âACodec_Encodeâ: audio/acodec/acodec.c:668:5: warning: pointer targets in passing argument 2 of âavcodec_encode_audioâ differ in signedness
[-Wpointer-sign] audio/libavcodec/avcodec.h:1597:5: note: expected âunsigned char *â but argument is of type âchar *â error: command 'gcc' failed with exit status 1
Can anyone provide any advice about where to go next, or does anyone know it pymedia has been installed on a Pi before? Any advice greatly received.