ffmpeg-decoder

Crates.ioffmpeg-decoder
lib.rsffmpeg-decoder
version0.1.3
sourcesrc
created_at2020-03-26 23:22:39.617712
updated_at2020-09-16 21:40:06.291146
descriptionDecodes audio files using ffmpeg with rust. Can be used as a rodio source.
homepage
repositoryhttps://github.com/tarkah/ffmpeg-decoder-rs
max_upload_size
id223309
size24,277
Cory Forsstrom (tarkah)

documentation

https://docs.rs/ffmpeg-decoder

README

ffmpeg-decoder

Crates.io

Decodes audio files and converts sample format to signed 16bit. Can be used as a playback source with rodio.

Rodio Source

Decoder implies rodio's Source trait, as well as Iterator. Enable feature flag rodio_source to include this. Decoder can then be used as a source for Rodio, with the benefits of being able to decode everything ffmpeg supports.

Testing with CLI

Convert input file to signed 16bit and save as .raw alongisde original

cargo run --release -- convert path/to/test.mp3

Play with rodio

cargo run --release -- play path/to/test.flac
Commit count: 26

cargo fmt