Sign inSign up

gnurub/livego

By gnurub

•Updated about 6 years ago

Image
0

1.1K

gnurub/livego repository overview

⁠Boot from Docker

Run docker run -p 1935:1935 -p 7001:7001 -p 7002:7002 -d --name livego gnurub/livego:latest to start

⁠Use

  1. Start the service: execute the livego binary file to start the livego service;
  2. Upstream push: Push the video stream to rtmp://localhost:1935/live/movie through the RTMP protocol, for example, use ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/live/movie push;
  3. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:
    • RTMP:rtmp://localhost:1935/live/movie
    • FLV:http://127.0.0.1:7001/live/movie.flv
    • HLS:http://127.0.0.1:7002/live/movie.m3u8

⁠Config

Run to start

  $ docker run -d -p 6379:6379 --name redis redis
  $ docker run -it -p 1935:1935 -p 7001:7001 -p 7002:7002 -v "$(pwd)"/config:/app/config --link redis:redis gnurub/livego:latest -config-file=./config/livego.json
// config/livego.json
{
  "redis_addr": "redis:6379",
  "server": [
    {
      "appname": "live",
      "liveon": "on",
      "hlson": "on"
    }
  ]
}

Tag summary

Content type

Image

Digest

Size

10.2 MB

Last updated

over 6 years ago

docker pull gnurub/livego