title: Need help in FFMPEG with AES encryption
body: <p>I want to segment a video file, create a playlist, encrypt it with AES 128 bit and stream it and play it using FFMPEG on windows platform.
  I am able to segment the video file, create playlist. But i need help with AES encryption.</p>
  
  <p>Below is the command i am using:</p>
  
  <pre><code>ffmpeg -i C:\Videos\Sample.mp4 -hls_time 30 -hls_key_info_file file.keyinfo -hls_segment_filename C:\Videos\Output\file%03d.ts C:\Videos\Output\out.m3u8 
  </code></pre>
  
  <p>In my Output directory, I have 15 segmented video files with .ts extension(file000.ts - file014.ts) and 1 playlist file (out.m3u8).</p>
  
  <p>Now out.m3u8 file is as below:</p>
  
  <pre><code>#EXTM3U
  #EXT-X-VERSION:3
  #EXT-X-TARGETDURATION:38
  #EXT-X-MEDIA-SEQUENCE:10
  #EXTINF:28.653622,
  file010.ts
  #EXTINF:29.863167,
  file011.ts
  #EXTINF:37.412378,
  file012.ts
  #EXTINF:22.814456,
  file013.ts
  #EXTINF:16.057711,
  file014.ts
  #EXT-X-ENDLIST 
  </code></pre>
  
  <p>Why is out.m3u8 file showing only file010.ts - file014.ts ? 
  Why is is not encrypting all the files? 
  What about the remaining files ?
  What am i missing ?</p>