I want to reencode a audiobook for my mobile with speexenc. The first step is to reencode the file with mplayer.
for i in *.mp3; do mplayer -ao pcm:waveheader "$i" -af pan=1:0.5:0.5,resample=22050 -ao pcm:file="$i.wav"; done
Is what I found on the internet. But the outfile is not a pcm wav:
file *.wav RIFF (little-endian) data, WAVE audio, mono 22050 Hz
Where a reference wav from xiph.org is pcm.
file wb_male.wav RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz
speexenc does encode the last PCM WAV, but does not with the mplayer file. Why not? The does the Audiooutput called "pcm" does not ouput a pcm file? How to Fix it? And is there a easy way to pipe the wav directly to speexenc without a named fifo?