From d53d7517dbd3001fad6f334c4da418e6686c6a3b Mon Sep 17 00:00:00 2001 From: Serhii Khalymon Date: Sun, 10 Jan 2021 14:42:43 +0200 Subject: [PATCH 1/2] docs: improve README.md --- README.md | 83 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 9973fcb..a6f3e1b 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,42 @@ - - -

srt-server

- -

Dependencies

- - -

Build

-
-

1. Build from source

- srt-server can only build under linux. Was tested under Ubuntu 20.04. - - ``` - Build SRT: - - git clone https://github.com/Haivision/srt.git - - sudo apt-get update - - sudo apt-get install -y tclsh pkg-config cmake libssl-dev build-essential - - ./configure --prefix=/usr - - make - - sudo make install - - Build srt-server: - - git clone https://github.com/AKM2109/srt-server.git - - cmake . - - make - - sudo make install - ``` - -

2. Download release binaries

- -
- -

Usage

-
-

srt-server [PORT_RECEIVE PORT_SEND]

- -_if PORT_RECEIVE and PORT_SEND are not specified, by default server receives on port 9000 and sends on 9001_ -
\ No newline at end of file +# 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: +``` +git clone https://github.com/Haivision/srt.git +sudo apt-get update +sudo apt-get install -y tclsh pkg-config cmake libssl-dev build-essential +cd srt +./configure --prefix=/usr +make +sudo make install +``` +2. Build srt-server: +``` +git clone https://github.com/ALLATRA-IT/srt-server.git +cd srt-server +cmake . +make +sudo make install +``` + +Oneliner installer: +``` +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] + +*if PORT_RECEIVE and PORT_SEND are not specified, by default server receives on port 9000 and sends on 9001* \ No newline at end of file From 2b5106c59cd45930727b62b76492a06a5ed251c6 Mon Sep 17 00:00:00 2001 From: Serhii Khalymon Date: Sun, 10 Jan 2021 14:43:16 +0200 Subject: [PATCH 2/2] chore: set cmake minimal version to 3.16 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83f89d6..4cf816e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 3.17) +CMAKE_MINIMUM_REQUIRED(VERSION 3.16) PROJECT(srt-server) SET(CMAKE_CXX_STANDARD 11)