Skip to content

cphikmawan/ajk-local-video-streaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCtreaming

TCtreaming is a local video streaming and chatting web based application. It consist of server, client, and streamer.

TCtreaming is build by open broadcaster software or broadcast me, nginx, projekktor, rtmp module.

INSTALLATION

1. Video Streaming

-- Server --

Installing nginx with RTMP module

  • installing tools for nginx
$ sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
  • Download nginx and RTMP Module
$ wget http://nginx.org/download/nginx-1.9.15.tar.gz
$ wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
  • Unpack the downloaded package
$ tar -zxvf nginx-1.9.15.tar.gz
$ unzip master.zip
$ cd nginx-1.9.15
  • Build nginx
$ ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master
$ make
$ sudo make install
  • Nginx installed and start the nginx
$ sudo /usr/local/nginx/sbin/nginx
  • Test to make sure nginx is running, text http:/// to your browser and you should get the "Welcome to nginx!" page.

Configuring nginx to use RTMP

  • Open your config file, located by default at /usr/local/nginx/conf/nginx.conf and add the following at the very end of the file:
rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record off;
                }
        }
}
  • Restart nginx
$ sudo /usr/local/nginx/sbin/nginx -s stop
$ sudo /usr/local/nginx/sbin/nginx
2. Chatting

-- Server --

  • Install NodeJs
$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt install nodejs-legacy
  • Instalasi NPM
sudo apt-get install npm
  • Instalasi nodemon
sudo npm install -g nodemon

FILES REQUIREMENT

HOW TO USE TCtreaming FOR SERVER

  • Move the files to /usr/local/nginx/html
  • Edit The IP in the index.html at html directory
  • Start Nginx server - if nginx already started do next stage
  • open TChat directory
cd /usr/local/nginx/html/TChat
  • Start NodeJs Server using nodemon
nodemon index.js

HOW TO USE TCtreaming FOR STREAMER

  • Use Open Broadcaster Software (OBS)
Streaming Service: Custom
Server: rtmp://<your server ip>/live
Play Path/Stream Key: test
  • Use Broadcast Me

Setting the URL

rtmp://<your server ip>/live/test/

All Done.

About

Local video streaming using Nginx and RTMP modules

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published