pub struct MatroskaWriter { /* private fields */ }Expand description
Writes Matroska or WebM files: the header, clusters of blocks with millisecond timestamps,
cues at the end, then the SeekHead and duration filled in by seeking back.
Implementations§
Source§impl MatroskaWriter
impl MatroskaWriter
Sourcepub fn create(file: File, flavor: MatroskaFlavor) -> Self
pub fn create(file: File, flavor: MatroskaFlavor) -> Self
A writer into file.
Trait Implementations§
Source§impl ContainerWriter for MatroskaWriter
impl ContainerWriter for MatroskaWriter
Source§fn write(&mut self, packet: Packet) -> Result<(), MuxError>
fn write(&mut self, packet: Packet) -> Result<(), MuxError>
Writes
packet. Packets of each track arrive in decode order, and the writer interleaves
the tracks. A track may run ahead of the others by up to 10 s (Matroska) or 64 MiB of
packets (MP4) before the file’s layout degrades: the leading track is then written in one
run, and a reader seeking in it finds the other tracks far away. Read moreAuto Trait Implementations§
impl !Freeze for MatroskaWriter
impl !RefUnwindSafe for MatroskaWriter
impl !Sync for MatroskaWriter
impl !UnwindSafe for MatroskaWriter
impl Forget for MatroskaWriter
impl Move for MatroskaWriter
impl Send for MatroskaWriter
impl Unpin for MatroskaWriter
impl UnsafeUnpin for MatroskaWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more