Vivoh Logo

Vivoh Media Server General Usage

🔗

Usage: ./vivoh-media-server-linux


Vivoh Media Server 1.0.11


Usage: ./vivoh-media-server-linux -c 

-c config file in JSON format [REQUIRED]

RTMP Streaming

🔗

Usage: ./vivoh-media-server-linux -c rtmp.json

Ingest a media source via RTMP. Stream via RTMP.

Access stream via: rtmp://SERVER_NAME/live/STREAM_NAME

rtmp.json

{
  "logType": 2,
  "rtmp": {
    "port": 1935,
    "chunk_size": 60000,
    "gop_cache": true,
    "ping": 60,
    "ping_timeout": 30
  },
  "http": {
    "port": 8000,
    "allow_origin": "*"
  }
}

Stream Multicast

🔗

Usage: ./vivoh-media-server-linux -c multicast.json

Ingest a media source via RTMP. Stream via multicast.

Access stream via: rtp://239.0.0.1:1234
Requires installation of ffmpeg

multicast.json

{
  "logType": 2,
  "rtmp" : {
    "port" : 1935,
    "chunk_size" : 60000,
    "gop_cache" : true,
    "ping" : 60,
    "ping_timeout" : 30
  },
  "http" : {
    "port" : 8000,
    "allow_origin" : "*"
  },
  "broadcast" : {
    "ffmpeg" : "/usr/local/bin/ffmpeg",
    "tasks" : [
      {
        "app" : "live",
        "edge" : "rtp://239.0.0.1:1234?pkt_size=1316",
        "flags" : "-codec copy -f rtp_mpegts -strict -2"
      }
    ]
  }
}     

HLS Streaming

🔗

Usage: ./vivoh-media-server-linux -c hls.json

Ingest a media source via RTMP. Stream via HLS (HTTP Live Streaming).

Access stream via: http://SERVER_NAME:8000/live/STREAM_NAME/index.m3u8
Requires installation of ffmpeg

hls.json

{
    "logType": 2,
    "rtmp" : {
	"port" : 1935,
	"chunk_size" : 60000,
	"gop_cache" : true,
	"ping" : 60,
	"ping_timeout" : 30
    },
    "http" : {
	"port" : 8000,
	"mediaroot" : "./media",
	"allow_origin" : "*"
  },
    "trans" : {
	"ffmpeg" : "/usr/local/bin/ffmpeg",
	"tasks" : [
      {
          "app" : "live",
          "hls" : true,
          "hlsFlags" : "[hls_time=2 :hls_list_size=3 :hls_flags=delete_segments]"
      }
    ]
  }
}

RTMP Push

🔗

Usage: ./vivoh-mediaserver-linux -c push.json

Ingest a media source via RTMP. Relay via RTMP to another server.

Requires installation of ffmpeg

push.json

{
  "logType": 2,
  "rtmp": {
    "port": 1935,
    "chunk_size": 60000,
    "gop_cache": true,
    "ping": 60,
    "ping_timeout": 30
  },
  "http": {
    "port": 8000,
    "allow_origin": "*"
  },
  "relay": {
    "ffmpeg": "/usr/local/bin/ffmpeg",
    "tasks": [
    {
      "app": "live",
      "mode": "push",
      "edge": "rtmp://192.168.0.10"
    }
    ]
  }
}

Websocket FLV Streaming

🔗

Usage: ./vivoh-media-server-linux -c wsflv.json

Ingest a media source via RTMP. Stream via websocket.

Access stream as ws://SERVER_NAME:8000/live/STREAM_NAME.flv
Access player page at http://SERVER_NAME:8000/live/STREAM_NAME/player.html

wsflv.json

{
  "rtmp": {
    "port": 1935,
    "chunk_size": 60000,
    "gop_cache": true,
    "ping": 60,
    "ping_timeout": 30
  },
  "http": {
    "port": 8000,
    "allow_origin": "*"
  }
}