blob m3u8 ffmpeg video-download chrome-devtools

How to Download Blob-Encrypted Videos

By Pixel Li · January 15, 2020

中文原文 →

Preparation

  1. ffmpeg command-line tool
  2. Chrome browser

Steps

  1. 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 m3u8 and copy it;
  2. Using a terminal, go into the folder where you want to download the video, and replace the example URL http://xxx.m3u8 in 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