Download m3u8 URL video to local
Follow below steps to download video from a webpage
Step 1: Finding m3u8 URL from webpage
- Open Chrome Developer tools and click the Network tab
- Navigate to the page with the video and get it to start playing
- Filter the list of files to “m3u8”
- Find the main m3u8 URL (master.m3u8 or index.m3u8) and right click copy link
Step 2: Download mp4 using youtube-dl
- List the formats supported by m3u8 URL
youtube-dl –list-formats <url.m3u8> - Download video using below command by specifying format number (-f <number>)
youtube-dl -f 0 –hls-prefer-native <url.m3u8>