Giter VIP home page Giter VIP logo

hlsdump's Introduction

hlsdump Build Status

npm

HLS dump tool.

Download a playlist and media segment files from server, Save a m3u8, ts, aac, pcm and mp4 files to local.

You can reproduce the behavior of the server using the locally saved playlist.

This module made of WebModule.

Documentation

Browser

$ npm run browser  # run at default Browser
                   # I will works, but can not save the file.

Electron

$ npm run el  # run at Electron

Node.js

Show usage.

$ node index.js --help

>    Usage:
>        Dump(store hls files to local):
>            node index.js [-h or --help]                # show help
>                          [-v or --verbose]             # verbose mode
>                          [-d or --dir <output-dir>]    # output dir
>                          [-aac]                        # create aac files
>                          [-mp4]                        # create mp4 files
>                          [-pcm]                        # create pcm files
>                          playlist.m3u8                 # dump target playlist eg: http://example.com/playlist.m3u8
>
>        Server(reproduce hls file):
>            node index.js [-s or --server]              # run hls server
>                          [-p or --port <number>]       # port number. default 8888
>                          [-t or --start-time <number>] # start time (sec). default 0.0
                           [-l or --live-loop]           # loop playback in live
>
>    Example:
>        node index.js https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8
>
>    See:
>        https://github.com/uupaa/hlsdump/wiki/

HLS Dump

Dump playlist, ts and aac files.

$ node index.js -d 12345 -aac https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8

>   mkdir ./12345/
>   tsID=4930,rLL
>   tsID=4931,UrC
>   tsID=4932,UUrC
>   tsID=4933,UUUrC
>   tsID=4934,UUUUrC
>   tsID=4935,UUUUUrC
>   tsID=4936,UUUUUUrC
>   tsID=4937,UUUUUUUrC
>   tsID=4938,UUUUUUUUrC

HLS Server

Start hlsdump server. reproduce hls files.

$ node index.js -s -p 8888

>   hlsdump server listening at http://localhost:8888

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.