Stephen Bannasch
2009-Feb-28 05:03 UTC
[Speex-dev] having trouble building on Mac OS X 10.5
I'm getting this error trying to build speex on MacOS X 10.5.6: ./configure: line 21256: syntax error near unexpected token `FFT,' ./configure: line 21256: ` PKG_CHECK_MODULES(FFT, fftw3f)' Thanks for any tips. Details ... I'd like to use speex with ffmpeg but when I run ffmpegs configure with: --enable-libspeex I get: ERROR: libspeex not found Soo ... I installed libogg in /usr/local wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz tar xzf liibogg-1.1.3.tar.gz tar xzf libogg-1.1.3.tar.gz cd libogg-1.1.3 mate . ./autogen.sh --prefix=/usr/local ./configure --prefix=/usr/local make sudo make install Cloned speex: git clone git://git.xiph.org/speex.git I'm at commit: commit 4cf0690656ef9d8d5235aabe3840df736fc0886d Author: Alfred E. Heggestad <aeh at db.org> Date: Tue Feb 10 07:20:03 2009 -0500 Const correctness patch Ran autogen and configure: ./autogen.sh --prefix=/usr/local ./configure --prefix=/usr/local which results in: ./configure: line 21256: syntax error near unexpected token `FFT,' ./configure: line 21256: ` PKG_CHECK_MODULES(FFT, fftw3f)' full output from configure here: http://gist.github.com/71880
Erik de Castro Lopo
2009-Feb-28 05:19 UTC
[Speex-dev] having trouble building on Mac OS X 10.5
Stephen Bannasch wrote:> I'm getting this error trying to build speex on MacOS X 10.5.6: > > ./configure: line 21256: syntax error near unexpected token `FFT,' > ./configure: line 21256: ` PKG_CHECK_MODULES(FFT, fftw3f)'Why are you compling from Git? If you grab a release tarball you should never see an error like that. If you really must compile from Git then you need to have pkg-config installed ( http://pkg-config.freedesktop.org/ ). Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "The fury with which untenable beliefs are defended is inversely proportional to their defensibility." -- Richard Dawkins
Stephen Bannasch
2009-Feb-28 06:50 UTC
[Speex-dev] having trouble building on Mac OS X 10.5
>Stephen Bannasch wrote: > >> I'm getting this error trying to build speex on MacOS X 10.5.6: >> >> ./configure: line 21256: syntax error near unexpected token `FFT,' >> ./configure: line 21256: ` PKG_CHECK_MODULES(FFT, fftw3f)' > >Why are you compling from Git? If you grab a release tarball you should >never see an error like that.Thanks Erik, I started with the release tarball, had the problem with missing ogg dependency, then changed TWO variables at once -- not so smart. The speex-1.2rc1 tarball compiled fine. I have a collection of audio speech mp3s and I wanted to try converting them to speex to see if I could get smaller sizes and reasonable quality. So my thought was to use ffmpeg which I use for many other conversion tasks like this. But it doesn't seem to encode to speex. So this is what I am trying now: One of my 40s originals is 120K: $ ffmpeg -i f56-speex/fr_56_ch9_p18.mp3 ... Input #0, mp3, from 'f56-speex/fr_56_ch9_p18.mp3': Duration: 00:00:40.05, start: 0.000000, bitrate: 24 kb/s Stream #0.0: Audio: mp3, 11025 Hz, mono, s16, 24 kb/s I encode this to an 8kHz wav: $ ffmpeg -i f56-static/fr_56_ch9_p18.mp3 -ar 8000 f56-speex/fr_56_ch9_p18_8KHz.wav ... Input #0, mp3, from 'f56-static/fr_56_ch9_p18.mp3': Duration: 00:00:40.05, start: 0.000000, bitrate: 24 kb/s Stream #0.0: Audio: mp3, 11025 Hz, mono, s16, 24 kb/s Output #0, wav, to 'f56-speex/fr_56_ch9_p18_8KHz.wav': Stream #0.0: Audio: pcm_s16le, 8000 Hz, mono, s16, 128 kb/s Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding [mp3 @ 0x1003600]mdb:28, lastbuf:0 skipping granule 0 size= 587kB time=37.56 bitrate= 128.0kbits/s video:0kB audio:587kB global headers:0kB muxing overhead 0.007321% And then use speexenc to convert the wav to an speex in an ogg container. $ speexenc f56-speex/fr_56_ch9_p18_8KHz.wav f56-speex/fr_56_ch9_p18_8k.ogg Encoding 8000 Hz audio using narrowband mode (mono) The output file: f56-speex/fr_56_ch9_p18_8k.ogg is now just 73k. I'm sure this can be improved but the voice quality still sounds quite good and I've saved 40%. Now I'm going to investigate JSpeex to see if I can play these back in Java. Thanks again for the help.