项目作者: ALLATRA-IT

项目描述 :
One SRT stream input and multiple SRT output [some like RTMP Pull mechanism]
高级语言: C++
项目地址: git://github.com/ALLATRA-IT/srt-server.git
创建时间: 2021-01-09T14:56:24Z
项目社区:https://github.com/ALLATRA-IT/srt-server

开源协议:Other

下载


srt-server

Dependencies

  1. SRT (https://github.com/Haivision/srt)
  2. cmake > 3.16

Installation

Build from source

srt-server can only build under linux. Was tested under Ubuntu 20.04.

  1. Build SRT:
    1. git clone https://github.com/Haivision/srt.git
    2. sudo apt-get update
    3. sudo apt-get install -y tclsh pkg-config cmake libssl-dev build-essential
    4. cd srt
    5. ./configure --prefix=/usr
    6. make
    7. sudo make install
  2. Build srt-server:
    1. git clone https://github.com/ALLATRA-IT/srt-server.git
    2. cd srt-server
    3. cmake .
    4. make
    5. sudo make install

Oneliner installer:

  1. sudo apt update && sudo apt install -y tclsh pkg-config cmake libssl-dev build-essential git && git clone https://github.com/Haivision/srt.git && cd srt && ./configure --prefix=/usr && make && sudo make install && cd .. && git clone https://github.com/ALLATRA-IT/srt-server.git && cd srt-server && cmake . && make && sudo make install

Download release binaries

https://github.com/ALLATRA-IT/srt-server/releases

Usage

srt-server [PORT_RECEIVE PORT_SEND [PORT_RTMP]]

if PORT_RECEIVE and PORT_SEND are not specified, by default server receives on port 9000 and sends on 9001.

if PORT_RTMP is specified, rtmp stream is received on rtmp://0.0.0.0:PORT_RTMP/rtmp/rtmp2srt

ARGUMENTS ARE POSITION SENSITIVE