Flow source metadata: describe - AWS Elemental MediaConnect

Flow source metadata: describe

The DescribeFlowSourceMetadata API is used to view information about the flow's source transport stream and programs. This API displays status messages about the flow's source as well as details about the program's video, audio, and other data.

The following sections contain details of the information provided by DescribeFlowSourceMetadata.

Messages

The messages section of the DescribeFlowSourceMetadata response can contain status codes with more information about the transport stream. If MediaConnect detects an issue or cannot retrieve the source stream metadata, an associated status code and message will be displayed.

Programs

The programs section of the DescribeFlowSourceMetadata response contains information about each program in the transport stream.

Field Details
ProgramNumber The program number of this program.
ProgramPid The program Packet Identifier (PID).
PcrPid The Program Clock Reference (PCR) PID of this program.
ProgramName The name of this program.
Streams The nested sections contain info about the video, audio, and data stream types.

Streams

The streams section of the DescribeFlowSourceMetadata response contains information about the video, audio, and data streams of each program. The streams section is found within the programs section of the response.

Field Details
StreamType The type of content that this stream contains. This value can be video, audio, data, or unknown.
Codec The codec of the stream. This value will vary depending on the type of stream. For example, a video stream type might display a H264 value while an audio stream type displays AAC.
Pid The Packet Identifier (PID) of the stream.

URI

/v1/flows/flowArn/source-metadata

HTTP methods

GET

Operation ID: DescribeFlowSourceMetadata

Path parameters
NameTypeRequiredDescription
flowArnStringTrue

The Amazon Resource Name (ARN) of the flow.

Responses
Status codeResponse modelDescription
200DescribeFlowSourceMetadataResponse

MediaConnect returned the flow details successfully.

400ResponseError

The request that you submitted is not valid.

403ResponseError

You don't have the required permissions to perform this operation.

404ResponseError

MediaConnect did not find the resource that you specified in the request.

429ResponseError

You have exceeded the service request rate limit for your MediaConnect account.

500ResponseError

MediaConnect can't fulfill your request because it encountered an unexpected condition.

503ResponseError

MediaConnect is currently unavailable. Try again later.

Schemas

Response bodies

{ "flowArn": "string", "messages": [ { "code": "string", "resourceName": "string", "message": "string" } ], "timestamp": "string", "transportMediaInfo": { "programs": [ { "programName": "string", "programPid": integer, "streams": [ { "streamType": "string", "codec": "string", "pid": integer } ], "programNumber": integer, "pcrPid": integer } ] } }
{ "message": "string" }

Properties

DescribeFlowSourceMetadataResponse

The result of a successful DescribeFlowSourceMetadata request.

PropertyTypeRequiredDescription
flowArn

string

True

The ARN of the flow that DescribeFlowSourceMetadata was performed on.

messages

Array of type MessageDetail

True

Provides a status code and message regarding issues found with the flow source metadata.

timestamp

string

Format: date-time

True

The timestamp of the most recent change in metadata for this flow’s source.

transportMediaInfo

TransportMediaInfo

False

MessageDetail

PropertyTypeRequiredDescription
code

string

True

The error code.

message

string

True

The specific error message that MediaConnect returns to help you understand the reason that the request did not succeed.

resourceName

string

False

The name of the resource.

ResponseError

An exception raised by MediaConnect when you submit a request that cannot be completed. For more information, see the error message and documentation for the operation.

PropertyTypeRequiredDescription
message

string

True

The specific error message that MediaConnect returns to help you understand the reason that the request did not succeed.

TransportMediaInfo

The metadata of the transport stream in the current flow's source.

PropertyTypeRequiredDescription
programs

Array of type TransportStreamProgram

True

The list of transport stream programs in the current flow's source.

TransportStream

The metadata of an elementary transport stream.

PropertyTypeRequiredDescription
codec

string

False

The codec used by the stream.

pid

integer

True

The Packet ID (PID) as it is reported in the Program Map Table.

streamType

string

True

The Stream Type as it is reported in the Program Map Table.

TransportStreamProgram

The metadata of a single transport stream program.

PropertyTypeRequiredDescription
pcrPid

integer

True

The Program Clock Reference (PCR) Packet ID (PID) as it is reported in the Program Association Table.

programName

string

False

The program name as it is reported in the Program Association Table.

programNumber

integer

True

The program number as it is reported in the Program Association Table.

programPid

integer

True

The program Packet ID (PID) as it is reported in the Program Association Table.

streams

Array of type TransportStream

True

The list of elementary transport streams in the program. The list includes video, audio, and data streams.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

DescribeFlowSourceMetadata