title: ffmpeg in a bash pipe
body: <p>I have a rmvb file path list, and want to convert this files to mp4 files. So I hope to use bash pipeline to handle it. The code is</p>
  
  <pre><code>Convert() {
      ffmpeg -i "$1" -vcodec mpeg4 -sameq -acodec aac -strict experimental "$1.mp4"
  }
  
  Convert_loop(){
      while read line; do
         Convert $line
      done
  }
  
  cat list.txt | Convert_loop
  </code></pre>
  
  <p>However, it only handle the first file and the pipe exits. </p>
  
  <p>So, does ffmpeg affect the bash pipe?</p>