Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vstavrinov/streamlink-service
video streaming service based on streamlink project (https://github.com/streamlink/streamlink)
https://github.com/vstavrinov/streamlink-service
Last synced: 3 months ago
JSON representation
video streaming service based on streamlink project (https://github.com/streamlink/streamlink)
- Host: GitHub
- URL: https://github.com/vstavrinov/streamlink-service
- Owner: vstavrinov
- Created: 2019-10-18T20:34:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-14T00:46:33.000Z (7 months ago)
- Last Synced: 2024-04-14T15:22:55.481Z (7 months ago)
- Language: Python
- Homepage:
- Size: 144 KB
- Stars: 11
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# streamlink-service
This video streaming service based on [streamlink](https://github.com/streamlink/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= -p :
```- 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.