Table of Contents

Class LVCVideoOutput

Namespace
VisioForge.Core.LiveVideoCompositorV2
Assembly
VisioForge.Core.dll

Represents a video-only output component for the Live Video Compositor. This class handles the creation and management of video bridge sources that connect to the main processing pipeline, supporting optional video processing blocks.

public class LVCVideoOutput : LVCOutput, IDisposable

Inheritance

Derived

Implements

Inherited Members

Remarks

This output type is used when only video streams need to be processed and output from the compositor, without any audio components. It creates a single bridge source for video and allows for optional video processing before connection to the main output block.

Constructors

LVCVideoOutput(string, LiveVideoCompositor, MediaBlock, bool, MediaBlock)

Initializes a new instance of the VisioForge.Core.LiveVideoCompositorV2.LVCVideoOutput class.

public LVCVideoOutput(string name, LiveVideoCompositor compositor, MediaBlock mainBlock, bool autostart, MediaBlock processingVideoBlock = null)

Parameters

name string

The unique name identifier for this output instance.

compositor LiveVideoCompositor

The parent compositor that manages this output.

mainBlock MediaBlock

The main media block that will receive the processed video stream.

autostart bool

If set to true, the output will automatically start with the main pipeline; otherwise, manual start is required.

processingVideoBlock MediaBlock

An optional video processing block to apply effects or transformations to the video stream before output. Default is null.

Methods

Build(string, string)

Builds the output pipeline by creating a video bridge source and connecting it to the main output block through an optional processing block.

public override void Build(string uniqueName, string uniqueName2 = null)

Parameters

uniqueName string

The unique identifier for the video bridge source.

uniqueName2 string

Not used in video-only output. This parameter is included for interface compatibility.

Remarks

This method creates a video bridge source based on the compositor's video settings, connects an optional processing block if provided, and establishes the pipeline from the bridge source to the main output block. The method handles dynamic input creation for blocks that support it. Note that there appears to be duplicate connection logic in the current implementation that may need review.

Exceptions

ArgumentOutOfRangeException

Thrown when the media type is null or invalid.

See Also