title: Accurate cut of mp4 file using FFmpeg
body: <p>I want to cut mp4 video to seperate videos by seconds 
  in the example:</p>
  
  <pre><code>00:00:00 - 00:00:01
  00:00:01 - 00:00:02
  00:00:02 - 00:00:10.01
  </code></pre>
  
  <p>This is the commands I used:</p>
  
  <pre><code>ffmpeg.exe -i 10sec.mp4 -ss 00:00:00 -t 00:00:01 -async 1 -strict -2 -c copy 0002.mp4
  ffmpeg.exe -i 10sec.mp4 -ss 00:00:01 -t 00:00:02 -async 1 -strict -2 -c copy 0003.mp4
  ffmpeg.exe -i 10sec.mp4 -ss 00:00:02 -t 00:00:10.01 -async 1 -strict -2 -c copy 0004.mp4
  </code></pre>
  
  <p>And the files I got are:
  1.3 second long
  2.6 second long
  8.5 second long</p>
  
  <p>So obviously the cutting it's not accurate...</p>
  
  <p>I understand it's hes something to do with the key frame, so I want to decompress the original file (mpeg with very high quality) to be not compress at all (so every frame will be key frame) and then do the cutting on it (so now the cutting will be accurate)</p>
  
  <p>The reason accuracy is so important to me is because after the cutting I must rejoin the slices to the single movie, and currently I just have replication in the movie I create from the slices.</p>
  
  <p>I tried the .avi version:</p>
  
  <pre><code>..\ffmpeg.exe -i 10sec.mp4 -vcodec rawvideo -acodec copy uncompressed.mp4
  </code></pre>
  
  <p>it's obviously failed duo to :</p>
  
  <pre><code> [mp4 @ 091f1300] Could not find tag for codec rawvideo in stream #0, codec not currently supported in container
   Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
   Error initializing output stream 0:0 --
  </code></pre>
  
  <p>So my q. is, how can I accurate slice a file using <code>ffmpeg</code> (I have the <code>pkt_pts</code> as well as the time I want to slice at, so if it's possible to accurate cut by <code>pkt_pts</code> it also will helkp me)?</p>