PHPackages                             brawn/media-server - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. brawn/media-server

ActiveLibrary[Image &amp; Media](/categories/media)

brawn/media-server
==================

1.3(3y ago)06MITPHPPHP ^7.4

Since Jun 16Pushed 3y agoCompare

[ Source](https://github.com/DeYouOS/media-server)[ Packagist](https://packagist.org/packages/brawn/media-server)[ RSS](/packages/brawn-media-server/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (6)Used By (0)

PHP-Media-Server
================

[](#php-media-server)

说明
--

[](#说明)

> 本项目为基于workerman实现的纯PHP流媒体服务

目前实现的功能:

```
rtmp(flv)推流

rtmp,httpflv,wsflv播放

```

需要注意的是目前功能并未完善, 可能会遇到但不仅限于以下问题:

```
1. 视频流加载缓慢

2. 部分播放器可能播放有问题

3. 不支持多进程

4. 非 h264/aac 流支持可能存在问题

5. 可能存在内存溢出，特定环境下可能会报错退出

...

```

> 另外Node-Media-Server, sabreamf 等开源项目为本项目中协议的解析实现提供了极大的帮助

安装
--

[](#安装)

`php 7.4`

`composer install`

启动
--

[](#启动)

```
php start.php start

```

ffmpeg推流
--------

[](#ffmpeg推流)

```
ffmpeg.exe -re -stream_loop 1  -i "file.mp4" -vcodec h264 -acodec aac -f flv rtmp://127.0.0.1/a/b

```

播放
--

[](#播放)

rtmp播放地址: `rtmp://127.0.0.1/a/b`

httpflv播放地址: `http://127.0.0.1:18080/a/b.flv`

wsflv播放地址: `ws://127.0.0.1:18080/a/b.flv`

web播放sdk: [Aliplayer](http://player.alicdn.com/aliplayer/setting/setting.html)

客户端播放器: `vlc`,`ffplay`

致谢
--

[](#致谢)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

1112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eaabc255a1017dbda15ae4ef0f607f0f76f53b0289d8b61dddbb41c0adf0b846?d=identicon)[DeYouOS](/maintainers/DeYouOS)

---

Top Contributors

[![wy3](https://avatars.githubusercontent.com/u/4516510?v=4)](https://github.com/wy3 "wy3 (38 commits)")[![DeYouOS](https://avatars.githubusercontent.com/u/42789556?v=4)](https://github.com/DeYouOS "DeYouOS (10 commits)")

### Embed Badge

![Health badge](/badges/brawn-media-server/health.svg)

```
[![Health](https://phpackages.com/badges/brawn-media-server/health.svg)](https://phpackages.com/packages/brawn-media-server)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.2k341.0k1](/packages/ccxt-ccxt)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[php-ffmpeg/php-ffmpeg

FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg

5.0k24.0M192](/packages/php-ffmpeg-php-ffmpeg)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k420.9k26](/packages/team-reflex-discord-php)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k90](/packages/nativephp-mobile)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
