Code Monkey home page Code Monkey logo

Comments (7)

marksjr avatar marksjr commented on June 3, 2024 1

thanks, very good

from hls-restream.

m1k1o avatar m1k1o commented on June 3, 2024

Using docker:

version: "3.4"
services:
  hls:
    build: "./"
    container_name: "hls"
    restart: "always"
    tmpfs:
      - "/var/www/html:mode=777,size=128M,uid=1000,gid=1000"
    ports:
      - "80:80"
    environment:
      PROFILE: transcoding_hd
      SOURCES: |
        test    http://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8

Without docker:

./profiles/transcoding_hd.sh test http://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8

Output will be in /var/www/html/ as test.m3u8.

from hls-restream.

marksjr avatar marksjr commented on June 3, 2024

thank you, very good, later I will connect in a PHP panel to improve usability

from hls-restream.

marksjr avatar marksjr commented on June 3, 2024

can enable the transcode individually for each channel? or active only for all channels?

from hls-restream.

m1k1o avatar m1k1o commented on June 3, 2024

Only for all channels at start in one container. But you can have one channel per container with multiple containers and start / stop on demand.

from hls-restream.

marksjr avatar marksjr commented on June 3, 2024

do you have any example of multiple containers

environment:
  PROFILE: transcoding_hd
  SOURCES: |
    test    http://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8
environment:
  PROFILE: transcoding_hd
  SOURCES: |
    test2    http://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8

from hls-restream.

m1k1o avatar m1k1o commented on June 3, 2024

E.G.

version: "3.4"
services:
  test:
    build: "./"
    container_name: "test"
    restart: "always"
    tmpfs:
      - "/var/www/html:mode=777,size=128M,uid=1000,gid=1000"
    ports:
      - "8080:80"
    environment:
      PROFILE: transcoding_hd
      SOURCES: test http://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8
  test2:
    build: "./"
    container_name: "test2"
    restart: "always"
    tmpfs:
      - "/var/www/html:mode=777,size=128M,uid=1000,gid=1000"
    ports:
      - "8081:80"
    environment:
      PROFILE: transcoding_hd
      SOURCES: test2 http://cph-p2p-msl.akamaized.net/hls/live/2000341/test2/master.m3u8

And then you have test on 127.0.0.1:8080/test.m3u8 and test2 on 127.0.0.1:8081/test2.m3u8.

from hls-restream.

Related Issues (8)

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.