Skip to main content
Gcore Video Streaming applies two separate account limits: one on live streams that receive input at the same moment, and one on enabled restreams. Each limit reads a single parameter, live for streams and active for restreams, so a stream or restream that exists but is not counted never takes a slot. Both parameters are returned in the stream and restream objects of the REST API, while the default limits are listed in the tariffs and technical support raises them. The two limits follow different parameters because of what Gcore can observe. A live stream is counted by activity, since Gcore Streaming controls the output. Restreams depend on the conditions of the external target platforms that receive the stream, so it is impossible to track them by activity, and the limit follows the active switch instead.

Live streams

The live stream limit is the number of streams that can be live at the same moment. A stream is live while Gcore receives its video, either pushed by an encoder or pulled by Gcore from a source URL, and the live field is true. A live stream takes one slot, and the slot is freed as soon as the stream stops being live. A stream that is created or enabled (active is true) but has no video takes no slot, so any number of streams can be created and enabled. Gcore checks the limit when a stream tries to go live, not when it is created or enabled. In the REST API, creating a stream or setting active to true is never refused because of this limit. Streams that are already live are not affected, and only the stream that tries to start over the limit is refused. The Live Streaming page of the Customer Portal shows the limit counter. To find out why a stream does not start, compare the counter with the number of streams that are live.

Live stream counting example

The table shows 8 streams, limit 3. Only the live column decides which streams take a slot, so 6 are enabled (active) but only 3 are live. Three streams are live, so the limit is reached. When Stream 3 starts receiving input, Gcore refuses it, and when Stream 8 is due to start pulling, it stays offline. Once Stream 1 stops, a slot is free and Stream 3 can go live.

Live stream behavior at the limit

What happens to a stream that tries to go live at the limit depends on how its video arrives. For a push stream, Gcore refuses the connection when the encoder starts sending video, and what the encoder sees depends on the ingest protocol. A disabled stream returns the reason code 2004 before the limit is checked, which is one of the WHIP reason codes. For a pull stream, Gcore does not start pulling the source, and no error is returned. The stream stays enabled (active is true) with the status offline (live is false). When any other live stream stops and a slot is free, Gcore starts pulling the source automatically, and no action on the stream is needed. A refused start of a push or a pull stream sends no webhook, so a missing live: true event does not show that the limit was reached. Compare the limit counter with the number of live streams instead. To free a slot, stop the encoder of a live push stream, or set active to false on a live pull stream.

Restreams

Unlike the live stream limit, the restream limit reads active, not live. A restream takes a slot whenever active is true, even when it sends nothing, while the live field only reports whether the restream is sending to the destination right now.
Creating a restream with active set to false is never limited, and disabling an active restream frees its slot at once. Renaming an active restream, or sending active: true for a restream that is already active, is accepted.

Restream counting example

The table shows 8 restreams, limit 3. Only the active column decides which restreams take a slot, so Restream 3 holds a slot while it waits for its source. Three restreams have active set to true, so the limit is reached. Enabling Restream 4 is refused, as is creating another restream with active set to true. After Restream 3 is disabled, Restream 4 can be enabled.

Restream errors

Creating a restream with active set to true and switching an inactive restream to active: true return the same response at the limit.
The text in brackets is N/limit, where N is the number of active restreams the request would produce. On an account with a limit of 3 and three active restreams, the request would make the fourth, so the text reads 4/3.

Restream into another stream

A restream can push into another stream of the same account, which turns stream A into the source of stream B. This A to B setup is not allowed because it consumes a large amount of Gcore resources for no reason. An existing A to B restream takes two live stream slots and one restream slot while both streams are live.
Stream B is treated as a new ingest, so its EXT-X-PROGRAM-DATE-TIME values are generated again from the moment the restream’s packets reach Gcore. They are not copied from stream A. When no live stream slot is free for stream B, the restream is blocked without an error. It stays active: true with live: false, stream B stays offline, and neither the restream nor stream B returns an error message. The restream keeps retrying and starts by itself within seconds after a slot is freed. With a live stream limit of 3 and two other streams live, stream A takes the last free slot, so stream B cannot go live until another stream stops.