Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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.

@Defitto
Copy link

Defitto commented Aug 11, 2020

Deleted !

@aq4229
Copy link

aq4229 commented Aug 20, 2020

sss

@Sudopia
Copy link

Sudopia commented Nov 2, 2020

In my case I was able to download the mp4 file of videos by finding the m3u8 address (it was not named index/master by the way). Since I used the chrome dev tool, I right clicked the m3u8 item then clicked copy address. Then I pasted that address into a browser window, removed the ".m3u8" extension, then navigated to that webpage address. A page showing only the video appeared and I was able to right click the video and choose "save as", letting me save it as an mp4 file.

For those using VLC, looks there there is one possible caveat quoted below:
"In other words, the .m3u8 address you enter in VLC must contain .ts files only. If your .m3u8 file contains a list of .m3u8 files, then it's up to VLC which .m3u8 file to use. In version 2.2.2, VLC would pick the first .m3u8 in the list."
Quoted from https://www.oneminuteinfo.com/2016/10/download-ts-files-and-convert-to-mp4.html

@brugni
Copy link

brugni commented Nov 2, 2020

And what about m3u8 with drm protection or widevine? is there any chance to download it?

@Sudopia
Copy link

Sudopia commented Nov 2, 2020

@bleros
Copy link

bleros commented Nov 8, 2020

You dont need this use VLC watch video , so if your file is .TS just change to index.m3u8 and should work without problem. to get m3u8 or TS use chrome in developers tools in network tab .
https://vimeo.com/476877034

@ShinySnicket
Copy link

ShinySnicket commented Nov 24, 2020

Brilliant project! Needed this.

@faizi0066
Copy link

faizi0066 commented Dec 21, 2020

some live tv give 2 or more m3u8 links audio and video.
how can i one m3u8 links for both audio and video??? please help??!!!

@TheDynomike
Copy link

TheDynomike commented Jan 10, 2021

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

https://github.com/TheDynomike/m3u8_downloader

@TechNinjaWeb
Copy link

TechNinjaWeb commented Feb 23, 2021

I'm on macOS. Another problem I have with VLC is that it doesn't follow HTTP 302 redirects.

ffmpeg is easiest since it downloads and converts. If you use VLC, you can download them and then find some program to merge/convert.

this can be done using cat to concat all the binary data into a single file.
so in a folder with all your split .ts files (named in order of sequence number) you can do this:

cat $(ls -Atr | tr '\n' ' ') > converted.ts

only tested on MacOS

Copy link

ghost commented Apr 12, 2021

Can someone help me please? It doesn't work. I can't extract the m3u8 links from here https://tfc.tv/live/details/210357/kapamilya-channel-live

@Cod359
Copy link

Cod359 commented May 14, 2021

In this site you will be able to find a lot of things about iptv , m3u8 tools , scanners tools etc. https://forum.softinfo.org/

@AriaVil
Copy link

AriaVil commented May 30, 2021

Hello, the tool downloads all .ts files except a key.php.key at the start, which prevents me from merging the downloaded files. Is there a way to delete it?

@RD001
Copy link

RD001 commented Sep 10, 2021

How to select and download multiple files from HAR ?

@Javid1214
Copy link

Javid1214 commented Sep 17, 2021

Please help me how to create an iframe code for a website PINOY CHANNEL

@jmuheim
Copy link

jmuheim commented Nov 7, 2021

If anyone could try to download this file here: https://video.cwl-live.ch/video/72/weff-2021---vortrag-andreas-thiel?channelName=Dani?t=0 I'd be very grateful. 🙏

@MaikelAt
Copy link

MaikelAt commented Nov 12, 2021

If anyone could try to download this file here: https://video.cwl-live.ch/video/72/weff-2021---vortrag-andreas-thiel?channelName=Dani?t=0 I'd be very grateful. 🙏

I literally created an account to help you.

  1. Open chrome and install this extension: https://chrome.google.com/webstore/detail/media-download-helper/bbkghghcepieccnpcneeanmmbhndeblk
  2. Go to the website of the video you want to download
  3. The extension will indicate it found something. Click on it and download the video

If you have an android phone:

  1. Download this app (it's a browser and also a torrent client): https://play.google.com/store/apps/details?id=idm.internet.download.manager&hl=en&gl=US
  2. Open the link of the desired video with the browser
  3. Play the video
  4. right next to the address bar you'll have a download icon, click on it and download the video

@zackmark29
Copy link

zackmark29 commented Nov 12, 2021

Wow this convo still alive =D it's been 4 years already since I visit this.

@Defitto
Copy link

Defitto commented Nov 12, 2021

Wow this convo still alive =D it's been 4 years already since I visit this.

Exactly my reaction :)

@zackmark29
Copy link

zackmark29 commented Nov 13, 2021

Wow this convo still alive =D it's been 4 years already since I visit this.

Exactly my reaction :)

haha well this is where I started to have interest with web scraping until I learned to make my own tools

@MaikelAt
Copy link

MaikelAt commented Nov 13, 2021

Wow this convo still alive =D it's been 4 years already since I visit this.

Exactly my reaction :)

haha well this is where I started to have interest with web scraping until I learned to make my own tools

Any tutorial for absolute beginners?

@zackmark29
Copy link

zackmark29 commented Nov 13, 2021

Wow this convo still alive =D it's been 4 years already since I visit this.

Exactly my reaction :)

haha well this is where I started to have interest with web scraping until I learned to make my own tools

Any tutorial for absolute beginners?

Just learn the basic function or search on YouTube, Object Oriented Programming in python or C# or VB.net which this tool was written.
Then the rest is your own exploration. But still you can maybe find tutorial on YT.
All what I've done is just self exploration/learning

@haiderbabur
Copy link

haiderbabur commented Dec 1, 2021

Please help me how to create an iframe code for a website Pinoy Tv

@pinoteleserye
Copy link

pinoteleserye commented Dec 27, 2021

Hay every here please help to me i want to create embed site for our website teleseryetv

@bleros
Copy link

bleros commented Mar 3, 2022

There many app now that do this job or chrome addons

@CR1571
Copy link

CR1571 commented Mar 19, 2022

There many app now that do this job or chrome addons

which ones?

@bleros
Copy link

bleros commented Mar 20, 2022

There many app now that do this job or chrome addons

which ones?
Chrome addons
https://www.hlsloader.com/

Android app
https://play.google.com/store/apps/details?id=com.leavjenn.m3u8downloader

This addons for finding m3u8 link instead using developer mode for firefox only
https://addons.mozilla.org/en-US/firefox/addon/the-m3u8-stream-detector/

@JohnLeexx
Copy link

JohnLeexx commented Apr 7, 2022

Download m3u8 videos directly to your cloud storage without installing software. Supported storage include Google drive, Dropbox, box, mega, etc.
https://www.ricedrive.com/guides/download-m3u8-video-quickly-without-software.html

@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

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