pub struct VideoSegmenter { /* private fields */ }Expand description
Video segmenter
Implementations§
Source§impl VideoSegmenter
impl VideoSegmenter
Sourcepub fn new(strategy: SplitStrategy) -> Self
pub fn new(strategy: SplitStrategy) -> Self
Create a new video segmenter
Sourcepub fn with_duration(self, duration: Duration) -> Self
pub fn with_duration(self, duration: Duration) -> Self
Set segment duration for time-based splitting
Sourcepub fn with_overlap(self, overlap: Duration) -> Self
pub fn with_overlap(self, overlap: Duration) -> Self
Set overlap duration
Sourcepub fn with_gop_size(self, gop_size: usize) -> Self
pub fn with_gop_size(self, gop_size: usize) -> Self
Set GOP size hint
Sourcepub fn with_tile_grid(self, width: u32, height: u32) -> Self
pub fn with_tile_grid(self, width: u32, height: u32) -> Self
Set tile grid for spatial splitting
Sourcepub async fn split_video(
&self,
source: &Path,
video_info: &VideoInfo,
) -> Result<Vec<VideoSegment>>
pub async fn split_video( &self, source: &Path, video_info: &VideoInfo, ) -> Result<Vec<VideoSegment>>
Split video into segments
Auto Trait Implementations§
impl Freeze for VideoSegmenter
impl RefUnwindSafe for VideoSegmenter
impl Send for VideoSegmenter
impl Sync for VideoSegmenter
impl Unpin for VideoSegmenter
impl UnsafeUnpin for VideoSegmenter
impl UnwindSafe for VideoSegmenter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request