#music #dump #ncm #qmc

ncmdump

Some copyright protection file dump

11 releases (6 breaking)

0.7.3 Jul 10, 2024
0.7.0 May 28, 2024
0.6.1 Sep 9, 2023
0.6.0 Jun 10, 2023
0.1.0 Sep 25, 2019

#110 in Audio

Download history 31/week @ 2024-03-31 165/week @ 2024-05-26 13/week @ 2024-06-02 132/week @ 2024-06-09 49/week @ 2024-06-16 148/week @ 2024-06-23 1/week @ 2024-06-30 116/week @ 2024-07-07 12/week @ 2024-07-14

281 downloads per month

MIT license

45KB
882 lines

Ncmdump.rs

[English] [中文]

Credit

Origin

Binary Usage

Install

You can install by Cargo.

cargo install ncmdump

Simple usage

ncmdump [FILES]...

More options

Usage: ncmdump [OPTIONS] [FILES]...

Arguments:
  [FILES]...  Specified the files to convert

Options:
  -o, --output <OUTPUT>  Specified the output directory. Default it's the same directory with input file
  -v, --verbose          Verbosely list files processing
  -h, --help             Print help
  -V, --version          Print version

Library Usage

Install

You can add this to your Cargo.toml:

ncmdump = "0.7.3"

Also, you can use this command to install this crate, if you installed cargo-edit

cargo add ncmdump

Simple Usage

use std::fs::File;
use std::path::Path;

use anyhow::Result;
use ncmdump::Ncmdump;

fn main() -> Result<()> {
    use std::io::Write;
    let file = File::open("res/test.ncm")?;
    let mut ncm = Ncmdump::from_reader(file)?;
    let music = ncm.get_data()?;
    let mut target = File::options()
        .create(true)
        .write(true)
        .open("res/test.flac")?;
    target.write_all(&music)?;
    Ok(())
}

For more usage, please check the document.

Dependencies

~1.4–2.3MB
~51K SLoC