Skip to main content

Stream groups

A stream group bundles several related streams under one ID. The most common group is an ABR stream: your original plus its transcoded qualities. Because the player, the API and the Dashboard can all address the whole group by one ID, you don't need to track each quality yourself.

Anatomy of a group​

PartWhat it is
Group IDA UUID shared by all members, returned as streamgroup in the API. The player's source.group.id takes it.
Passthrough (index 0)The stream your encoder publishes to. It carries your original quality and is the only member with its own ingest.
Transcodes (index 1–3)Members made by live transcoding, each with its own stream name and transcoding profile (resolution, bitrate, frame rate).

Each member has its own stream name (XXXXX-YYYYY). Your encoder only ever publishes to the passthrough's stream name; the transcodes are filled by the platform.

A stream without transcodes is a single stream: one member, no extra qualities.

note

Ingest and playout names can differ. For playback, always use the playout name (playout.h5live[0].rtmp.streamname) or, better, the group ID. Never put the ingest stream name into a player config.

Create a stream group​

You create a group by adding transcoding profiles to a stream:

  • Builder Hub: the Adaptive Bitrate Streaming tool creates a group with up to three extra qualities.
  • nanoStream Dashboard: add transcoding profiles when you create the stream, or later with the add-profile button on a single stream.
  • nanoStream REST API: pass transcodes when you create the stream.

All three are described step by step on Adaptive Bitrate Streaming & live transcoding. Groups need the transcoding ingest bintu-vtrans; see Ingest overview.

VideoConfigure stream groups for optimized live streaming

Find your group in the Dashboard​

The stream overview shows what kind of stream you have:

Chip under the stream overview headerMeaning
Single StreamNo transcoding profiles
Streamgroup (n Playouts)A group with n members

In a group, the Adaptive Bitrate (ABR) Stream Overview section has one tab per member: the passthrough first, then each transcode. Members created in the Dashboard get descriptive tags automatically: Passthrough, 1. Transcode, 2. Transcode, and so on. Streams created with the API don't get these tags.

Read a group with the API​

The nanoStream REST API (also called the bintu API) returns the whole group from any member:

curl https://bintu.nanostream.cloud/stream/STREAM_ID/group \
-H 'x-bintu-apikey: YOUR_BINTU_API_KEY'

Read these fields:

FieldSingle streamStream group
playout.h5liveOne entryOne entry per member (original + transcodes)
ingest.rtmp.urlbintu-stream or bintu-vtrans hostbintu-vtrans host
streamgroupThe stream's own IDThe shared group ID, the same as the id of the stream you created

Once the group is live, each playout.h5live entry carries its stream name and its resolution, bitrate and frame rate. In the stream info (GET /stream/STREAM_ID), each member also has an index (0 = passthrough) and its tags.

A bintu-vtrans ingest URL alone doesn't prove the stream is a group: single streams with Live Processing also use it. Count the playout.h5live entries.

Play a group​

Pass the group ID to the nanoStream Player. It resolves the members from the API and handles ABR switching:

var config = {
source: {
group: {
id: 'YOUR_STREAM_GROUP_ID',
security: { jwtoken: '<YOUR_JWT>' }, // only for secure organisations
startQuality: 'medium' // optional
}
}
};

apiurl (default https://bintu.nanocosmos.de) and startQuality are optional. For the player embed, use the URL parameters group.id, group.security.jwtoken and group.startQuality.

Start quality​

startQuality picks the first quality without you knowing how many members the group has. Index 0 is the highest quality:

Membershighmedium-highmediummedium-lowlow
200111
301112
401223

An unknown value falls back to low. More options are in Player configuration reference.

Working with groups​

Live Processing is set per member. Recording, replay, thumbnails and motion clips are switched on for each stream of the group. In the Dashboard, Sync settings across profiles applies the same settings to all members in one step; with the API, you make one call per member. Use the same replay duration on all members so ABR replay works. See Live Processing.

Restreaming uses the last member. A push URL for a group must be set on the last transcode, not on the passthrough. See Restream.

Tags are per stream. In a group, edit tags in the ABR Stream Overview section. See Stream tags & metadata.

Backup feeds are two groups. For A/B failover, publish the same content to two separate groups on the A/B ingest hosts and let the player switch between them. See Ingest overview.

What can go wrong​

SymptomLikely causeFix
Group has only one qualityEncoder sends to bintu-stream, or profiles above the ingest bitrateSee ABR troubleshooting
Player plays nothingIngest stream name used for playbackUse the group ID or the playout name
Secure group doesn't playToken missing or set on the wrong keyPut the JWT in source.group.security.jwtoken (URL: group.security.jwtoken)
Recording only on one qualityLive Processing enabled on one member onlyUse Sync settings across profiles or enable it per member
Restream doesn't startPush URL set on the passthroughSet it on the last transcode

Next steps​