Code Monkey home page Code Monkey logo

n_m3u8dl-cli's Introduction

N_m3u8DL-CLI

一个m3u8下载器

基本用法

双击exe,然后输入m3u8链接或拖入m3u8文件或拖入本程序生成的json文件按下回车键。
录制

高级用法

使用命令行参数

N_m3u8DL-CLI.exe <URL|JSON> [OPTIONS]  

    --workDir    Directory  设定程序工作目录
    --saveName   Filename   设定存储文件名(不包括后缀)
    --baseUrl    BaseUrl    设定Baseurl
    --headers    headers    设定请求头,格式 key:value 使用|分割不同的key&value
    --maxThreads Thread     设定程序的最大线程数(默认为32)
    --minThreads Thread     设定程序的最小线程数(默认为16)
    --retryCount Count      设定程序的重试次数(默认为15)
    --timeOut    Sec        设定程序网络请求的超时时间(单位为秒,默认为10秒)
    --muxSetJson File       使用外部json文件定义混流选项
    --enableDelAfterDone    开启下载后删除临时文件夹的功能
    --enableMuxFastStart    开启混流mp4的FastStart特性
    --enableBinaryMerge     开启二进制合并分片
    --enableParseOnly       开启仅解析模式(程序只进行到meta.json)
    --disableDateInfo       关闭混流中的日期写入

附录:一个典型的混流Json文件应该长这个样子:

    {
        "muxFormat": "mp4", 
        "fastStart": "True", 
        "poster": "文件路径,\需写为\\", 
        "audioName": "", 
        "title": "", 
        "copyright": "", 
        "comment": ""
    }

SimpleG附加说明

这是程序临时的用户界面程序
录制

在输入m3u8链接后,双击“名字”的输入框会尝试自动获取视频标题,目前仅支持腾讯、爱奇艺、优酷视频。

URL输入框可接受txt文件路径或文件夹拖入以进行批量下载: txt文件格式为每行一个m3u8地址; 文件夹内存在若干m3u8文件。

JS获取腾讯视频、优酷m3u8

腾讯视频

javascript:prompt(videoPlayer.getData()._videoData.title,Array.reverse(Array.from(videoPlayer.getData()._playlistData.stream))[0].m3u8_url);

优酷

javascript:prompt(PLAYER._DownloadMonitor.context.dataset.title,PLAYER._DownloadMonitor.context.dataset.currentVideoUrl);

n_m3u8dl-cli's People

Contributors

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