Skip to content

Commit

Permalink
Merge pull request #1 from ALLATRA-IT/update-installation
Browse files Browse the repository at this point in the history
Update installation
  • Loading branch information
amukhsimov authored Jan 10, 2021
2 parents 4db4f0f + 2b5106c commit e0eae90
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 42 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CMAKE_MINIMUM_REQUIRED(VERSION 3.17)
CMAKE_MINIMUM_REQUIRED(VERSION 3.16)
PROJECT(srt-server)

SET(CMAKE_CXX_STANDARD 11)
Expand Down
83 changes: 42 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@


<h1>srt-server</h1>

<h3>Dependencies</h3>
<ul>
<li>SRT (https://github.com/Haivision/srt)</li>
<li>cmake > 3.17.2</li>
</ul>

<h3>Build</h3>
<div style="padding-left: 20px">
<h4>1. Build from source</h4>
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
```

<h4>2. Download release binaries</h4>

</div>

<h3>Usage</h3>
<div style="padding-left: 20px">
<h4>srt-server [PORT_RECEIVE PORT_SEND]</h4>

_if PORT_RECEIVE and PORT_SEND are not specified, by default server receives on port 9000 and sends on 9001_
</div>
# 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*

0 comments on commit e0eae90

Please sign in to comment.