- 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 ( |
name
string
The resource name of the input, in the form of: projects/{project}/locations/{location}/inputs/{inputId}
.
createTime
string (
Timestamp
format)
Output only. The creation time.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
updateTime
string (
Timestamp
format)
Output only. The update time.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
labels
map (key: string, value: string)
User-defined key/value metadata.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
type
enum (
Type
)
Source type.
tier
uri
string
Output only. URI to push the input stream to. Its format depends on the input type
, for example:
-
RTMP_PUSH:rtmp://1.2.3.4/live/{STREAM-ID} -
SRT_PUSH:srt://1.2.3.4:4201?streamid={STREAM-ID}
preprocessingConfig
object (
PreprocessingConfig
)
Preprocessing configurations.
securityRules
object (
SecurityRule
)
Security rule for access control.
inputStreamProperty
object (
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. Bitrate <= 50 Mbps. FPS <= 60. |
SD_H265
|
Resolution <= 1280x720. Bitrate <= 6 Mbps. FPS <= 60. H265 codec. |
HD_H265
|
Resolution <= 1920x1080. Bitrate <= 25 Mbps. FPS <= 60. H265 codec. |
UHD_H265
|
Resolution <= 4096x2160. Bitrate <= 50 Mbps. FPS <= 60. H265 codec. |
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 } |
lufs
number
Specify audio loudness normalization in loudness units relative to full scale (LUFS). Enter a value between -24 and 0 according to the following:
- -24 is the Advanced Television Systems Committee (ATSC A/85)
- -23 is the EU R128 broadcast standard
- -19 is the prior standard for online mono audio
- -18 is the ReplayGain standard
- -16 is the prior standard for stereo audio
- -14 is the new online audio standard recommended by Spotify, as well as Amazon Echo
- 0 disables normalization. The default is 0.
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. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. 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. |
|
Preview the streaming content of the specified input. |

