Code Monkey home page Code Monkey logo

srt's Introduction

Node.js

REQUIREMENTS:

  • cmake (as build system)
  • OpenSSL
  • Pthreads (for POSIX systems it's builtin, for Windows there's a library)

For Linux:

Install cmake and openssl-devel (or similar name) package. For pthreads there should be -lpthreads linker flag added.

Ubuntu 14

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tclsh pkg-config cmake libssl-dev build-essential
./configure
make

CentOS 7

sudo yum update
sudo yum install tcl pkgconfig openssl-devel cmake gcc gcc-c++ make automake
./configure
make

For Mac (Darwin, iOS):

Install cmake and openssl with development files from "brew". Note that the system version of OpenSSL is inappropriate, although you should be able to use any newer version compiled from sources, if you prefer.

For Windows:

  1. Install cmake for Windows. The CMake GUI will help you configure the project. Note that some variables must be provided explicitly. These are the default recommended values (required until some solution for running the configure script in Windows can be found):

     WITH_OPENSSL_INCLUDEDIR=C:/OpenSSL-Win64/include
     WITH_OPENSSL_LIBDIR=C:/OpenSSL-win64/lib/VC/static
     WITH_OPENSSL_LIBRARIES=libeay32MT.lib ssleay32MT.lib
     WITH_PTHREAD_INCLUDEDIR=C:/pthread-win32/include
     WITH_PTHREAD_LDFLAGS=C:/pthread-win32/lib/pthread_lib.lib
    
  2. Please download and install OpenSSL for Windows.

The 64-bit devel package can be downloaded from here:

 http://slproweb.com/download/Win64OpenSSL-1_0_2a.exe

It's expected to be installed in C:\OpenSSL-Win64 (see the above variables).

  1. Compile and install Pthreads for Windows from this submodule:

    submodules/pthread-win32

Please follow the steps:

a. Using Visual Studio 2013, please open this file:

 pthread_lib.2013.vcxproj

b. Make sure to select configuration: Release and x64.

c. Make sure that the pthread_lib project will be built.

d. After building, find the pthread_lib.lib file (directory is probably: bin\x64_MSVC2013.Release). Copy this file to C:\pthread-win32\lib (or whatever other location you configured in variables).

e. Copy include files to C:\pthread-win32\include - the following ones:

 pthread.h
 sched.h
 semaphore.h

(They are in the toplevel directory, there are actually no meaningful subdirs here) (NOTE: the win32 is part of the project name. It will become 32 or 64 depending on selection)

Using the stransmit app

The stransmit is a test application that forwards data between two URLs, here is an example:

First run this to send with SRT: ./stransmit file://$(pwd)/BigBuckBunny.ts srt://localhost:1234/?mode=server

The run this to receive with SRT, this forwards to the ffplay command line from ffmpeg: ./stransmit srt://localhost:1234/?mode=client file://con | ffplay -

srt's People

Contributors

adamyellen avatar cdunklau avatar ocrete avatar rndi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.