Skip to main content

Adaptive Bitrate Streaming & live transcoding

Adaptive Bitrate Streaming (ABR) delivers your stream in several qualities, so every viewer gets the best picture their connection can carry. You send one high-quality stream; live transcoding makes the lower qualities in the cloud; the nanoStream Player moves between them by itself. This keeps viewers on phones, weak Wi-Fi or far-away networks playing instead of buffering.

How it works​

  1. Your encoder sends one stream, the original (also called the passthrough).
  2. Live transcoding turns it into up to three lower qualities. Each one is a transcoding profile with its own resolution, bitrate and frame rate.
  3. The original and its transcodes form a stream group with one shared group ID.
  4. The nanoStream Player loads the group, starts on a suitable quality and switches up or down as the viewer's bandwidth changes. Viewers don't see a reload; the switch happens in the background.

The list of qualities is called the ladder. A stream carries at most three extra qualities on top of the original.

note

ABR improves reach on variable networks. A single-bitrate stream without transcoding has the lowest latency but needs a stable viewer connection. Choose per use case; see Latency & latency control modes.

For a 1080p source, the Builder Hub suggests this ladder by default:

QualityResolutionVideo bitrateRole
Original (passthrough)1920×10804,500 kbpsSent by your encoder; best quality for good connections
Top transcode1280×7202,500 kbpsGood connections, a little lighter than the original
Middle854×4801,000 kbpsAverage Wi-Fi and 4G
Lowest640×360400 kbpsPoor connections keep playing

Adapt it to your content and audience:

Your situationChange
Phones on mobile dataLighter lowest quality, around 300 kbps
Weak or far-away networksLowest quality at 240p, around 200 kbps
Sport or fast motionAbout 25% more bitrate on every quality, 30 fps
Talking heads or slidesAbout 30% less bitrate
Large screensRicher top transcode, e.g. 720p at 3,000 kbps
720p source480p at 1,200 kbps, 360p at 600 kbps, 240p at 200 kbps

Two rules always apply:

  • Each profile's bitrate must be lower than the original and lower than the profile above it.
  • A profile can't be larger than the original. Transcoding never upscales.

A profile that breaks these rules is not produced: the original plays, that quality stays missing.

Encoder settings for ABR​

Clean switching needs an encoder that sends RTMP (OBS, vMix, Wirecast, ffmpeg or hardware) or SRT, with:

  • At least the size and bitrate of your top quality, for example 1080p at 4,500 kbps.
  • H.264 video, AAC audio.
  • A keyframe every 2 seconds, B-frames off, constant bitrate.

The full list is on RTMP ingest & encoder settings.

Builder Hub "Go live from your encoder" step showing the RTMP server, the stream key and the OBS settings hint
The go-live step repeats the rule: send at least your top quality, H.264 with AAC and a keyframe every 2 seconds.
info

