AVBlocks for .NET
1.13
Audio and Video Software Development Kit
|
An input or output point of the Transcoder. More...
Static Public Member Functions | |
static MediaSocket | FromMediaInfo (MediaInfo mediaInfo) |
Creates a media socket from a MediaInfo object. More... | |
static MediaSocket | FromPreset (string preset) |
Creates a media socket from an AVBlocks Preset. More... | |
Properties | |
string | File [get, set] |
The file associated with the media socket. More... | |
System.IO.Stream | Stream [get, set] |
The user stream associated with the media socket. More... | |
StreamType | StreamType [get, set] |
Specifies explicitly the format of the associated MediaSocket.File or MediaSocket.Stream. More... | |
IDictionary< string, object > | Params [get, set] |
A collection of socket parameters. More... | |
IList< MediaPin > | Pins [get] |
A modifiable collection with all the pins (elementary streams) that are defined for this socket. More... | |
double | TimePosition [get, set] |
The time position specifies the position within file/stream. More... | |
Metadata | Metadata [get, set] |
The socket metadata. More... | |
An input or output point of the Transcoder.
A MediaSocket object describes either a container (WAV, AVI, MP4, etc.) with one or more streams or simply an elementary stream (MP3, M2V, etc.)
When MediaSocket describes a container the child collection of media pins can contain one or more items (for each contained stream). The socket stream type designates the container type.
When MediaSocket describes an elementary stream the child collection of media pins contains a single item which is the elementary stream itself. The socket stream type is the same as the pin stream type.
|
static |
Creates a media socket from a MediaInfo object.
mediaInfo | A MediaInfo object with loaded audio/video information. This object is not needed once this method returns. |
This method is meant to help in setting correctly the inputs of the Transcoder.
The intended usage is as follows:
Use MediaInfo to load information for a file or user stream.
Create a media socket from the MediaInfo object (MediaSocket.FromMediaInfo(mediaInfo)
).
Transcoder.Inputs.Add(socket)
).
|
static |
Creates a media socket from an AVBlocks Preset.
preset | A constant from the Preset enum. |
This method is meant to help in setting correctly the outputs of the Transcoder.
. The intended usage is as follows:
Create a media socket from a Preset (MediaSocket.FromPreset(preset)
).
Transcoder.Outputs.Add(socket)
).
|
getset |
The file associated with the media socket.
The default value is null.
|
getset |
|
get |
A modifiable collection with all the pins (elementary streams) that are defined for this socket.
The default value of this property is an empty collection which can be modified but it cannot be replaced.
|
getset |
The user stream associated with the media socket.
The default value of this property is null.
This is an alternative to the File property. When both a file and a user stream are associated with a socket the Transcoder prefers the user stream.
|
getset |
Specifies explicitly the format of the associated MediaSocket.File or MediaSocket.Stream.
The default value of this property is StreamType.Unknown.
|
getset |
The time position specifies the position within file/stream.
This property can be used on an input socket to start reading / decoding from a specific point in time. The transcoder tries to seek in the input socket to the time position before the transcoding operation starts.