VisioForge (c) 2025

Search Results for

    Class UniversalDemuxBlock

    Universal demux block. Implements the MediaBlock. Implements the IMediaBlockInternals. Implements the IDisposable.

    Inheritance
    object
    MediaBlock
    UniversalDemuxBlock
    Implements
    IMediaBlock
    IDisposable
    IMediaBlockInternals
    Inherited Members
    MediaBlock._isBuilt
    MediaBlock._pipeline
    MediaBlock._pipelineCtx
    MediaBlock.GetPipelineContext()
    MediaBlock.SetPipeline(MediaBlocksPipeline)
    MediaBlock.Context
    MediaBlock.Name
    MediaBlock.IsBuilt
    MediaBlock.GetInputPadByType(MediaBlockPadMediaType)
    MediaBlock.GetOutputPadByType(MediaBlockPadMediaType)
    MediaBlock.GetFreeOutputPadByType(MediaBlockPadMediaType)
    MediaBlock.ToYAMLBlock()
    MediaBlock.ClearPads()
    MediaBlock.disposedValue
    MediaBlock.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: VisioForge.Core.MediaBlocks.Sources
    Assembly: VisioForge.Core.dll
    Syntax
    public class UniversalDemuxBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

    Constructors

    UniversalDemuxBlock(MediaFileInfo, bool, bool, bool, bool)

    Initializes a new instance of the UniversalDemuxBlock class.

    Declaration
    public UniversalDemuxBlock(MediaFileInfo info, bool renderVideo = true, bool renderAudio = true, bool renderSubtitle = false, bool renderMetadata = false)
    Parameters
    Type Name Description
    MediaFileInfo info

    The information. Optional, but we suggest to provide it to support all streams.

    bool renderVideo

    if set to true render video.

    bool renderAudio

    if set to true render audio.

    bool renderSubtitle

    if set to true render subtitle.

    bool renderMetadata

    if set to true render metadata.

    UniversalDemuxBlock(IUniversalDemuxSettings, MediaFileInfo, bool, bool, bool, bool)

    Initializes a new instance of the UniversalDemuxBlock class.

    Declaration
    public UniversalDemuxBlock(IUniversalDemuxSettings settings, MediaFileInfo info, bool renderVideo = true, bool renderAudio = true, bool renderSubtitle = false, bool renderMetadata = false)
    Parameters
    Type Name Description
    IUniversalDemuxSettings settings

    The settings.

    MediaFileInfo info

    The information. Optional, but we suggest to provide it to support all streams.

    bool renderVideo

    if set to true render video.

    bool renderAudio

    if set to true render audio.

    bool renderSubtitle

    if set to true render subtitle.

    bool renderMetadata

    if set to true render metadata.

    Properties

    AudioOutputs

    Gets the audio outputs.

    Declaration
    public MediaBlockPad[] AudioOutputs { get; }
    Property Value
    Type Description
    MediaBlockPad[]

    The audio outputs.

    Input

    Gets the input.

    Declaration
    public override MediaBlockPad Input { get; }
    Property Value
    Type Description
    MediaBlockPad

    The input.

    Overrides
    MediaBlock.Input

    Inputs

    Gets the inputs.

    Declaration
    public override MediaBlockPad[] Inputs { get; }
    Property Value
    Type Description
    MediaBlockPad[]

    The inputs.

    Overrides
    MediaBlock.Inputs

    MetadataOutputs

    Gets the metadata outputs.

    Declaration
    public MediaBlockPad[] MetadataOutputs { get; }
    Property Value
    Type Description
    MediaBlockPad[]

    The metadata outputs.

    Output

    Gets the output.

    Declaration
    public override MediaBlockPad Output { get; }
    Property Value
    Type Description
    MediaBlockPad

    The output.

    Overrides
    MediaBlock.Output

    Outputs

    Gets the outputs.

    Declaration
    public override MediaBlockPad[] Outputs { get; }
    Property Value
    Type Description
    MediaBlockPad[]

    The outputs.

    Overrides
    MediaBlock.Outputs

    SubtitleOutputs

    Gets the subtitle outputs.

    Declaration
    public MediaBlockPad[] SubtitleOutputs { get; }
    Property Value
    Type Description
    MediaBlockPad[]

    The subtitle outputs.

    Type

    Gets the type.

    Declaration
    public override MediaBlockType Type { get; }
    Property Value
    Type Description
    MediaBlockType

    The type.

    Overrides
    MediaBlock.Type

    VideoOutputs

    Gets the video outputs.

    Declaration
    public MediaBlockPad[] VideoOutputs { get; }
    Property Value
    Type Description
    MediaBlockPad[]

    The video outputs.

    Methods

    Build()

    Builds this instance.

    Declaration
    public override bool Build()
    Returns
    Type Description
    bool

    true if successfull, false otherwise.

    Overrides
    MediaBlock.Build()

    CleanUp()

    Cleans up.

    Declaration
    public void CleanUp()

    Dispose(bool)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    Overrides
    MediaBlock.Dispose(bool)

    GetAudioOutput()

    Gets the audio output.

    Declaration
    public MediaBlockPad GetAudioOutput()
    Returns
    Type Description
    MediaBlockPad

    MediaBlockPad.

    GetCore()

    Gets core.

    Declaration
    public BaseElement GetCore()
    Returns
    Type Description
    BaseElement

    VisioForge.Core.GStreamer.Base.BaseElement.

    GetElement()

    Gets the element.

    Declaration
    public Element GetElement()
    Returns
    Type Description
    Element

    Gst.Element.

    GetMetadataOutput()

    Gets the metadata output.

    Declaration
    public MediaBlockPad GetMetadataOutput()
    Returns
    Type Description
    MediaBlockPad

    MediaBlockPad.

    GetSubtitleOutput()

    Gets the subtitle output.

    Declaration
    public MediaBlockPad GetSubtitleOutput()
    Returns
    Type Description
    MediaBlockPad

    MediaBlockPad.

    GetVideoOutput()

    Gets the video output.

    Declaration
    public MediaBlockPad GetVideoOutput()
    Returns
    Type Description
    MediaBlockPad

    MediaBlockPad.

    IsAvailable(IUniversalDemuxSettings)

    Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.

    Declaration
    public static bool IsAvailable(IUniversalDemuxSettings settings)
    Parameters
    Type Name Description
    IUniversalDemuxSettings settings

    The settings.

    Returns
    Type Description
    bool

    true if this media block is available; otherwise, false.

    Implements

    IMediaBlock
    IDisposable
    IMediaBlockInternals

    Extension Methods

    MediaBlockHelper.SendEndOfStream(MediaBlock)
    MediaBlockHelper.SendEvent(MediaBlock, Event)
    MediaBlockHelper.SetState(MediaBlock, State)

    See Also

    MediaBlock
    IMediaBlockInternals
    IDisposable