
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
fmp4-concat
Advanced tools
A browser library for concatenating multiple FMP4 streams with timeline adjustment
A browser library for concatenating multiple FMP4 (Fragmented MP4) streams with automatic timeline adjustment.
npm install fmp4-concat
import { FMP4Concat } from 'fmp4-concat';
// Create a new FMP4Concat instance
const concat = new FMP4Concat();
// Prepare your FMP4 streams (ReadableStream<Uint8Array>[])
const streams = [stream1, stream2, stream3];
// Concatenate the streams
const concatenatedStream = concat.concat(streams);
// Use the concatenated stream
const reader = concatenatedStream.getReader();
while (true) {
const { done, value } = await reader.read();
if (done) break;
// Process the concatenated FMP4 data
processData(value);
}
import { FMP4Concat, MP4Parser } from 'fmp4-concat';
const parser = new MP4Parser();
const concat = new FMP4Concat();
// Parse MP4 boxes for debugging or analysis
const boxInfo = parser.parseBox(uint8ArrayData, 0);
console.log('Box type:', boxInfo.type);
console.log('Box size:', boxInfo.size);
// Then concatenate your streams
const result = concat.concat(streams);
concat(streams: ReadableStream<Uint8Array>[]): ReadableStream<Uint8Array>Concatenates multiple FMP4 streams with automatic timeline adjustment.
Parameters:
streams - Array of ReadableStream containing FMP4 dataReturns:
ReadableStream<Uint8Array> - Concatenated FMP4 streamparseBox(buffer: Uint8Array, offset: number): BoxInfoParses an MP4 box from a buffer.
Parameters:
buffer - Uint8Array containing MP4 dataoffset - Starting position in the bufferReturns:
BoxInfo - Information about the parsed boxinterface BoxInfo {
type: string;
size: number;
// ... other box properties
}
interface MoofInfo {
// Movie fragment information
}
interface TracKInfo {
// Track information
}
MIT License - see the LICENSE file for details.
Suemor
FAQs
A browser library for concatenating multiple FMP4 streams with timeline adjustment
We found that fmp4-concat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.