Giter VIP home page Giter VIP logo

dylive's Introduction

dylive

Utility to watch Douyin live streams. 观看抖音直播工具

  • Use keyboard or mouse to navigate different categories.
  • Select multiple live stream rooms and open them at once.

To install:

You must have installed Go first.

go install -v github.com/caiguanhao/dylive/dylive@latest

Also install mpv to play live stream.

Works on macOS, Linux or Windows.

Preview:

dylive.mp4

Usage

Video player

By default, dylive uses mpv. If mpv does not exist, IINA and then VLC will be used. If you have installed video player in a different location, set the PLAYER environment variable.

# use different video player command
PLAYER=ffplay dylive

# specify full path
PLAYER=/Applications/IINA.app/Contents/MacOS/iina-cli dylive

# also works for iPhone video player on Apple Silicon Macs
PLAYER=/Applications/OPlayer\ Lite.app dylive

Video player arguments

You can add extra video player command arguments after dylive like this:

# mute first when starting mpv
dylive -- --mute=yes

See mpv's options.

Record while playing

Use mpv's --stream-record option to save live stream to file.

You can use template in player arguments.

List of variables that can be used in template:

  • Room info (which can be obtained with Ctrl-E)
  • Index number of room ({{.Index}} or {{.Nth}})
  • Number of rooms ({{.Total}})
  • Current date/time ({{.Now}}), its format can be changed with TIME_FORMAT environment variable.
# assume you have mpv command in your PATH
dylive -- --stream-record={{.User.Name}}.mp4

# for Windows, you may need to add quotes
dylive -- --no-border "--stream-record={{.User.Name}}-{{.Now}}.mp4"

Press Ctrl-S to view list of commands.

dylive's People

Contributors

caiguanhao avatar

Watchers

James Cloos 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.