{"id":13617787,"url":"https://github.com/goldvideo/demuxer","last_synced_at":"2025-10-28T03:10:08.352Z","repository":{"id":57211885,"uuid":"234039526","full_name":"goldvideo/demuxer","owner":"goldvideo","description":"A tool for demux ts/mp4/flv by typescript. Support HEVC/AVC/AAC codec. https://goldvideo.github.io/demuxer/","archived":false,"fork":false,"pushed_at":"2024-10-31T00:34:00.000Z","size":8868,"stargazers_count":191,"open_issues_count":8,"forks_count":40,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-08T20:43:36.956Z","etag":null,"topics":["aac","avc","demux","h264","h265","hevc","hls","javascript","mp4","nodejs","ts","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/goldvideo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-15T08:56:57.000Z","updated_at":"2025-10-04T22:46:16.000Z","dependencies_parsed_at":"2024-03-30T23:32:56.202Z","dependency_job_id":"87838eb1-46c0-44fb-b923-4400257a6a57","html_url":"https://github.com/goldvideo/demuxer","commit_stats":{"total_commits":56,"total_committers":2,"mean_commits":28.0,"dds":"0.017857142857142905","last_synced_commit":"871543199e41a9e5ad74ff06ae4a6d66d56f010d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goldvideo/demuxer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldvideo%2Fdemuxer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldvideo%2Fdemuxer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldvideo%2Fdemuxer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldvideo%2Fdemuxer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goldvideo","download_url":"https://codeload.github.com/goldvideo/demuxer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldvideo%2Fdemuxer/sbom","scorecard":{"id":434717,"data":{"date":"2025-08-11","repo":{"name":"github.com/goldvideo/demuxer","commit":"8837242087d3748b45d598c2225c465f99a1a526"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"39 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-6fw4-hr69-g3rv","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-3f95-r44v-8mrg","Warn: Project is vulnerable to: GHSA-28xr-mwxg-3qc8","Warn: Project is vulnerable to: GHSA-9p95-fxvg-qgq2","Warn: Project is vulnerable to: GHSA-9w5j-4mwv-2wj8","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T04:18:49.942Z","repository_id":57211885,"created_at":"2025-08-19T04:18:49.943Z","updated_at":"2025-08-19T04:18:49.943Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281377144,"owners_count":26490415,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aac","avc","demux","h264","h265","hevc","hls","javascript","mp4","nodejs","ts","typescript"],"created_at":"2024-08-01T20:01:47.985Z","updated_at":"2025-10-28T03:10:08.316Z","avatar_url":"https://github.com/goldvideo.png","language":"TypeScript","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# A tool for demux ts/mp4/flv.\n\n\u003e This tool can be used on platforms such as HTML5 players or Node.js\n\n[![npm version](https://badge.fury.io/js/demuxer.svg)](https://www.npmjs.com/package/demuxer)\n[![Downloads](https://img.shields.io/npm/dm/demuxer.svg)](https://www.npmjs.com/package/demuxer)\n[![Build Status](https://app.travis-ci.com/goldvideo/demuxer.svg?branch=master)](https://app.travis-ci.com/goldvideo/demuxer)\n[![TypeScript](https://shields.io/badge/TypeScript-3178C6?logo=TypeScript\u0026logoColor=FFF\u0026style=flat-square)](./)\n\n## Demos\n\n- [Demux MP4](./doc/examples/demux-mp4.html)\n- [Demux TS](./doc/examples/demux-ts.html)\n- [Demux FLV](./doc/examples/demux-flv.html)\n\n## Data flow diagram\n\n![](./doc/design/dataflow.gv.png)\n\n## Feature\n\n- Support push streaming-data to demux\n- Tree-shakable (The version coded with full code does not need to worry about the reference size. When the business only refers to a certain format of decoding, the overall code supports tree-shaking)\n\n- Any-combination packaging (These formats can be packaged according to requirements, users do not need to package all the code)\n\n## How to start?\n\n1. install\n\n   ```shell\n   npm i demuxer\n   ```\n\n2. Setup\n\n   ```js\n   import { TSDemux, FLVDemux, MP4Demux, Events } from 'demuxer';\n\n   const demux = new TSDemux();\n   // const demux = new FLVDemux();\n   // const demux = new MP4Demux();\n\n   // The data is spit out in a streaming manner,\n   // and the first data is emitted as soon as possible.\n   demux.on(Events.DEMUX_DATA, (e) =\u003e {\n     console.log(e);\n\n     // if (e.stream_type === 15) {\n     //     console.log(e)\n     // }\n   });\n\n   demux.on(Events.DONE, (e) =\u003e {\n     // consumed \u0026 flushed all piped buffer.\n   });\n\n   // buffer -\u003e video bytes ArrayBuffer\n   demux.push(buffer, {\n     // Support push part of the data for parsing\n     // When done is set to true, if the data is decoded and there is no remaining data, the data is considered to have been pushed and Events.DONE will be emitted.\n     // When done is set to false, Events.DONE will not be emit, waiting for subsequent data push\n     done: true\n   });\n   ```\n\n3. Debug\n\n   ```$js\n   var demuxer = new TSDemux({\n       debug: true\n   });\n   ```\n\n4. Demuxer Options\n\n   ```$js\n   let options = {\n       // Setting options.debug = true; will turn on debug logs on JS console.\n       debug: true\n   };\n\n   var demuxer = new TSDemux(options);\n   // var demuxer = new MP4Demux(options);\n   // var demuxer = new FLVDemux(options);\n   ```\n\n## About decoding MP4 raw data (h264/hevc/aac)\n\nDeveloper should parse the data of the mp4 header, and then locate the pos of the data information in the mdat according to the information described in the mp4 header.\n\n## About how to integrate Demuxer with Worker\n\nBecause the third party is likely to be internally built by the worker tool, in order not to conflict and redundancy with the worker tool, the worker is implemented by the user.\n\n## Lang\n\n[中文文档](./README_ZH.md)\n\n## LICENSE\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldvideo%2Fdemuxer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoldvideo%2Fdemuxer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldvideo%2Fdemuxer/lists"}