Code Monkey home page Code Monkey logo

acestream-service's Introduction

acestream-service

acestream & search engines two in one in docker container turns it into iptv service provided both m3u playlist and live streams. First, asestream-docker is both streaming service and search engine all in one. There are examples of usage for both cases. As search engine it produces play playlist in response to search request, then You can feed this playlist to player to watch TV streaming from the same service, that is acestream-service. Second, in fact acestream-service and https://github.com/vstavrinov/acestream\_search both are built on top of acestream engine, or other words they are wrappers around it. But while asestream-docker already contains acestream engine inside, https://github.com/vstavrinov/acestream\_search requires You to install and run acestream engine in client mode. Look into Dockerfile to see how to do this, or visit it's home page.

Build:

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

Usage:

docker run -d -e SCHEME <protocol-scheme> -e ENTRY=<host-port> -e PORT=<service-port> -p <container-port>:<service-port> <acestream-image>
  • service-port is port of service inside container.
  • container-port is port listening by docker container proxied to service-port
  • host-port is either container port or cloud port where the client connects to (default empty).
  • protocol-scheme is either https (default) or http with what client is connecting.
  • acestream-image is either docker image You build on your own or those pulled from repository.

host-port is used to rewrite standard acestream engine port 6868 in response to external port to make streams available from outside of container in case for example when docker container is running on the cloud. By default host-port is mempty. If this is Your case, you can omit -e ENTRY=host-port option. But if make requests from the host running docker container, i.e. localhost, You must set host-port equal to container-port.

In the common case the request passes through the chain:

host-port -> container-port -> service-port

For example:

docker run -d -e SCHEME=http -e ENTRY=8000 -e PORT=80 -p 8000:80 acestream-service

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

docker run -d -e SCHEME=http -e ENTRY=8000 -e PORT=80 -p 8000:80 vstavrinov/acestream-service

Finally you can watch tv:

vlc --playlist-autostart http://localhost:8000/search.m3u

This feeds long playlist to vlc You surf through to switch any channel. You can use any player you prefer and domain where to run docker container.

See more available options:

curl http://localhost:8000/search.m3u?help

For example, CNN playlist:

curl http://localhost:8000/search.m3u?query=CNN

Or watch CNN separately:

vlc --playlist-autostart http://localhost:8000/search.m3u?query=CNN

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.