title: How to split a video using FFMPEG so that each chunk starts with a key frame?
body: <p>We need to split a large live WMV video feed in small chunks all of the same size. We made a script that works fine doing this, except for one thing: the video chunks don't start with a key frame, so when playing most video chunks they don't display any image until a key frame from the original video is eventually reached.</p>
  
  <p>Isn't there a way to tell ffmpeg to make the output video to start with a key frame?</p>
  
  <p>Here is how our command lines look right now:</p>
  
  <pre><code>ffmpeg.exe -i "C:\test.wmv" -ss 00:00:00 -t 00:00:05 -acodec copy -vcodec copy -async 1 -y  "0000.wmv"
  ffmpeg.exe -i "C:\test.wmv" -ss 00:00:05 -t 00:00:05 -acodec copy -vcodec copy -async 1 -y  "0001.wmv"
  </code></pre>
  
  <p>and so on...</p>