mp4decrypt-buffer
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

mp4decrypt-buffer

Take CENC media and decrypt it using Bento4's mp4decrypt and Node Buffers. Perfect for small files like DASH segments.

Example

const mp4decrypt = require('mp4decrypt-buffer')

const keys = {
  'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa': 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
}

const encrypted = fs.readFileSync('enc.m4s')
mp4decrypt.decrypt(encrypted, keys).then(decrypted => {
  fs.writeFileSync('dec.mp4', decrypted)
})

Third-party software

This repo links to Bento4 v1.6.0.640 as a submodule.

Readme

Keywords

Package Sidebar

Install

npm i mp4decrypt-buffer

Weekly Downloads

1

Version

1.1.0

License

GPL-2.0

Unpacked Size

5.19 MB

Total Files

575

Last publish

Collaborators

  • ubuntuegor