{"id":29146181,"url":"https://github.com/mathiasvr/ebml-block","last_synced_at":"2025-06-30T21:10:36.909Z","repository":{"id":57219063,"uuid":"62676150","full_name":"mathiasvr/ebml-block","owner":"mathiasvr","description":"EBML Block Parser","archived":false,"fork":false,"pushed_at":"2018-09-28T19:08:09.000Z","size":9,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-09T17:51:38.396Z","etag":null,"topics":["ebml","matroska"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathiasvr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-05T23:27:59.000Z","updated_at":"2023-12-01T01:23:53.000Z","dependencies_parsed_at":"2022-08-29T02:11:48.945Z","dependency_job_id":null,"html_url":"https://github.com/mathiasvr/ebml-block","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mathiasvr/ebml-block","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasvr%2Febml-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasvr%2Febml-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasvr%2Febml-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasvr%2Febml-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathiasvr","download_url":"https://codeload.github.com/mathiasvr/ebml-block/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathiasvr%2Febml-block/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262850294,"owners_count":23374357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ebml","matroska"],"created_at":"2025-06-30T21:10:35.705Z","updated_at":"2025-06-30T21:10:36.886Z","avatar_url":"https://github.com/mathiasvr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ebml-block [![npm][npm-img]][npm-url] [![dependencies][dep-img]][dep-url] [![license][lic-img]][lic-url]\n\n[npm-img]: https://img.shields.io/npm/v/ebml-block.svg\n[npm-url]: https://www.npmjs.com/package/ebml-block\n[dep-img]: https://david-dm.org/mathiasvr/ebml-block.svg\n[dep-url]: https://david-dm.org/mathiasvr/ebml-block\n[lic-img]: http://img.shields.io/:license-MIT-blue.svg\n[lic-url]: http://mvr.mit-license.org\n\nEBML Block Parser.\n\nReads a buffer as a [EBML Block Structure](https://www.matroska.org/technical/specs/index.html#block_structure), supporting lacing.\n\n## install\n\n```\nnpm install ebml-block\n```\n\n## example\n\n```javascript\nconst fs = require('fs')\nconst ebml = require('ebml')\nconst ebmlBlock = require('ebml-block')\n\nvar decoder = new ebml.Decoder()\n\ndecoder.on('data', function (chunk) {\n  if (chunk[1].name === 'Block' || chunk[1].name === 'SimpleBlock') {\n    var block = ebmlBlock(chunk[1].data)\n    console.log(block)\n  }\n})\n\nfs.createReadStream('media.mkv').pipe(decoder)\n```\n\n### output format\n```\n{ trackNumber: 1,\n  timecode: 542,\n  invisible: false,\n  keyframe: false,\n  discardable: true,\n  frames: [ \n    \u003cBuffer b4 64 1f 0e  ... \u003e \n    \u003cBuffer b4 64 1f 0c  ... \u003e ] }\n```\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathiasvr%2Febml-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathiasvr%2Febml-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathiasvr%2Febml-block/lists"}