ThaCheeseBun / ez-rtmp-server

A small fork of Node-Media-Sever for local usage. NodeJS implementation of RTMP/HTTP-FLV Media Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ez-rtmp-receiver

! ! !

A NodeJS implementation of RTMP/HTTP-FLV Media Server

Node-Media-Server

This project is a fork from Node-Media-Server by illuspas. This is just a smaller and more local streaming focused fork for use with OBS.

Features

  • Cross platform support Windows/Linux/Unix
  • Support for H.264/H.265/AAC/MP3/SPEEX/NELLYMOSER/G.711
  • Support for remux to LIVE-HTTP-FLV, support for playback with flv.js

Usage

packaged binary

// windows guide only right now, binaries for linux/unix exists

NOTICE: Binaries are only 64 bit.

  • Download latest release from the releases tab
  • When it's done, just run it™

source code

git clone https://github.com/ThaCheeseBun/ez-rtmp-server.git
cd ez-rtmp-server
npm install
node .

Publishing live streams

From FFmpeg

If you have a video file with H.264 video and AAC audio:

ffmpeg -re -i INPUT_FILE_NAME -c copy -f flv rtmp://localhost/live/STREAM_NAME

Or if you have a video file that is encoded in other audio/video format:

ffmpeg -re -i INPUT_FILE_NAME -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/STREAM_NAME

From OBS

Settings -> Stream

Stream Type: Custom Streaming Server

URL: rtmp://localhost/live

Stream key: <STREAM_NAME>

Accessing the live stream

RTMP

rtmp://localhost/live/STREAM_NAME

http-flv

Direct playback

http://localhost:8000/live/STREAM_NAME.flv

Or if you want to watch from a website

http://localhost:8000/watch/STREAM_NAME

About

A small fork of Node-Media-Sever for local usage. NodeJS implementation of RTMP/HTTP-FLV Media Server

License:MIT License


Languages

Language:JavaScript 95.0%Language:HTML 5.0%