Giter Site home page Giter Site logo

m3u8_download's Introduction

m3u8_download

Why have this project

I want to download some video, but use ffmpeg -i xxx -c copy xxx.mp4 is too slow.

Because it seems that there is a limited speed for single-threaded downloads, the overall speed is very slow, and online playback will freeze, but multi-threaded downloads will not be very slow. So I wrote this tool, which can parse m3u8 and download ts files in multiple threads, and do the "merging" work locally to speed up.

require

The executable is available for Windows, Linux and macOS.

And, you need to install ffmpeg first.

Install

dart pub global activate m3u8_download
git clone https://github.com/CaiJingLong/m3u8_download.git
cd m3u8_download
dart pub global activate -s path .

Or, download from release

# after download
chmod +x m3u8

Usage

pub global

m3u8 -u xxx -o download

use source code

dart bin/m3u8_download.dart -u xxx

help for command

$ m3u8 -h
Download m3u8 and merge to video(mp4)

Usage: m3u8_download <command> [arguments]

Global options:
-u, --url                 m3u8 url
-o, --output              output file name (not have ext)
                          (defaults to "download/video")
-p, --protocol            supported protocol (for ffmpeg merge)
                          (defaults to "file,crypto,data,http,tcp,https,tls")
-e, --ext                 output file ext.
                          (defaults to "mp4")
-t, --threads             download threads
                          (defaults to "20")
-v, --[no-]verbose        show verbose log
-r, --[no-]remove-temp    remove temp file after merge
                          (defaults to on)
-h, --help                Print this usage information.

Available commands:
  help   Display help information for m3u8_download.

Run "m3u8_download help <command>" for more information about a command.

Example: m3u8 -u http://example.com/index.m3u8 -o download

m3u8_download's People

Contributors

caijinglong avatar github-actions[bot] avatar

Stargazers

qinjing100 avatar weeds shen avatar Johnny Slagle avatar  avatar  avatar 孟杰 avatar Damien Chagnaud avatar  avatar 友人A avatar  avatar shirne avatar 小山 avatar

Watchers

 avatar  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.