-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0ea6b7
commit 4db4f0f
Showing
4 changed files
with
40 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
cmake_minimum_required(VERSION 3.17) | ||
project(srt-server) | ||
CMAKE_MINIMUM_REQUIRED(VERSION 3.17) | ||
PROJECT(srt-server) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
SET(CMAKE_CXX_STANDARD 11) | ||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") | ||
|
||
add_executable(srt-server headers/structs.h headers/main.h source/core.cpp source/main.cpp source/environment.cpp) | ||
target_link_libraries(srt-server -lsrt) | ||
ADD_EXECUTABLE(srt-server headers/structs.h headers/main.h source/core.cpp source/main.cpp source/environment.cpp) | ||
TARGET_LINK_LIBRARIES(srt-server -lsrt) | ||
|
||
INSTALL(TARGETS srt-server) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,41 @@ | ||
|
||
|
||
<h1>srt-server</h1> | ||
|
||
<h3>Dependencies</h3> | ||
- SRT (https://github.com/Haivision/srt) | ||
- cmake > 3.17.2 | ||
<ul> | ||
<li>SRT (https://github.com/Haivision/srt)</li> | ||
<li>cmake > 3.17.2</li> | ||
</ul> | ||
|
||
<h3>Build</h3> | ||
srt-server can only build under linux. Was tested under Ubuntu 20.04. | ||
<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> | ||
|
||
- git clone https://github.com/AKM2109/srt-server.git | ||
- cmake . | ||
- make | ||
- sudo make install | ||
|
||
<h3>Usage</h3> | ||
<b>srt_server [PORT_RECEIVE PORT_SEND]</b> | ||
<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 data on 9000 port and sends data from 9001 port | ||
_if PORT_RECEIVE and PORT_SEND are not specified, by default server receives on port 9000 and sends on 9001_ | ||
</div> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters