m3u8 ffmpeg download

HTML
ffmpeg -i http://.../playlist.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4

Source

Also in HTML: