# stream-quality-mos

> Calculate a mean opinion score (MOS) of 0-5 for a video stream quality.

Latest version **1.0.0** (published 2019-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install stream-quality-mos
pnpm add stream-quality-mos
yarn add stream-quality-mos
bun add stream-quality-mos
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-07-17 |
| First published | 2019-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jean Luis Urena |
| Maintainers | jlurena |
| Keywords | Video, Statistics, Mean Opinion Score, MOS, Stream, Quality, Score, OpenTok, TokBox |

## Links

- npm: https://www.npmjs.com/package/stream-quality-mos
- Repository: https://github.com/jlurena/video_stats_mos
- Homepage: https://github.com/jlurena/video_stats_mos#readme
- Issues: https://github.com/jlurena/video_stats_mos/issues
- npm.io page: https://npm.io/package/stream-quality-mos

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-07-17

## README

# StreamQualityMOS

StreamQualityMOS is a Javascript package used to calculate the [MOS](https://en.wikipedia.org/wiki/Mean_opinion_score) (mean opinion score) of a video stream quality. The score ranges from 0-5, zero being the worse and 5 being the best.

### Installation and Usage

Install with npm or yarn
```sh
$ npm install stream-quality-mos # NPM
$ yarn add stream-quality-mos  # Yarn
```

Usage
```javascript
import StreamQualityMos from 'stream-quality-mos';

const fakeStream = new FakeVideoStream();
const streamQualityMos = new StreamQualityMos({ width: 400, height: 400 });
setInterval( () => {
    const fakeStats = { timestamp: fakeStream.timestamp, bytes: fakeStream.bytesSent }
    streamQualityMos.onStats(fakeStats, (score) => console.log(score))
}, 1000);
```

### Development

Want to contribute? Great!

Just create a PR and make sure tests pass with `npm test`.

### Todos

 - Calculate Audio MOS score and incorporate it with Video MOS score.

### Docs
See the [Wiki](https://github.com/jlurena/stream-quality-mos/wiki/StreamQualityMos)

### Credits

[Charlie Robinson](https://github.com/wobbals) and his repo [opentok-mos-estimator](https://github.com/wobbals/opentok-mos-estimator)

---
_Source: https://npm.io/package/stream-quality-mos · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
