
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@chinachu/aribts
Advanced tools
MPEG-2 TS Stream Tool for node
npm i --save aribts
This example selects only first pmt.
const aribts = require("aribts");
const readable = fs.createReadStream(process.argv[2]);
const tsStream = new aribts.TsStream({
transform: true,
transPmtIds: [0]
});
const writable = fs.createWriteStream(process.argv[3]);
readable.pipe(tsStream);
tsStream.write(writable);
This example emits some info event.
const aribts = require("aribts");
const readable = fs.createReadStream(process.argv[2]);
const tsStream = new aribts.TsStream();
readable.pipe(tsStream);
tsStream.on("data", data => {});
tsStream.on("info", data => {
console.log("info", data);
});
tsStream.on("drop", pid => {
console.log("drop", pid);
});
tsStream.on("scrambling", pid => {
console.log("scrambling", pid);
});
options
transform
- boolean
Whether or not to select pakcet.skipSize
- number
Skip packets num.packetSize
- number
Input packet size (188 only now).bufferSize
- number
Buffering size.transPmtIds
- array
PMT IDs using to select packet.transPmtPids
- array
PMT PIDs using to select packet.transPmtSids
- array
PMT SIDs using to select packet.transPids
- array
PIDs using to select packet.packet
- (data) Parsed packet object.drop
- (pid) Emit when drop is happened.scrambling
- (pid) Emit when scrambling is happened.info
- (data) TS info object.pat
, cat
, pmt
... - (pid, data) Table object.FAQs
MPEG-2 TS Stream Tool for node
The npm package @chinachu/aribts receives a total of 506 weekly downloads. As such, @chinachu/aribts popularity was classified as not popular.
We found that @chinachu/aribts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.