Skip to content

Instantly share code, notes, and snippets.

@primaryobjects
Last active March 28, 2024 19:01
Show Gist options
  • Save primaryobjects/7423d7982656a31e72542f60d30f9d30 to your computer and use it in GitHub Desktop.
Save primaryobjects/7423d7982656a31e72542f60d30f9d30 to your computer and use it in GitHub Desktop.
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.
  9. Select the Video format of "MP4".
  10. Checkmark "One .. One".
  11. Click "Download".
  12. A dialog will display with all of the individual .ts files. Click "Download" to download them all and join them together.

Auto-Clicking Continue Dialog

Occasionally, the download of one of the .ts files may fail and a dialog will displaying asking to continue or not. You can automatically click "Yes" and continue downloading everything by using a tool such as Buzof.

@Clicknith
Copy link

Clicknith commented Jun 11, 2022

We could also use the "Youtube-dl" command line using the command prompt, it downloads the ".m3u8" extension video file

Refer : https://github.com/ytdl-org/youtube-dl

@axelludwig
Copy link

Hello,

I'm trying to download a concert replay, but I can't find how to get the 1080p file. I managed to download the default 480p version, but I don't get another "index.m3u8" file when I manually change the quality, and I don't understand how to do it through your software. Any idea ?

@aiden0w0
Copy link

just use this one....
open-source and feature rich
https://github.com/nilaoda/N_m3u8DL-CLI

@mjcodedesigner
Copy link

Hey can you help me? I don't know how to download this link video "https://linkusz.xyz/vot.php?cid=856455"

@MrModest
Copy link

MrModest commented Aug 6, 2023

I made a python script to automate this. All you need to do is provide an m3u8 file.

https://github.com/TheDynomike/m3u8_downloader

@TheDynomike is your tool able to work with encrypted videos?

@Nikanoru
Copy link

Nikanoru commented Sep 27, 2023

Thank you very much, this solution worked great for me. I was able to get all the videos my mom asked me for, because she wasnt able to download them. I wasn't aware of this whole m3u8 thing, glad I found this post :) 👍

@MeYousafbukhari
Copy link

Can someone help me please? It doesn't work. I can't extract the m3u8 links from here https://capcuttemplates.io/

@bleros
Copy link

bleros commented Nov 3, 2023

Can someone help me please? It doesn't work. I can't extract the m3u8 links from here https://capcuttemplates.io/

U want download templates? No need for m3u8 its easy download

@jmuheim
Copy link

jmuheim commented Nov 16, 2023

Try https://fetchv.net/de it works great!

@SakshamGairola
Copy link

Any fix for ssl/tsl error?
image

@mukul27wno
Copy link

any solution for -- "Error: decrypt failed. 0: java.security.Invalid KeyException: Unsupported key size: 64 bytes" ?

@ayoubjamouhi
Copy link

dl

+1

@ayoubjamouhi
Copy link

Use youtube-dl

youtube-dl file. m3u8

@micfogas
Copy link

micfogas commented Jan 25, 2024

People literally want you to tell them the steps so they don't have to try. Those people can DIAF. Like really "I WaNt To uSe YoUr ToOl bUt I aM SpEd PlZ dO iT FoR mE iM lAzY" GTFO
Download it for them then sell them the link 😭😂🤣
Pretty sure one of them is tilly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment