- 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: |
create |
Output only. The creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
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
|
preprocessing |
Preprocessing configurations. |
security |
Security rule for access control. |
input |
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 | |
---|---|
top |
The number of pixels to crop from the top. The default is 0. |
bottom |
The number of pixels to crop from the bottom. The default is 0. |
left |
The number of pixels to crop from the left. The default is 0. |
right |
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 | |
---|---|
top |
The number of pixels to add to the top. The default is 0. |
bottom |
The number of pixels to add to the bottom. The default is 0. |
left |
The number of pixels to add to the left. The default is 0. |
right |
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 | |
---|---|
ip |
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 | |
---|---|
last |
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: |
video |
Properties of the video streams. |
audio |
Properties of the audio streams. |
VideoStreamProperty
Properties of the video stream.
JSON representation |
---|
{
"index": integer,
"videoFormat": {
object ( |
Fields | |
---|---|
index |
Index of this video stream. |
video |
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. |
width |
The width of the video stream in pixels. |
height |
The height of the video stream in pixels. |
frame |
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. |
audio |
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. |
channel |
The number of audio channels. |
channel |
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. |