#mp4 #audio #metadata #parser #m4a

mp4ameta

A library for reading and writing iTunes style MPEG-4 audio metadata

14 releases (6 breaking)

new 0.7.1 Nov 24, 2020
0.6.1 Oct 29, 2020
0.3.0 Jul 27, 2020
0.1.0 Mar 26, 2020

#23 in Audio

Download history 115/week @ 2020-08-04 92/week @ 2020-08-11 61/week @ 2020-08-18 107/week @ 2020-08-25 51/week @ 2020-09-01 51/week @ 2020-09-08 71/week @ 2020-09-15 394/week @ 2020-09-22 86/week @ 2020-09-29 71/week @ 2020-10-06 78/week @ 2020-10-13 129/week @ 2020-10-20 124/week @ 2020-10-27 512/week @ 2020-11-03 162/week @ 2020-11-10 120/week @ 2020-11-17

652 downloads per month
Used in 6 crates (2 directly)

MIT/Apache

98KB
2K SLoC

rust-mp4ameta

CI Crate Documentation License LOC

A library for reading and writing iTunes style MPEG-4 audio metadata.

Usage

fn main() {
  	let mut tag = mp4ameta::Tag::read_from_path("music.m4a").unwrap();

  	println!("{}", tag.artist().unwrap());

  	tag.set_artist("artist");

  	tag.write_to_path("music.m4a").unwrap();
}

Supported Filetypes

  • M4A
  • M4B
  • M4P
  • M4V

Useful Links

Testing

Run all tests:

cargo test -- --test-threads=1

To test this library against your collection symlink your music dir into the files dir and run:

cargo test sample_files -- --show-output

Dependencies