Skip to main content

Module output

Module output 

Source
Expand description

Managed OBS outputs and validated output composition.

§Which level should I use?

Prefer ObsOutputPipelineBuilder when creating a complete encoded output: it validates the selected output flags, codecs, protocol/service, audio mixer indices, and runtime affinity before native creation.

Use ObsOutputComposition / ObsOutputTrait when an application intentionally needs to inspect or replace encoder/service attachments on an existing output. Attachment storage and lifecycle serialization are implementation details; public callers work through behavior only.

Pair this module with crate::capabilities to choose concrete implementations from the OBS plugins available at runtime. For conventional recording or RTMP streaming, libobs-simple provides a shorter opinionated path.

Structs§

BitrateSample
ObsOutputComposition
Desired encoder/service wiring for an OBS output.
ObsOutputPipeline
A fully validated and wired output ready for lifecycle operations.
ObsOutputPipelineBuilder
Builder for one validated OBS output graph.
ObsOutputRef
A reference to an OBS output.
ObsOutputSignals
ObsReplayBufferOutputRef
A reference to an OBS output.
ObsReplayOutputSignals
OutputBitrateSampler
Stateful byte-counter sampler. Reuse one sampler for one output lifecycle.
OutputStatusSnapshot
Point-in-time output health. Dropped frames are network-congestion drops, not rendering or encoding lag.

Enums§

BitrateSampleState
OutputMetric
A native metric whose support may be optional for an output plugin.

Constants§

DEFAULT_OUTPUT_OPERATION_TIMEOUT
Default deadline used by blocking lifecycle operations.
DEFAULT_REPLAY_SAVE_TIMEOUT
Default maximum time ObsReplayBufferOutputRef::save_buffer waits for native completion.

Traits§

ObsOutputStatisticsExt
Additive statistics API for any managed OBS output.
ObsOutputTrait