Take CENC media and decrypt it using Bento4's mp4decrypt
and Node Buffer
s. Perfect for small files like DASH segments.
- Windows 32-bit and 64-bit
- Linux 64-bit
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)
})
This repo contains prebuilts of Bento4 1.6.0.639 library.