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

hlsdump's People

Contributors

uupaa avatar

Stargazers

 avatar ChangJo avatar  avatar mcddx330 avatar akabeko avatar Keisuke KITA avatar t.ashula avatar Yuji Sugiura avatar azu avatar 土拨鼠 avatar

Watchers

 avatar James Cloos avatar Kuma Taro avatar 土拨鼠 avatar  avatar

Forkers

hiroyukitamura

hlsdump's Issues

Not working

$ node index.js --help
module.js:540
    throw err;
    ^

Error: Cannot find module './node_modules/uupaa.m3u8spooler.js/node_modules/uupaa.m3u8.js/node_modules/uupaa.uri.js/lib/URISearchParams.js'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at /home/niko/hls/hlsdump/index.js:40:1
    at Object.<anonymous> (/home/niko/hls/hlsdump/index.js:154:3)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)

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.