Class MP4OutputBlock
MP4 output block. Contains video and audio encoders and a file sink. Implements the MediaBlock. Implements the IMediaBlockInternals. Implements the IDisposable.
Inherited Members
Namespace: VisioForge.Core.MediaBlocks.Sinks
Assembly: VisioForge.Core.dll
Syntax
public class MP4OutputBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals, IMediaBlockDynamicInputs
Constructors
MP4OutputBlock(string)
Initializes a new instance of the MP4OutputBlock class.
Declaration
public MP4OutputBlock(string filename)
Parameters
Type | Name | Description |
---|---|---|
string | filename | The file name. |
MP4OutputBlock(MP4SinkSettings, IH264EncoderSettings, IAACEncoderSettings)
Initializes a new instance of the MP4OutputBlock class.
Declaration
public MP4OutputBlock(MP4SinkSettings sinkSettings, IH264EncoderSettings h264settings, IAACEncoderSettings aacSettings)
Parameters
Type | Name | Description |
---|---|---|
MP4SinkSettings | sinkSettings | The settings. |
IH264EncoderSettings | h264settings | The H264 settings. |
IAACEncoderSettings | aacSettings | The AAC settings. |
MP4OutputBlock(MP4SinkSettings, IH264EncoderSettings, MP3EncoderSettings)
Initializes a new instance of the MP4OutputBlock class.
Declaration
public MP4OutputBlock(MP4SinkSettings sinkSettings, IH264EncoderSettings h264settings, MP3EncoderSettings mp3Settings)
Parameters
Type | Name | Description |
---|---|---|
MP4SinkSettings | sinkSettings | The settings. |
IH264EncoderSettings | h264settings | The H264 settings. |
MP3EncoderSettings | mp3Settings | The MP3 settings. |
MP4OutputBlock(MP4SinkSettings, IHEVCEncoderSettings, IAACEncoderSettings)
Initializes a new instance of the MP4OutputBlock class.
Declaration
public MP4OutputBlock(MP4SinkSettings sinkSettings, IHEVCEncoderSettings h264settings, IAACEncoderSettings aacSettings)
Parameters
Type | Name | Description |
---|---|---|
MP4SinkSettings | sinkSettings | The settings. |
IHEVCEncoderSettings | h264settings | The HEVC settings. |
IAACEncoderSettings | aacSettings | The AAC settings. |
MP4OutputBlock(MP4SinkSettings, IHEVCEncoderSettings, MP3EncoderSettings)
Initializes a new instance of the MP4OutputBlock class.
Declaration
public MP4OutputBlock(MP4SinkSettings sinkSettings, IHEVCEncoderSettings h264settings, MP3EncoderSettings mp3Settings)
Parameters
Type | Name | Description |
---|---|---|
MP4SinkSettings | sinkSettings | The settings. |
IHEVCEncoderSettings | h264settings | The HEVC settings. |
MP3EncoderSettings | mp3Settings | The MP3 settings. |
Properties
Input
Gets the first input.
Declaration
public override MediaBlockPad Input { get; }
Property Value
Type | Description |
---|---|
MediaBlockPad | The input. |
Overrides
Inputs
Gets the inputs.
Declaration
public override MediaBlockPad[] Inputs { get; }
Property Value
Type | Description |
---|---|
MediaBlockPad[] | The inputs. |
Overrides
Output
Gets the output.
Declaration
public override MediaBlockPad Output { get; }
Property Value
Type | Description |
---|---|
MediaBlockPad | The output. |
Overrides
Outputs
Gets the outputs.
Declaration
public override MediaBlockPad[] Outputs { get; }
Property Value
Type | Description |
---|---|
MediaBlockPad[] | The outputs. |
Overrides
Type
Gets the type.
Declaration
public override MediaBlockType Type { get; }
Property Value
Type | Description |
---|---|
MediaBlockType | The type. |
Overrides
Methods
Build()
Builds this instance.
Declaration
public override bool Build()
Returns
Type | Description |
---|---|
bool |
|
Overrides
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 |
|
Overrides
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(IH264EncoderSettings, IAACEncoderSettings)
Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.
Declaration
public static bool IsAvailable(IH264EncoderSettings h264settings, IAACEncoderSettings aacSettings)
Parameters
Type | Name | Description |
---|---|---|
IH264EncoderSettings | h264settings | The H264 settings. |
IAACEncoderSettings | aacSettings | The AAC settings. |
Returns
Type | Description |
---|---|
bool |
|
SetFilenameOrURL(string)
Sets the filename or URL.
Declaration
public void SetFilenameOrURL(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The value. |