pub struct Mp4Writer { /* private fields */ }Expand description
Writes MP4 or MOV files with the index before the media data (faststart), tracks interleaved in chunks of about half a second.
Implementations§
Trait Implementations§
Source§impl ContainerWriter for Mp4Writer
impl ContainerWriter for Mp4Writer
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 !RefUnwindSafe for Mp4Writer
impl !Sync for Mp4Writer
impl !UnwindSafe for Mp4Writer
impl Forget for Mp4Writer
impl Freeze for Mp4Writer
impl Move for Mp4Writer
impl Send for Mp4Writer
impl Unpin for Mp4Writer
impl UnsafeUnpin for Mp4Writer
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