Please ignore my previous question about pipes and downsampling MP3s in Windows. The answer was that I needed to use popen2 instead of popen so I could specify that the pipe was binary instead of text. Clark