title: How to extract programmatically video frames?
body: <p>I need programmatically extract frames from mp4 video file, so each frame goes into a separate file. Please advise on a library that will allow to get result similar to the following VLC command (<a href="http://www.videolan.org/vlc/" rel="nofollow noreferrer">http://www.videolan.org/vlc/</a>):</p>
  
  <pre><code>vlc v1.mp4 --video-filter=scene --vout=dummy --start-time=1 --stop-time=5 --scene-ratio=1 --scene-prefix=img- --scene-path=./images vlc://quit
  </code></pre>
  
  <p>Library for any of these Java / Python / Erlang / Haskell will do the job for me.</p>