Socket
Book a DemoInstallSign in
Socket

codem-isoboxer

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codem-isoboxer

A lightweight JavaScript MP4 (MPEG-4, ISOBMFF) file/box parser.

latest
Source
npmnpm
Version
0.3.10
Version published
Weekly downloads
194K
-4.29%
Maintainers
3
Weekly downloads
 
Created

What is codem-isoboxer?

The codem-isoboxer package is a JavaScript library for parsing and writing ISO Base Media File Format (ISOBMFF) files, which are used in various multimedia formats like MP4. It allows developers to manipulate media file structures programmatically.

What are codem-isoboxer's main functionalities?

Parsing ISOBMFF files

This feature allows you to parse an ISOBMFF file from an ArrayBuffer. The parsed file can then be inspected or manipulated as needed.

const ISOBoxer = require('codem-isoboxer');
const arrayBuffer = ...; // Assume this is an ArrayBuffer of an ISOBMFF file
const parsedFile = ISOBoxer.parseBuffer(arrayBuffer);
console.log(parsedFile);

Writing ISOBMFF files

This feature allows you to create and write an ISOBMFF file. You can add boxes and set their properties before writing the file to an ArrayBuffer.

const ISOBoxer = require('codem-isoboxer');
const file = ISOBoxer.createFile();
// Add boxes to the file
const ftyp = file.add('ftyp');
ftyp.major_brand = 'mp42';
ftyp.minor_version = 0;
ftyp.compatible_brands = ['isom', 'mp42'];
const arrayBuffer = file.write();
console.log(arrayBuffer);

Other packages similar to codem-isoboxer

Keywords

mp4

FAQs

Package last updated on 30 Sep 2024

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