mpeg.js
v1.0.0
Published
A Mpeg-TS Demuxer, with fast speed, you need to get the wasm source from github: https://github.com/numberwolf/MPEG-Demuxer.js, see README.MD
Downloads
10
Maintainers
Readme
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!
Contact: (QQ:531365872 ,Discord:numberwolf#8694)
LICENSE : GPL-3.0 https://www.gnu.org/licenses/gpl-3.0.md
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');