#mp3 #duration #audio #metadata #parser

mp3-duration

A library for measuring the playback duration of mp3 files

10 releases

✓ Uses Rust 2018 edition

0.1.9 Feb 14, 2020
0.1.8 Jan 20, 2020
0.1.7 Dec 17, 2019
0.1.6 Mar 5, 2019
0.1.1 Dec 11, 2017

#19 in Audio

Download history 4/week @ 2019-11-08 34/week @ 2019-11-15 16/week @ 2019-11-22 27/week @ 2019-11-29 80/week @ 2019-12-06 35/week @ 2019-12-13 11/week @ 2019-12-20 33/week @ 2019-12-27 120/week @ 2020-01-03 284/week @ 2020-01-10 215/week @ 2020-01-17 18/week @ 2020-01-24 86/week @ 2020-01-31 22/week @ 2020-02-07 42/week @ 2020-02-14

327 downloads per month
Used in 3 crates

MIT license

21KB
494 lines

Crates.io Build Status

mp3-duration

This crate has only one purpose: determining the playback duration of mp3 files.

Example

use std::path::Path;
use mp3_duration;

let path = Path::new("music.mp3");
let duration = mp3_duration::from_path(&path).unwrap();
println!("File duration: {:?}", duration);

Changelog

Version 0.1.9

  • Fixed a bug where the MP3Duration error type was no longer public since version 0.1.8 (thanks @compenguy for the contribution)

Version 0.1.8

  • Minor performance improvements

Version 0.1.7

  • Fixed a crash when reading corrupted files with impossibly short MPEG frames

Links

Dependencies

~56KB