Giter Site home page Giter Site logo

arapurayil / streamlink-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vstavrinov/streamlink-service

0.0 1.0 0.0 33 KB

video streaming service based on streamlink project (https://github.com/streamlink/streamlink)

Dockerfile 12.30% Shell 18.75% Python 68.95%

streamlink-service's Introduction

streamlink-service

This video streaming service based on streamlink project. It extracts stream from web page and feeds it directly to Your video player allowing to avoid using browser. You can run it either on local computer or on the cloud turning it into global service.

Build:

git clone https://github.com/vstavrinov/streamlink-service.git
cd streamlink-service
docker build -t streamlink-service .

Usage:

docker run -d -e PORT=<service-port> -p <container-port>:<service-port> <streamlink-image>
  • service-port is port of service inside container.
  • container-port is where you send your request for stream
  • streamlink-image is either docker image You build on your own or those pulled from repository.

For example:

docker run -d -e PORT=7000 -p 8000:7000 streamlink-service

Or you can omit build phase and pull and run it directly from repository:

docker run -d -e PORT=7000 -p 8000:7000 vstavrinov/streamlink-service

Finally you can watch tv:

vlc --playlist-autostart http://localhost:8000/?youtube.com/user/Bloomberg+best=

Here 'youtube.com/user/Bloomberg' is URL of web page where You watch this stream with browser. Trailing '=' sign is necessary in this case because it is shortcut for 'url=youtube.com/user/Bloomberg+best' parameter. The '+best' suffix is one of available streams. Check for all available streams:

curl http://localhost:8000/?youtube.com/user/Bloomberg=

Here is list of supported sites for streaming: https://github.com/vstavrinov/streamlink/blob/master/docs/plugin\_matrix.rst

See more available options:

curl http://localhost:8000/?help=

You can put these options into query string with '&' delimiter in the form:

key1=value1&key2=value2

For example using proxy:

vlc --playlist-autostart 'http://localhost:8000/?youtube.com/user/Bloomberg+best=&https-proxy=http://80.245.117.194:8080'

If the URL itself contains query string then url should be set in key/value style like others i.e. url=...

For example:

vlc --playlist-autostart 'http://localhost:8000/?url=arconaitv.us/stream.php?id=44+best&http-ssl-verify='

The last example shows as well how to set boolean value: the key 'http-ssl-verify' has no value - this way it set to False, while in any other ways it always gets True. Note that some sites requires username and password, so they could be added as usual options.

Needless to say You can use any player instead vlc and browser your prefer instead curl.

streamlink-service's People

Contributors

arapurayil avatar vstavrinov avatar

Watchers

 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.