pub struct Writer {
pub destination: Location,
/* private fields */
}
Expand description
File writer for video files.
§Example
Create a video writer that produces fragmented MP4:
ⓘ
let mut options = HashMap::new();
options.insert(
"movflags".to_string(),
"frag_keyframe+empty_moov".to_string(),
);
let mut writer = WriterBuilder::new(Path::new("my_file.mp4"))
.with_options(&options.into())
.unwrap();
Fields§
§destination: Location
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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