mpeg.js

1.0.0 • Public • Published

mpeg.js

A MPEG Media Box demuxer framework

Feature

  • Support Mpeg-2 TS demux operation
    • get NALU header
    • get VLC data
    • get frame packet
    • get duration of TS
    • get sample rate/frame rate of TS
    • get media info
    • support input data by URI/Uint8 buffer!

npm version

If mpeg.js help you, you can click star button, it offered me more impetus to develop h265webjs!

~^_^~

Setup

  • step1. install the mpeg.js

https://www.npmjs.com/package/mpeg.js

npm i mpeg.js
  • step2. download the wasm(or get it from node_modules)

download from https://github.com/numberwolf/MPEG-Demuxer.js

get it from node_modules
copy it to your js dist dir (which require the tsdemuxerjs)

cp node_modules/mpeg.js/demuxer/missilets.wasm ./dist/

Use it!

  • See github

index.html

play.js

  • Example Demo

npm start

const TsDemuxerJs = require('mpeg.js');

Package Sidebar

Install

npm i mpeg.js

Weekly Downloads

2

Version

1.0.0

License

GPL-3.0

Unpacked Size

1.03 MB

Total Files

13

Last publish

Collaborators

  • numberwolf