Nerds Publishing Monstrosities

    stream-quality-mos

    1.0.0 • Public • Published

    StreamQualityMOS

    StreamQualityMOS is a Javascript package used to calculate the MOS (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

    $ npm install stream-quality-mos # NPM 
    $ yarn add stream-quality-mos  # Yarn 

    Usage

    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

    Credits

    Charlie Robinson and his repo opentok-mos-estimator

    Install

    npm i stream-quality-mos

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.64 kB

    Total Files

    6

    Last publish

    Collaborators

    • jlurena