Expand description
Track and sample access for MP4 and ISO base media files.
Mp4Reader parses progressive and fragmented input. Mp4Writer writes
progressive files from caller-supplied tracks and samples.
use mp4_track::Mp4Reader;
let file = std::fs::File::open("tests/fixtures/v02_h264_aac_faststart.mp4")?;
let reader = Mp4Reader::open(file)?;
assert_eq!(reader.tracks().len(), 2);Structs§
- AacConfig
- AAC decoder configuration.
- AvcConfig
- AVC decoder configuration.
- Brands
- File-type brands from the
ftypbox. - Edit
- One movie edit-list entry.
- Event
- A top-level event message.
- FourCc
- A four-byte ISO box or sample-entry code.
- Fragment
- One parsed movie fragment.
- Hevc
Config - HEVC decoder configuration.
- Limits
- Resource bounds applied while opening and reading.
- Metadata
- Parsed user metadata.
- Mp4Reader
- A bounded reader over track-level MP4 data.
- Mp4Writer
- A progressive MP4 writer.
- NalArray
- One HEVC NAL array.
- Opus
Config - Opus decoder configuration.
- Sample
- Sample bytes and parsed metadata.
- Sample
Info - Location and timing for one sample.
- Sample
Input - One sample supplied to the writer.
- Sample
Iter - An exact, double-ended iterator over sample metadata.
- Sidecar
Box - A preserved sample-entry child box.
- Track
- Parsed track metadata.
- Track
Config - Track settings supplied to the writer.
- TrackId
- A track identifier stored in track and fragment headers.
- Track
Run - Samples from one fragment track run.
- Writer
Config - File-level writer settings.
Enums§
- Chunk
Offset Choice - Writer selection for chunk-offset boxes.
- Chunk
Offset Kind - The box used for chunk offsets.
- Codec
- Codec configuration from a sample description.
- Error
- Errors produced by parsing, sample reads, and writing.
- MetaKey
- A recognized metadata key.
- Meta
Value - A metadata value.
- Track
Kind - The media role of a track.
- Warning
- A tolerated file oddity.