1.0.9 • Published 5 years ago

@fyreware/moov-faststart v1.0.9

Weekly downloads
12
License
Apache-2.0
Repository
github
Last release
5 years ago

Build Status

moov-faststart

Re-orders moov atoms in mp4 containers to enable streaming. Based on qt-faststart, but works with a Buffer interface.

⚠️ Requires Node >10.4 (V8 6.7) for BigInt support!

Installation

Get it via npm:

npm install --save moov-faststart

or yarn:

yarn add moov-faststart

Usage

import { faststart } from 'moov-faststart'
import * as fs from 'fs'

// Get a Buffer containing unstreamable MP4...
const mp4File = fs.readFileSync('./unstreamable.mp4')

// Faststart it!
const faststartedMp4 = faststart(mp4File)

// Write out the Buffer containing the faststarted MP4. Done!
fs.writeFileSync('./streamable.mp4', faststartedMp4)
1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago