title: Retrieve real-time entries of m3u8 file (HLS) creating with ffmpeg
body: <p>I am using ffmpeg for the recording of rtsp stream from IP camera by generating m3u8 file with ts chunks. I want real time or only latest entries done by ffmpeg in generated m3u8 file but I didn't able to get that. </p>
  
  <pre><code>ffmpeg -rtsp_transport tcp -i rtsp://admin:admin@192.168.0.27:80/cam/realmonitor?channel=1&amp;subtype=0 -t 86399 -vcodec copy -force_key_frames expr:gte(t,n_forced*5) -hls_list_size 0 -r 12 -f segment -segment_time 10 -strftime 1 -segment_list_type m3u8 -segment_list /tmp/4/del20180105.m3u8 -segment_format ts -y /tmp/4/%Y%m%d%H%M%S.ts
  </code></pre>
  
  <p>When I apply <em>tail</em> command on generated m3u8 file like below I am not able to get new entries.</p>
  
  <pre><code>tail -f /tmp/4/del20180105.m3u8 
  </code></pre>
  
  <p>I thought for every new entry ffmpeg is replacing the whole m3u8 file with new entry. How I can get realtime entries of ts file name and duration from ffmpeg generated m3u8 file?</p>