title: Mplayer infinite loop on each file within a playlist
body: <p>Say I have a text file, <code>animations.playlist</code>, which contains the names of three animations:</p>
  
  <pre><code>anim1.avi
  anim2.avi
  anim3.avi
  </code></pre>
  
  <p>I would like to make a single call to mplayer so that <code>anim1.avi</code> is played on infinite loop until I hit <code>&gt;</code>, then <code>anim2.avi</code> is played on infinite loop until I hit <code>&gt;</code>, and then finally <code>anim3.avi</code> is played on infinite loop until I hit either <code>&gt;</code> or <code>q</code>.</p>
  
  <p>However, it seems the <code>-loop</code> option applies to the list as a whole, not to each individual file. So when I try:</p>
  
  <pre><code>mplayer -loop 0 -playlist animations.playlist
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>anim1.avi, anim2.avi, anim3.avi,
  anim1.avi, anim2.avi, anim3.avi,
  anim1.avi, anim2.avi, anim3.avi, ...
  </code></pre>
  
  <p>but I really want</p>
  
  <pre><code>anim1.avi, anim1.avi, anim1.avi, ...
  anim2.avi, anim2.avi, anim2.avi, ...
  anim3.avi, anim3.avi, anim3.avi, ...
  </code></pre>
  
  <p>Is there a way to do this?</p>