Crates.io | riff-io |
lib.rs | riff-io |
version | 0.2.0 |
source | src |
created_at | 2021-09-12 20:39:47.507088 |
updated_at | 2024-04-03 14:08:09.311697 |
description | Library for reading meta-data and contents from RIFF files |
homepage | |
repository | https://github.com/andygrove/riff-io |
max_upload_size | |
id | 450192 |
size | 19,922 |
Rust crate for reading and writing Resource Interchange File Format (RIFF) files, such as Audio Video Interleave (AVI) and Waveform Audio File Format (WAV).
I am no longer maintaining this crate and would be happy to transfer it to new maintainers.
The example shows the file structure of the specified RIFF file.
cargo run --example view example.AVI
Sample output:
LIST 'hdrl'
CHUNK 'avih' offset=32 size=56
LIST 'strl'
CHUNK 'strh' offset=108 size=56
CHUNK 'strf' offset=172 size=1064
CHUNK 'indx' offset=1244 size=32248
LIST 'odml'
CHUNK 'dmlh' offset=33512 size=248
CHUNK 'JUNK' offset=33768 size=12
LIST 'movi'
CHUNK 'ix00' offset=33800 size=32248
CHUNK '00db' offset=66056 size=3818112
CHUNK 'JUNK' offset=3884176 size=368
...
CHUNK '00db' offset=164261384 size=3818112
CHUNK 'JUNK' offset=168079504 size=368
CHUNK 'idx1' offset=168079880 size=1528