Expand description
A demuxer that can demux Matroska and WebM container files.
§Example:
use std::fs::File;
use matroska_demuxer::*;
let file = File::open("test.mkv").unwrap();
let mut mkv = MatroskaFile::open(file).unwrap();
let video_track = mkv
.tracks()
.iter()
.find(|t| t.track_type() == TrackType::Video)
.map(|t| t.track_number().get())
.unwrap();
let mut frame = Frame::default();
while mkv.next_frame(&mut frame).unwrap() {
if frame.track == video_track {
dbg!("video frame found");
}
}
Structs§
- Audio
- Audio settings.
- Chapter
Atom - Contains the atom information to use as the chapter atom.
- Chapter
Display - Contains all possible strings to use for the chapter display.
- Colour
- Settings describing the colour format.
- Content
EncAes Settings - Settings describing the encryption algorithm used.
- Content
Encoding - Settings for one content encoding like compression or encryption.
- Content
Encryption - Settings describing the encryption used.
- Ebml
Header - The EBML header of the file.
- Edition
Entry - Contains all information about a segment edition.
- Frame
- A data frame inside the Matroska container.
- Info
- Contains general information about the segment.
- Mastering
Metadata - SMPTE 2086 mastering data.
- Matroska
File - Demuxer for Matroska files.
- Simple
Tag - Contains general information about the target.
- Tag
- A single metadata descriptor.
- Targets
- Specifies which other elements the metadata represented by the tag applies to.
- Track
Entry - Describes a track.
- Video
- Video settings.
Enums§
- AesSettings
Cipher Mode - The AES cipher mode used in the encryption.
- Aspect
Ratio Type - Specify the possible modifications to the aspect ratio.
- Chroma
Siting Horz - How chroma is sub sampled horizontally.
- Chroma
Siting Vert - How chroma is sub sampled vertically.
- Content
EncAlgo - The encryption algorithm used.
- Content
Encoding Type - Describing what kind of transformation is applied.
- Demux
Error - Errors that can occur when demuxing Matroska files.
- Display
Unit - How
DisplayWidth
&DisplayHeight
are interpreted. - Element
Id - The IDs of the supported elements.
- Field
Order - Declare the field ordering of the video.
- Flag
Interlaced - A flag to declare if the video is known to be progressive or interlaced.
- Matrix
Coefficients - The Matrix Coefficients of the video used to derive luma and chroma values from red, green, and blue color primaries.
- Primaries
- The colour primaries of the video.
- Range
- Clipping of the color ranges.
- Stereo
Mode - Stereo-3D video mode.
- Track
Type - Type of the track.
- Transfer
Characteristics - The transfer characteristics of the video.