Preparation
- ffmpeg command-line tool
- Chrome browser
Steps
- On the page with the video you want to download, press F12 to open the developer tools. In Network, find the Request URL ending in
m3u8and copy it; - Using a terminal, go into the folder where you want to download the video, and replace the example URL
http://xxx.m3u8in the command line below
1
$ ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://xxx.m3u8" -c copy video.mp4
After ffmpeg has been busy for a while, a video named video.mp4 should already be sitting in the folder your terminal is currently in.
Reference
https://stackoverflow.com/questions/42901942/how-do-we-download-a-blob-url-video