VisioForge (c) 2025

Search Results for

    Class M4AOutputBlock

    M4A output block. Contains AAC audio encoder and a file sink. Implements the MediaBlock. Implements the IMediaBlockInternals. Implements the IDisposable.

    Inheritance
    object
    MediaBlock
    M4AOutputBlock
    Implements
    IMediaBlock
    IDisposable
    IMediaBlockInternals
    IMediaBlockDynamicInputs
    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.Sinks
    Assembly: VisioForge.Core.dll
    Syntax
    public class M4AOutputBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals, IMediaBlockDynamicInputs

    Constructors

    M4AOutputBlock(string)

    Initializes a new instance of the M4AOutputBlock class.

    Declaration
    public M4AOutputBlock(string filename)
    Parameters
    Type Name Description
    string filename

    The file name.

    M4AOutputBlock(MP4SinkSettings, IAACEncoderSettings)

    Initializes a new instance of the M4AOutputBlock class.

    Declaration
    public M4AOutputBlock(MP4SinkSettings sinkSettings, IAACEncoderSettings aacSettings)
    Parameters
    Type Name Description
    MP4SinkSettings sinkSettings

    The settings.

    IAACEncoderSettings aacSettings

    The AAC settings.

    Properties

    Input

    Gets the first 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

    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

    Type

    Gets the type.

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

    The type.

    Overrides
    MediaBlock.Type

    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()

    CreateNewInput(MediaBlockPadMediaType)

    Creates the new input.

    Declaration
    public MediaBlockPad CreateNewInput(MediaBlockPadMediaType mediaType)
    Parameters
    Type Name Description
    MediaBlockPadMediaType mediaType

    Type of the media.

    Returns
    Type Description
    MediaBlockPad

    MediaBlockPad.

    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)

    GetCore()

    Gets the 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.

    GetFilenameOrURL()

    Gets the filename or URL.

    Declaration
    public string GetFilenameOrURL()
    Returns
    Type Description
    string

    System.String.

    GetInput(MediaBlockPadMediaType)

    Gets the existing input.

    Declaration
    public MediaBlockPad GetInput(MediaBlockPadMediaType mediaType)
    Parameters
    Type Name Description
    MediaBlockPadMediaType mediaType

    Type of the media.

    Returns
    Type Description
    MediaBlockPad

    MediaBlockPad.

    IsAvailable(IAACEncoderSettings)

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

    Declaration
    public static bool IsAvailable(IAACEncoderSettings aacSettings)
    Parameters
    Type Name Description
    IAACEncoderSettings aacSettings

    The AAC settings.

    Returns
    Type Description
    bool

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

    SetFilenameOrURL(string)

    Sets the filename or URL.

    Declaration
    public void SetFilenameOrURL(string value)
    Parameters
    Type Name Description
    string value

    The value.

    Implements

    IMediaBlock
    IDisposable
    IMediaBlockInternals
    IMediaBlockDynamicInputs

    Extension Methods

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

    See Also

    MediaBlock
    IMediaBlockInternals
    IDisposable