The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.

Cloud Stored Video Download Method

Last updated: 2025-05-14 16:40:07

Method 1 (Recommended)

1. Use Google Chrome Browser to open https://www.hlsplayer.net/ and other m3u8 online players.
2. Press [F12] to open the developer tool, input the playback address of Cloud Storage and play.
3. Can see several ts files on the Network tag page, as shown below:


4. Right-click on these ts files and select Copy > Copy link address..
5. Put the copied link into any downloader to download (you can also download by directly accessing the link in Chrome).

Method Two (Recommended)

Customize a Python script to perform the download. Here is an easy-to-use download script for reference only.
from urllib.parse import urlparse
import requests

def get_m3u8(url):
r = requests.get(url)
if (r.status_code != 200):
return None
return r.content.decode("utf-8")

def make_ts_list(url, m3u8):
ts_list = []
m3u8_url = urlparse(url)
url_head = m3u8_url.scheme + '://' + m3u8_url.hostname
m3u8_lines = m3u8.split("\n")
for each_line in m3u8_lines:
if not each_line.startswith('#') and each_line != '':
ts_list.append('%s%s' %(url_head, each_line))
return ts_list

def download_ts(ts_list):
for each_ts in ts_list:
ts_url = urlparse(each_ts)
pos = ts_url.path.rfind('/') + 1
filename = ts_url.path[pos:]
print("download " + filename)
r = requests.get(each_ts)
if (r.status_code != 200):
return
with open(filename, "wb") as fw:
fw.write(r.content)
print("download finish")

def main():
aim_url = "https://zylcb.iotvideo.tencentcs.com/timeshift/live/timeshift.m3u8"
m3u8 = get_m3u8(aim_url)
ts_list = make_ts_list(aim_url, m3u8)
download_ts(ts_list)

if (__name__ == "__main__"):
main()

Method 3

1. Install "Web Resource Sniffer" and similar plug-ins in Google Chrome Browser (There are many such plug-ins, but we do not recommend here).
2. Open https://www.hlsplayer.net/ and other m3u8 online players.
3. Enter the playback address of Cloud Storage and play. The sniffer will automatically recognize the video and download it.

Must-Knows

Do not use tools such as ffmpeg and vlc to perform download, as these tools will perform secondary encapsulation or secondary format conversion, resulting in the loss of original information.