rsmp4decrypt 0.2.0

Rust bindings and a CLI for Bento4 mp4decrypt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rsmp4decrypt::Mp4Decryptor;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let decryptor = Mp4Decryptor::builder()
        .key_spec("eb676abbcb345e96bbcf616630f1a3da:100b6c20940f779a4589152b57d2dacb")?
        .build()?;

    decryptor.decrypt_file(
        "encrypted-video.m4s",
        "clear-video.m4s",
        Some("video-init.mp4"),
    )?;

    Ok(())
}