title: Saving HLS stream?
body: <p>I want to download an Video stream and want to save them to local storage with a single packeg as <code>MP4</code>.</p>
  
  <p>All the info about the .ts files which are the chunks of the video stream are saved to a file which is named as info_media.m3u8 and this is how the <code>.m3u8</code> looks like :</p>
  
  <pre><code>#EXTM3U
  #EXT-X-VERSION:3
  #EXT-X-TARGETDURATION:4
  #EXT-X-MEDIA-SEQUENCE:1
  #EXT-X-PLAYLIST-TYPE:VOD
  #EXTINF:4.000,
  VideoChunk_00001.ts
  #EXTINF:4.000,
  VudeoChunk_00002.ts
  #EXTINF:4.000,
  VideoChunk_00003.ts
  #EXTINF:4.000,
  VideoChunk_00004.ts
  #EXTINF:4.000,
  VideoChunk_00005.ts
  #EXTINF:4.000,
  ...
  #EXTINF:0.600,
  master_Layer1_02150.ts
  #EXT-X-ENDLIST 
  </code></pre>
  
  <p>Now my problem and the question is how to exactly download these chunks ?  The URL of the main .m3u8 is like <code>https://server.mine.it/video_id.m3u8</code> and the chunks URL
  <code>https://server.mine.it/videoid_videochunk_*.ts</code></p>
  
  <p>Please help me to download these files. 
  Answers with codes are really really welcomed.</p>