title: ffmpeg concatenate with dynamic chunks
body: <p>The ffmpeg docs for concat lists the following way<br>
  <code>ffmpeg -f concat -i mylist.txt -c copy output</code></p>
  
  <p>The mylist.txt file contains file like<br>
      file '/path/to/file1'<br>
      file '/path/to/file2'<br>
      file '/path/to/file3'  </p>
  
  <p>What I am looking is for a way to do this concat in a persistent way where the number of files can keep increasing, for example in livestreaming<br>
  I will be sending chunks of video (mp4 files) of 10 seconds each to my server and want to concat/stitch them together to output to a <strong>RTMP</strong> stream (for livestreaming)  </p>
  
  <p>If concat is not the proper way to do this, please suggest alternatives.  </p>
  
  <p>Really interested to know how people use the above concept (I hope its how it works) to send video chunks from mobile device for livestreaming</p>