title: ffmpeg HTTP LIVE STREAMING remove old segments
body: <p>Hello i Have a Live HTTP stream input for ffmpeg 
  i want to create HLS streaming im using ffmpeg to do this </p>
  
  <pre><code>ffmpeg -i http://127.0.0.1:4242/bysid/7275 -map 0 -codec:v libx264 -codec:a copy -f ssegment -segment_list playlist.m3u8 -segment_list_type hls -segment_list_size 10 -segment_list_flags +live -segment_time 10 out%03d.ts
  </code></pre>
  
  <p>i works fine i just want to delete the old segmens that are not shown in playlist.m3u8</p>
  
  <pre><code>segment_list_size 10
  </code></pre>
  
  <p>this will keep the last 10 in the playlist file i want to keep only these files on hard disk</p>