Giter VIP home page Giter VIP logo

streamingvideodownloader's Introduction

Streaming Video Downloader

This is a python program to download streaming videos from webpages where HTTP Live Streaming (HLS) protocol is used to serve a streaming video.

Instructions

Instalation:

  • Clone this repo into your machine.
  • Install the required python packages:
$ pip install requirements.txt
  • Install FFMPEG command line tool:

https://www.ffmpeg.org/download.html

Usage

To download a video, browse to the webpage where the streaming video is located.

  • Open Chrome/Firefox Dev tools
  • Go to Network tab
  • Refresh the page and in the filter, search (filter) for a request starting with master.m3u8
  • Right-click on the request and copy URL
  • Go to command line next to downloader.py and run:
python3 ./downloader.py -mp="https://COPIED_URL_FOR_THE_MASTER_PLAYLIST.m3u8&token=XYZ"

or

python3 ./downloader.py --masterplaylist="https://COPIED_URL_FOR_THE_MASTER_PLAYLIST.m3u8&token=XYZ"
  • The output video will be saved in the downloads folder in the same directory

What is a Master M3U8 File?

A master M3U8 file, also known as a master playlist, is a type of M3U8 file used in HTTP Live Streaming (HLS). It provides multiple versions of the same content at different bitrates and resolutions. This allows the client (e.g., a video player) to choose the most appropriate stream based on the current network conditions and device capabilities. The master playlist does not contain the actual media segments; instead, it points to other M3U8 files (media playlists) that contain the segments.

streamingvideodownloader's People

Contributors

ramtinkermani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.