Live Stream API uses quotas and system limits to maintain fair resource
allocation, prevent service overloads, and help you manage resource use.

Quotas and system limits are similar but differ in the following ways:

- *Quotas* have default values, but you can typically request adjustments.
- *System limits* are fixed values that can't be changed.

Google Cloud uses quotas to help maintain fairness and reduce
spikes in resource use and availability. A quota restricts how much of a
Google Cloud resource your Google Cloud project can use. Quotas
apply to a range of resource types, including hardware, software, and network
components. For example, quotas can restrict the number of API calls to a
service, the number of load balancers used concurrently by your project, or the
number of projects that you can create. Quotas protect the community of
Google Cloud users by preventing the overloading of services. Quotas also
help you to manage your own Google Cloud resources.

The Cloud Quotas system does the following:

- Monitors your consumption of Google Cloud products and services
- Restricts your consumption of those resources
- Provides a way to [request changes to the quota value](https://docs.cloud.google.com/docs/quotas/help/request_increase) and [automate quota adjustments](https://docs.cloud.google.com/docs/quotas/quota-adjuster.md.txt)

In most cases, when you attempt to consume more of a resource than its quota
allows, the system blocks access to the resource, and the task that
you're trying to perform fails.

Quotas generally apply at the Google Cloud project
level. Your use of a resource in one project doesn't affect
your available quota in another project. Within a Google Cloud project, quotas
are shared across all applications and IP addresses.


For more information, see the
[Cloud Quotas overview](https://docs.cloud.google.com/docs/quotas/overview.md.txt).


There are also *system limits* on Live Stream API resources.
System limits can't be changed.

## General limits

- Live stream sessions last for 24 hours after you start a channel. After 24
  hours in any [`StreamingState`](https://docs.cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels.md.txt#streamingstate) other than `STOPPED` or `STOPPING`, the channel may be restarted.

- A mux stream with a `ts` container must contain exactly one audio stream and up
  to one video stream.

- Only HLS manifests can contain mux streams with the `ts` container. Manifests
  cannot contain a mixture of `ts` and `fmp4` mux streams.

- Input with H265 codec is only supported for SRT inputs.

## Allocation quotas

The following regional quotas don't reset over time and instead are released
when you release the resource:

| Quotas per region | Value |
|---|---|
| Channels | 10^1^ |
| Inputs | 20 |
| UHD output streams (H264) | 5 |
| HD output streams (H264) | 20 |
| SD output streams (H264) | 40 |
| H265 UHD output streams | 2 |
| H265 HD output streams | 3 |
| H265 SD output streams | 3 |
| H264 distribution streams | 4 |
| H265 distribution streams | 4 |
| Assets | 10 |
| Auto-generated transcription streams | 25 |

^1^Channel quota applies to running channels. You can only run up to
10 channels at a time per region.

## Rate quotas

The following quotas apply to Live Stream API requests:

| Quota | Value |
|---|---|
| API requests per minute | 6000 |
| Operation requests per minute per region | 1200 |
| Get requests per minute per region | 1200 |
| List requests per minute per region | 300 |
| Mutation requests per minute per region | 300 |

These quotas apply to each Google Cloud project and are shared across all
applications and IP addresses using that project.

## Input limits

Input streams must follow the limits provided below:

| Tier | Resolution | Bitrate | FPS |
|---|---|---|---|
| SD | \<720p | \<=6 Mbps | \<=60 |
| HD | \<=1080p | \<=25 Mbps | \<=60 |
| UHD | \<=2160p | \<=50 Mbps | \<=60 |

## Output limits

| Tier | Resolution | Bitrate | FPS |
|---|---|---|---|
| SD | \<720p | \<=3 Mbps | \<=60 |
| HD | \<=1080p | \<=15 Mbps | \<=60 |
| UHD | \<=2160p | \<=25 Mbps | \<=60 |

## Per-channel resource limits

The following limits apply to each individual channel:

| Resource per channel | Value |
|---|---|
| Events^1^ | 1000 |
| Input attachments | 10 |
| Manifests | 10 |
| HD video output streams | 3 |
| UHD video output streams | 2 |
| Total video output streams | 10 |
| Distribution streams | 4 |
| Distributions | 10 |
| Audio output streams | 20 |
| Sprite sheet settings | 3 |

^1^ Once the limit is reached, you must delete the oldest events to make
room for new events.

## Quota increases

If you want to increase any of your quotas for Live Stream API, you can
use the Google Cloud console to request a quota increase. For more information, see
[Request a quota adjustment](https://docs.cloud.google.com/docs/quotas/help/request_increase).