Skip to content

tage64/ffmpeg-decoder-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Decode audio files using ffmpeg bindings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%