stumblelog

Feb 08 2010

How to convert a monaural PCM audio file to stereo using mplayer from the command line

for i in *.wav; do mplayer "$i" -af pan=2:1:1 -benchmark -ao pcm:file="`basename -s .wav "$i"`.stereo.wav"; done