Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tarkah/ffmpeg-decoder-rs
Decode audio files using ffmpeg bindings
https://github.com/tarkah/ffmpeg-decoder-rs
audio ffmpeg rodio rust
Last synced: 4 months ago
JSON representation
Decode audio files using ffmpeg bindings
- Host: GitHub
- URL: https://github.com/tarkah/ffmpeg-decoder-rs
- Owner: tarkah
- License: mit
- Created: 2020-03-24T03:09:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-02T16:04:45.000Z (about 3 years ago)
- Last Synced: 2024-09-14T10:36:52.152Z (5 months ago)
- Topics: audio, ffmpeg, rodio, rust
- Language: Rust
- Homepage:
- Size: 48.8 KB
- Stars: 11
- Watchers: 2
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ffmpeg-decoder
[![Crates.io](https://img.shields.io/crates/v/ffmpeg-decoder)](https://crates.io/crates/ffmpeg-decoder)
[![](https://docs.rs/ffmpeg-decoder/badge.svg)](https://docs.rs/ffmpeg-decoder)Decodes audio files and converts sample format to signed 16bit. Can
be used as a playback source with [rodio](https://github.com/RustAudio/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
```