https://github.com/illuspas/Node-Media-Server
A Node.js implementation of RTMP/HTTP-FLV Media Server
https://github.com/illuspas/Node-Media-Server
av1 flv h264 hevc livestream media-server nodejs rtmp vp9
Last synced: 7 months ago
JSON representation
A Node.js implementation of RTMP/HTTP-FLV Media Server
- Host: GitHub
- URL: https://github.com/illuspas/Node-Media-Server
- Owner: illuspas
- License: apache-2.0
- Created: 2015-01-19T02:13:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-16T03:46:12.000Z (7 months ago)
- Last Synced: 2025-03-17T01:38:13.872Z (7 months ago)
- Topics: av1, flv, h264, hevc, livestream, media-server, nodejs, rtmp, vp9
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/node-media-server
- Size: 1.62 MB
- Stars: 6,090
- Watchers: 192
- Forks: 1,537
- Open Issues: 423
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - Node-Media-Server - FLV/WS-FLV/HLS/DASH/MP4 Media Server | illuspas | 5588 | (JavaScript)
- StarryDivineSky - illuspas/Node-Media-Server - FLV媒体服务器项目,可以接收和分发音视频流,支持转码录制,具有发布和播放功能,采用模块化设计,易于扩展,通过Web界面管理,兼容HLS协议,适合直播和点播应用,开源免费,社区活跃。 (网络信息服务 / 资源传输下载)
README
# Node-Media-Server v4
[](https://nodejs.org/en/)
[](https://npmjs.org/package/node-media-server)
[](https://npmjs.org/package/node-media-server)
[](LICENSE)## 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
```## Features
* HTTP/HTTP2-flv Push/Play
* RTMP/RTMPS Push/Play
* GOP cache
* Notification
* Authentication## Roadmap
* HTTP-API
* Rtmp Relay## Supported clients
|Client | H.264 | HEVC | VP9 | AV1|
| ------------ | ------------ |------------ |------------ |------------ |
| OBS_29.1+| ✅ | ✅ | ❌| ✅ |
| FFmpeg/FFplay_6.1+ | ✅ | ✅ | ✅ | ✅ |
| NodePlayer.js_1.0+ | ✅ | ✅ | ❌ | ❌ |
| NodeMediaClient_3.0+ | ✅ | ✅ | ❌ | ❌ |## Usage
* obs_29.1 or above is required
* ffmpeg_6.1 or above is required### Push Streaming
```
ffmpeg -re -i test_265.mp4 -c copy -f flv rtmp://localhost/live/test_265
``````
ffmpeg -re -i test_av1.mp4 -c copy -f flv http://localhost:8000/live/test_av1.flv
```### Play Streaming
```
ffplay http://localhost:8000/live/test_265.flv
```## License
Apache 2.0