Giter Club home page Giter Club logo

b2m's Introduction

b2m

lux 12.0 无法以 json 输出结果 (iawia002/lux#996), 请用 go install github.com/iawia002/lux@HEAD 或从 github actions (iawia002/lux#912) 获取最新版本

mpv 自带 youtube-dl 解析,使用体验好很多

使用 mpv 播放 bilibili (以及 youtube, iqiqyi)视频

安装

cargo

cargo install b2m
b2m -h

使用命令行选项 --no-default-features --features <NAME> 可以选用特定的后端,详见 Cargo.toml

使用 cargo install b2m --all-features 可启用所有后端,并默认使用 finata (无需 mpv 以外的依赖)

感谢 @MrAru 打包

用法

b2m 0.25.0
Play bilibili or other videos with mpv

USAGE:
    b2m.exe [FLAGS] [OPTIONS] <url> [-- <mpv-args>...]

FLAGS:
        --check        Check if all dependencies are installed
    -h, --help         Prints help information
    -i, --info         Print information only
    -j, --json         Print information with json
        --an           Play without audio output
        --no-cookie    Don't use any cookie
        --no-merge     Don't pass --merge-files to mpv
        --vn           Play without video output
    -V, --version      Prints version information

OPTIONS:
    -c, --cookie <cookie>    Load cookie [env: B2M_COOKIES=]
        --parser <parser>    Choose a parser [possible values: lux, fina]
    -p, --proxy <proxy>      Set proxy address [env: HTTP_PROXY=]  [default: 127.0.0.1:1080]

ARGS:
    <url>            Video url
    <mpv-args>...    args to pass to mpv, may have some limitations

ARGS:
    <url>            Video url
    <mpv-args>...    args to pass to mpv, may have some limitations

0.23.0起,可以使用 --parser 选项选择特定的后端

依赖

ToDo

  • 支持播放列表
  • 支持(toml)配置文件
  • 减少对 you-get, lux 的依赖
  • 重构解析器

思路: Linux下用mpv在B站看番(二):you-get

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.