An open API service indexing awesome lists of open source software.

https://github.com/davidbuchanan314/mp4decrypt.js

`mp4decrypt` CLI utility implemented using MP4Box.js
https://github.com/davidbuchanan314/mp4decrypt.js

Last synced: 4 months ago
JSON representation

`mp4decrypt` CLI utility implemented using MP4Box.js

Awesome Lists containing this project

README

        

# mp4decrypt.js [WIP]

`mp4decrypt` CLI utility implemented using MP4Box.js

The goal is feature parity with [Bento4 mp4decrypt](https://www.bento4.com/documentation/mp4decrypt/)

Current status: It kinda works for `cenc` mode! However, it's extremely hacky, it just decrypts in-place and doesn't rewrite any of the metadata. The resultant file is playable in mpv at least. Also right now the decryption key is hardcoded in the source, and the whole input file is buffered in memory, among other incomplete things.

I'm going to need to figure out how to do things not-in-place, because otherwise NAL start code emulation bytes will mess things up, on occasion.