Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ebml-block

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ebml-block

EBML Block Parser

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ebml-block npm dependencies license

EBML Block Parser.

Reads a buffer as a EBML Block Structure, supporting lacing.

install

npm install ebml-block

example

const fs = require('fs')
const ebml = require('ebml')
const ebmlBlock = require('ebml-block')

var decoder = new ebml.Decoder()

decoder.on('data', function (chunk) {
  if (chunk[1].name === 'Block' || chunk[1].name === 'SimpleBlock') {
    var block = ebmlBlock(chunk[1].data)
    console.log(block)
  }
})

fs.createReadStream('media.mkv').pipe(decoder)

output format

{ trackNumber: 1,
  timecode: 542,
  invisible: false,
  keyframe: false,
  discardable: true,
  frames: [ 
    <Buffer b4 64 1f 0e  ... > 
    <Buffer b4 64 1f 0c  ... > ] }

license

MIT

Keywords

FAQs

Package last updated on 28 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc