Download m3u8 URL video to local

Follow below steps to download video from a webpage

Step 1: Finding m3u8 URL from webpage

  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 the main m3u8 URL (master.m3u8 or index.m3u8) and right click copy link

Step 2: Download mp4 using youtube-dl

  1. List the formats supported by m3u8 URL
    youtube-dl –list-formats <url.m3u8>
  2. Download video using below command by specifying format number (-f <number>)
    youtube-dl -f 0 –hls-prefer-native <url.m3u8>

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *