stream-rtmp
Node Media Server package and c RTMP server ... DEMO:
App Structure
REPOS:
Node Media Server package & RTMP Server
DEMOS:
Node Media Server package & RTMP Server
Node-Media-Server
Install
npm version (recommended)
mkdir nms
cd nms
npm install node-media-server
vi app.js
const NodeMediaServer = require('node-media-server');
const config = {
rtmp: {
port: 1935,
chunk_size: 60000,
gop_cache: true,
ping: 30,
ping_timeout: 60
},
http: {
port: 8000,
allow_origin: '*'
}
};
var nms = new NodeMediaServer(config)
nms.run();
node app.js
OBS Studio
Linux Install Directions
xserver-xorg version 1.18.4 or newer is recommended to avoid potential performance issues with certain features in OBS, such as the fullscreen projector.
FFmpeg is required. If you do not have the FFmpeg installed (if you're not sure, then you probably don't have it), you can get it with the following commands:
sudo apt install ffmpeg
Then you can install OBS with the following commands, make sure you enabled the multiverse repo in Ubuntu's software center (NOTE: On newer versions of ubuntu adding a repository automatically apt updates.):
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt upgrade
sudo apt install obs-studio
or
sudo snap install obs-studio
Run OBS with the following command:
obs-studio
or OBS Studio Ubuntu using Ubuntu Software-GUIs

