illuspas/Node-Media-Server

JavaScriptnpmjs.com/package/node-media-server
macOSWindowsLinux

A Node.js implementation of RTMP/HTTP-FLV Media Server

nodejsflvrtmplivestreammedia-serverav1h264hevcvp9
スター成長
スター
6.2k
フォーク
1.5k
週間成長
+0
Issue
431
2k4k6k
2015年2月2018年12月2022年10月2026年9月
成果物npm
README

Node-Media-Server v4

npm npm npm npm

Introduction

Node-Media-Server is a high-performance/low-latency/open-source Live Streaming Server developed based on Nodejs.
v4 is design to implement enhanced RTMP FLV v1 support for native HEVC, VP9, AV1.
v4 is no longer compatible with the cn_cdn extension id flv_265 standard.
v4 is no longer compatible with flashplayer's rtmp protocol.
v4 is incompatible with v2. Do not upgrade across major versions.

Installation

npm install node-media-server -g

or run directly

npx node-media-server

WebAdmin

Features

  • HTTP/HTTP2-flv Push/Play
  • WS/WSS-flv Push/Play
  • RTMP/RTMPS Push/Play
  • GOP cache
  • Notification
  • Authentication
  • Static file server
  • Record to flv file
  • REST API System (New in v4.2.0)
  • JWT-based Authentication (New in v4.2.0)
  • Real-time Monitoring & Statistics (New in v4.2.0)
  • Session Management (New in v4.2.0)
  • Session Deletion (New in v4.2.0)
  • Advanced Health Monitoring (New in v4.2.0)
  • RTSP/RTMP Relay Tasks with persistence and management API (New in v4.3.0)
  • Web Admin UI with Dashboard, Streams, Records, History, Relay and Settings (New in v4.3.0)
  • Username/Password Login with scrypt hashing and login rate limiting (New in v4.3.0)
  • Configuration Management API with validation (New in v4.3.0)
  • Change Password API (New in v4.3.0)
  • Record File Download (New in v4.3.0)
  • Record Session Resume within publish grace period (New in v4.3.0)
  • History Search by stream path, IP and time range (New in v4.3.0)
  • Network Bandwidth Statistics (New in v4.3.0)
  • Graceful Shutdown (New in v4.3.0)

Static file services

Node-Media-Server can provide static file services for a directory.

"static": {
    "router": "/",
    "root": "./html"
}

Record to flv file

Node-Media-Server can record live streams as FLV files.
When the static file server is enabled and recordings are saved in its directory.
It can provide video-on-demand services.

"record": {
    "path": "./html/record",
    "auto": true
}

Set "auto": false to disable auto-recording of every published stream; streams can then be recorded on demand via the webadmin streams page or POST /api/v1/streams/{app}/{name}/record.

http://server_ip:8000/record/live/stream/unix_time.flv
or
https://server_ip:8443/record/live/stream/unix_time.flv

REST API System (New in v4.2.0)

Node-Media-Server v4.2.0 provides a REST API system for server management and monitoring, featuring:

  • JWT-based authentication with challenge-response login
  • Stream and session management
  • Relay (RTSP pull / RTMP pull-push) task management
  • Real-time monitoring & statistics
  • Advanced health monitoring

See the full API documentation in docs/api.md.

Supported clients

Client H.264 HEVC VP9 AV1
OBS_29.1+
FFmpeg/FFplay_6.1+
NodePlayer.js_1.0+
NodeMediaClient_3.0+

QLive

Free Android Live Streaming App

NodePlayer.js pure javascript implementation live streaming player

Online Demo

  • ASM.js, WASM, SIMD, WebWorker, WebCodecs, MediaSource multiple technical implementations
  • H.264/H.265+AAC/G711 software and hardware decoder
  • Ultra-low latency, Under extreme conditions less than 100 milliseconds
  • Enhanced HTTP/WS-FLV Protocol, Natively support h.265
  • Android/iOS/HarmonyOS/Chrome/Edge/Firefox/Safari, All modern browsers or platforms

NodePublisher.js pure javascript implementation live streaming publisher

  • WebSocket-FLV Protocol
  • H.264+AAC hardware encoder
  • Only chrome or chromium based browsers are supported at the moment
  • wss is required

NodeMediaClient-iOS iOS live streaming player and publisher SDK

  • Objective-C/Swift
  • RTMP/HTTP-FLV/RTSP
  • H.264/H.265+AAC/OPUS/G711
  • Ultra-low latency, Under extreme conditions less than 100 milliseconds
  • Enhanced RTMP/FLV Protocol, Natively support H.265/OPUS
  • Built-in beauty filter

NodeMediaClient-Android Android live streaming player and publisher SDK

  • JAVA/Kotlin
  • armv7/arm64/x86/x86_64
  • RTMP/HTTP-FLV/RTSP
  • H.264/H.265+AAC/OPUS/G711
  • Ultra-low latency, Under extreme conditions less than 100 milliseconds
  • Enhanced RTMP/FLV Protocol, Natively support H.265/OPUS
  • Built-in beauty filter

expo-nodemediaclient Expo module for NodeMediaClient

  • iOS and Android
  • player and publisher

License

Apache 2.0

関連リポジトリ
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

TypeScriptnpmtutorialBSD 3-Clause "New" or "Revised" Licenselearn-to-codenonprofits
contribute.freecodecamp.org
455.2k46.1k
Chalarangelo/30-seconds-of-code

Coding articles to level up your development skills

JavaScriptnpmawesomeCreative Commons Attribution 4.0 Internationalawesome-listjavascript
30secondsofcode.org
129k12.5k
electron/electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

C++appMIT Licenseelectronjavascript
electronjs.org
122.9k17.5k
nodejs/node

Node.js JavaScript runtime ✨🐢🚀✨

JavaScriptnpmOthernodejsjavascript
nodejs.org
121.2k36.7k
immich-app/immich

High performance self-hosted photo and video management solution.

TypeScriptnpmappGNU Affero General Public License v3.0backup-toolmobile-app
immich.app
113.6k6.8k
axios/axios

Promise based HTTP client for the browser and node.js

JavaScriptnpmlibraryMIT Licensehttp-clientjavascript
axios-http.com
109.2k11.8k
goldbergyoni/nodebestpractices

✅ The Node.js best practices list (July 2026)

DockerfiletutorialCreative Commons Attribution Share Alike 4.0 Internationalnodejsjavascript
twitter.com/nodepractices/
105.6k10.7k
oven-sh/bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

Rustcrates.iolibraryOtherbunbundler
bun.com
95.9k5k
nvm-sh/nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions. $nvm: 3ArcxqLtXMmBnWbbtfwQgVL3MNnDsggzgGDtXMnjpump

ShellcliMIT Licensenvmnodejs
95k10.4k
bytedance/deer-flow

An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of tasks that could take minutes to hours.

PythonPyPIMIT Licenseagentagentic
deerflow.tech
81.9k11.3k
nestjs/nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀

TypeScriptnpmlibraryMIT Licensenestjavascript
nestjs.com
76.6k8.5k
strapi/strapi

🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable, and developer-first.

TypeScriptnpmOtherstrapinodejs
strapi.io
73.1k9.9k