ffmpeg
brew install ffmpeg ffmpeg -i https://video.demo.com/index.m3u8 "foo.mp4"
downloadm3u8
依赖ffmpeg
或者下载完ts之后,使用ffmpeg合并视频
> ls
input.ts
key.key
index.m3u8
> ffmpeg -allowed_extensions ALL -protocol_whitelist "file,http,crypto,tcp" -i index.m3u8 -c copy out.mp4
</div>