Download an HLS stream to MP4

streaming

// shell

$ ffmpeg -i "https://example.com/stream.m3u8" -c copy output.mp4