title: Record rtmp stream to multi flv files
body: <p>I'm currently write rtmp server to receive rtmp stream, then record to multi flv file, segment base on time.</p>
  
  <p>Example: 1 minute -> 1 flv file, 2m -> 2 flv file...</p>
  
  <p>Problem: only the first flv file is playable, from the second onwards, they are not playable, maybe they miss some metadata of the codec (h264).</p>
  
  <p>How can I resolve that problem?</p>