Send ABR streams to the transcoding ingest bintu-vtrans (rtmp://bintu-vtrans.nanocosmos.de/live, or the stream-specific host the Dashboard shows). On bintu-stream, the original still plays but no transcodes are made. SRT ingest feeds the transcoder without extra settings.

Set it up​

ABR works on the free account. On a production account it must be enabled for your organisation; if it isn't, the Builder Hub reads Adaptive Bitrate Streaming is not on your account yet. and the Dashboard shows Upgrade needed under Enabled Packages. Ask your account team or get support.

Who can use it: guest, free account, or production account with ABR enabled.

AccountWhat happens
GuestWorks. The stream is a test stream on our demo account, with the qualities you pick.
Free accountWorks. The stream is a new stream on your account.
Production accountWorks when ABR is on for your organisation. If it isn't, the page reads Adaptive Bitrate Streaming is not on your account yet.

Open https://builder.nanocosmos.net and go to Build › Stream › Set up Adaptive Bitrate.

  1. Who watches, and on what? Describe your viewers in the box, for example a live casino watched mostly on phones, in Europe and Latin America. Click the needs that fit: Phones on mobile data, Weak or far-away networks, Sport or fast motion, Talking heads or slides, Large screens, best quality. Words you type switch matching needs on when you leave the box.
  2. Under Your encoder sends, choose 1080p, 720p or 480p.
  3. Suggested qualities. Check the qualities on top of your original; each shows its size, bitrate and frame rate. Swap one from its list, Remove one, Add a quality (up to three), or Suggest again. Only qualities no bigger than your source are offered.
Builder Hub Adaptive Bitrate Streaming tool with the viewer description, the 1080p source and three suggested qualities
Describe your viewers and the hub suggests the ladder; swap, remove or add qualities before you create the stream.
  1. Your stream. Choose Create a stream and click Create stream with 3 extra qualities (the number follows your choice). The new stream is tagged abr. Or choose Select existing stream and click Use this stream next to a stream that already has ABR.
  2. Go live from your encoder. Copy the RTMP server and Stream name/key into your encoder (OBS: Settings › Stream › Service: Custom) and start streaming. The badge changes from Not live yet to Live; the page checks every 5 seconds.
  3. Watch it adapt. One adaptive player plays your stream, with every quality listed beside it: Your original, then each extra quality with its size, bitrate and frame rate.

What you get: a stream with up to three extra qualities plus your original. Viewers start on the best quality their connection carries, and the player moves up or down on its own. Embed it like any other stream; see Embed the player on your website.

To see the API calls behind each step (read the qualities, create the stream with them, read the group, play it), switch on Developer mode at the top right of the page.

To try other qualities, click Start over with other qualities. The next stream you create is a new one. The page remembers your stream, so if you leave and come back it opens on the go-live step again.

The Builder Hub sets extra qualities only when it creates a stream: an existing stream without them shows No Adaptive Bitrate. Create a new stream in the hub, or add profiles to the existing stream in the Dashboard.

Play an ABR stream​

Give the player the group ID and it loads all qualities itself:

var config = {
source: {
group: {
id: 'YOUR_STREAM_GROUP_ID',
startQuality: 'medium' // optional: high, medium-high, medium, medium-low, low
}
}
};

For a secure organisation, add security: { jwtoken: '<YOUR_JWT>' } inside group. The player picks the switching rule for groups automatically; don't set startIndex or options.adaption next to group. Details are in Player configuration reference.

On the Dashboard playout page, viewers' automatic mode is labelled Auto; open the quality list under the player to pick a quality manually. In code snippets, you can set the start quality per stream.

What can go wrong​

SymptomLikely causeFix
Only the original plays, no other qualitiesEncoder sends to bintu-streamUse the bintu-vtrans ingest URL from the Dashboard, restart the encoder
One quality is missingIts bitrate is at or above the ingest bitrate, or its size is above the sourceLower the profile; keep the ladder strictly descending
Qualities drop out during the streamIngest bitrate or resolution fell below the ladderKeep ingest stable and above the top profile
Player stays on low qualityViewer bandwidth, or start quality set to lowCheck startQuality; test on a faster connection
Switching stuttersIrregular keyframesKeyframe every 2 s, B-frames off
Builder Hub: Adaptive Bitrate Streaming is not on your account yet.ABR is off for your organisationAsk your account team or contact support to switch it on
Builder Hub: No extra qualities on this account yet.The account has no extra qualities switched onClick Ask us to turn them on
Builder Hub: an existing stream shows No Adaptive BitrateThe hub sets extra qualities only when it creates a streamCreate a new stream in the hub, or add profiles in the Dashboard
Builder Hub: Waiting for your encoder. staysWrong RTMP server or stream keyCheck both; the page checks every 5 seconds
Builder Hub: the create button turns into Try againCreating the stream failed; the error is shown under the buttonRetry, or get support

If the ingest host, profiles and ingest bitrate are all correct and transcodes are still missing, contact support.

Next steps​

tip

Try it in the Builder Hub: the Adaptive Bitrate Streaming tool suggests a ladder for your audience and shows one player moving between the qualities. Start for Free