title: How to save HLS stream to local disk in source code by ffmpeg?
body: <p>The HSL stream is divided into multiple ts files, now I want to save these files and the m3u8 file to local disk in source code by calling ffmpeg APIs.</p>
  <p>Does ffmpeg support this function? If so how to implement the function? Otherwise, can anyone give me some suggestions about how to achieve this goal?</p>