title: Download HLS ( HTTP ) Stream video using python
body: <p>I need to download a streaming video(from a URL) using python the command line argument would be:</p>
  
  <pre><code>ffmpeg -i URL stream.mp4
  </code></pre>
  
  <p>I know I can use the subprocess command </p>
  
  <pre><code>subprocess.call('ffmpeg -i '+ URL +' stream.mp4', shell=True)
  </code></pre>
  
  <p>Is there any alternative like a API that I can use instead of using subprocess command</p>