Giter VIP home page Giter VIP logo

Streamlib

Streamlib is a meta-player for media streams. The streamlib CLI works against a curated library of video and audio streams, and enables querying and playback through a standard media player, defaulting to mpv which is the recommended player.

The most important feature Streamlib provides is the ability to generate timestamped authentication tokens on streams that require some basic level of authentication to them. See the Queries section for more details.

Usage

Streamlib is still moving fast and has yet to been officially packaged, but the basic functionality works!

Running it requires checking out the git repository and then calling:

$ cargo run -- groove

The single argument will run a case-insensitive match against all known metadata and pick the first matching stream. Upcoming versions will include a console-based interactive interface.

Entire library can be dumped with the -L flag:

$ cargo run -- -L

Or filtered to show a specific query:

$ cargo run -- -L somafm

An alternate player can be set with the -p/--player flag:

$ cargo run -- -p vlc groove

But note that some features critical for playing streams (such as customizing HTTP headers) are unavailable and will cause some streams to fail.

Use the -l/--library flag to point streamlib to a local library directory for testing new additions:

$ cargo run -- --library /path/to/local/library groove

Testing

$ cargo test

Library

To add new content and test it you'll need to clone both repositories:

$ git clone https://github.com/streamlib/streamlib
$ git clone https://github.com/streamlib/library
# add any files you want to the library
$ cd streamlib
$ cargo run -- --library ../library groove

See https://github.com/streamlib/library for more details.

License

GPLv3

Streamlib's Projects

library icon library

A collection of curated media streams to be played with the streamlib CLI

streamlib icon streamlib

Play your favorite live streams from command line

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.