title: Uploading an Converting Files In one script
body: <p>I've written a process for my company which pulls audio files (wav) from a server to their permanent location.  Pretty straight forward using ftp.</p>
  
  <p>The issue now is that we wish to convert these wav files into mp3s.  I was hoping to combine the transfer/upload process and the converting process into one script. So as we move them over, I could process them (while not slowing the transfer rate overall).  Obviously there are technical issues involved as the conversion process is process intensive and we may require a third server that does the actual conversion. Our conversion program that we'll use is LAME.</p>
  
  <p>I'm envisioning something like a multi-threaded application that would use a queue where each thread would handle a portion of that queue of transferring and converting the files.  So thread-A moves 10-30 files, thread-B moves another 10-30 files.  Both A and B move the files to this "conversion box or boxes" and once they've been converted, are than moved to their permanent location.</p>
  
  <p>Would this work out or is there a simpler method?</p>