pub struct EncoderArgs {
pub codec: Codec,
pub hw: Hardware,
pub bitrate: u32,
pub fps: f32,
pub keyframe_interval_ms: u64,
pub renditions: Vec<RenditionSettings>,
}Expand description
Video encoder flags.
Fields§
§codec: CodecVideo codec: vp8, av1 (built with the av1 feature), or h264 (built with the
h264 feature, with OPENH264_LIBRARY pointing at Cisco’s OpenH264 binary).
hw: HardwareHardware video encoding (built with the hw feature): auto uses a VA-API or NVENC
encoder through GStreamer when one works and falls back to software, off always
encodes in software, and require fails without a hardware encoder.
bitrate: u32Target video bitrate in bits per second.
fps: f32Expected maximum input frame rate of the video.
keyframe_interval_ms: u64Maximum keyframe (MoQ group) interval of the video in milliseconds.
renditions: Vec<RenditionSettings>A smaller rendition of each video, as HEIGHTp@BITRATE (e.g. 360p@500000); repeat for
several. Viewers pick the one that suits them.
Implementations§
Source§impl EncoderArgs
impl EncoderArgs
pub fn settings(&self) -> EncoderSettings
Sourcepub fn broadcast_settings(&self) -> ImageBroadcastSettings
pub fn broadcast_settings(&self) -> ImageBroadcastSettings
The settings of every rendition.
Trait Implementations§
Source§impl Args for EncoderArgs
impl Args for EncoderArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for EncoderArgs
impl Clone for EncoderArgs
Source§impl Debug for EncoderArgs
impl Debug for EncoderArgs
Source§impl FromArgMatches for EncoderArgs
impl FromArgMatches for EncoderArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Forget for EncoderArgs
impl Freeze for EncoderArgs
impl Move for EncoderArgs
impl RefUnwindSafe for EncoderArgs
impl Send for EncoderArgs
impl Sync for EncoderArgs
impl Unpin for EncoderArgs
impl UnsafeUnpin for EncoderArgs
impl UnwindSafe for EncoderArgs
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more