title: How to close ffplay when video is over?
body: <p>To get the duration time with ffprobe.</p>
  
  <pre><code>ffprobe test.mp3 2&gt;&amp;1 | awk -F'[ ,]' '/Duration/{print $4}'
  00:03:51.05
  </code></pre>
  
  <p>To set duration time with -t argument.</p>
  
  <pre><code>ffplay  -t '231'  test.mp3
  </code></pre>
  
  <p>The ffplay command can't stop when test.mp3 is over.<br>
  How to close ffplay when video is over?</p>