- Resource: Input
- Type
- Tier
- PreprocessingConfig
- Audio
- Crop
- Pad
- SecurityRule
- InputStreamProperty
- VideoStreamProperty
- VideoFormat
- AudioStreamProperty
- AudioFormat
- Methods
Resource: Input
Input resource represents the endpoint from which the channel ingests the input stream.
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "type": enum ( |
Fields | |
---|---|
name |
The resource name of the input, in the form of: |
createTime |
Output only. The creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
User-defined key/value metadata. An object containing a list of |
type |
Source type. |
tier |
Tier defines the maximum input specification that is accepted by the video pipeline. The billing is charged based on the tier specified here. See Pricing for more detail. The default is |
uri |
Output only. URI to push the input stream to. Its format depends on the input
|
preprocessingConfig |
Preprocessing configurations. |
securityRules |
Security rule for access control. |
inputStreamProperty |
Output only. The information for the input stream. This field will be present only when this input receives the input stream. |
Type
The type of the input.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Input type is not specified. |
RTMP_PUSH |
Input will take an rtmp input stream. |
SRT_PUSH |
Input will take an srt (Secure Reliable Transport) input stream. |
Tier
Tier of the input specification.
Enums | |
---|---|
TIER_UNSPECIFIED |
Tier is not specified. |
SD |
Resolution < 1280x720. Bitrate <= 6 Mbps. FPS <= 60. |
HD |
Resolution <= 1920x1080. Bitrate <= 25 Mbps. FPS <= 60. |
UHD |
Resolution <= 4096x2160. Not supported yet. |
PreprocessingConfig
Preprocessing configurations.
JSON representation |
---|
{ "audio": { object ( |
Fields | |
---|---|
audio |
Audio preprocessing configuration. |
crop |
Specify the video cropping configuration. |
pad |
Specify the video pad filter configuration. |
Audio
Audio preprocessing configuration.
JSON representation |
---|
{ "lufs": number } |
Fields | |
---|---|
lufs |
Specify audio loudness normalization in loudness units relative to full scale (LUFS). Enter a value between -24 and 0 according to the following:
|
Crop
Video cropping configuration for the input video. The cropped input video is scaled to match the output resolution.
JSON representation |
---|
{ "topPixels": integer, "bottomPixels": integer, "leftPixels": integer, "rightPixels": integer } |
Fields | |
---|---|
topPixels |
The number of pixels to crop from the top. The default is 0. |
bottomPixels |
The number of pixels to crop from the bottom. The default is 0. |
leftPixels |
The number of pixels to crop from the left. The default is 0. |
rightPixels |
The number of pixels to crop from the right. The default is 0. |
Pad
Pad filter configuration for the input video. The padded input video is scaled after padding with black to match the output resolution.
JSON representation |
---|
{ "topPixels": integer, "bottomPixels": integer, "leftPixels": integer, "rightPixels": integer } |
Fields | |
---|---|
topPixels |
The number of pixels to add to the top. The default is 0. |
bottomPixels |
The number of pixels to add to the bottom. The default is 0. |
leftPixels |
The number of pixels to add to the left. The default is 0. |
rightPixels |
The number of pixels to add to the right. The default is 0. |
SecurityRule
Security rules for access control. Each field represents one security rule. Only when the source of the input stream satisfies all the fields, this input stream can be accepted.
JSON representation |
---|
{ "ipRanges": [ string ] } |
Fields | |
---|---|
ipRanges[] |
At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, |
InputStreamProperty
Properties of the input stream.
JSON representation |
---|
{ "lastEstablishTime": string, "videoStreams": [ { object ( |
Fields | |
---|---|
lastEstablishTime |
The time that the current input stream is accepted and the connection is established. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
videoStreams[] |
Properties of the video streams. |
audioStreams[] |
Properties of the audio streams. |
VideoStreamProperty
Properties of the video stream.
JSON representation |
---|
{
"index": integer,
"videoFormat": {
object ( |
Fields | |
---|---|
index |
Index of this video stream. |
videoFormat |
Properties of the video format. |
VideoFormat
Properties of the video format.
JSON representation |
---|
{ "codec": string, "widthPixels": integer, "heightPixels": integer, "frameRate": number } |
Fields | |
---|---|
codec |
Video codec used in this video stream. |
widthPixels |
The width of the video stream in pixels. |
heightPixels |
The height of the video stream in pixels. |
frameRate |
The frame rate of the input video stream. |
AudioStreamProperty
Properties of the audio stream.
JSON representation |
---|
{
"index": integer,
"audioFormat": {
object ( |
Fields | |
---|---|
index |
Index of this audio stream. |
audioFormat |
Properties of the audio format. |
AudioFormat
Properties of the audio format.
JSON representation |
---|
{ "codec": string, "channelCount": integer, "channelLayout": [ string ] } |
Fields | |
---|---|
codec |
Audio codec used in this audio stream. |
channelCount |
The number of audio channels. |
channelLayout[] |
A list of channel names specifying the layout of the audio channels. |
Methods |
|
---|---|
|
Creates an input with the provided unique ID in the specified region. |
|
Deletes the specified input. |
|
Returns the specified input. |
|
Returns a list of all inputs in the specified region. |
|
Updates the specified input. |