For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • Get started
    • Overview
    • Quickstart
  • Broadcast
    • Live stream with RTMPS
    • Live stream with SRT
    • Set up OBS for live streaming
    • Set up vMix for live streaming
    • Live stream from a mobile device
  • Manage live streams
    • Create and manage live streams
    • Handle stream disconnects
    • Monitor stream health
  • Edit and transform live stream
    • Add metadata to a live stream
    • Add live captions to a stream
    • Clip moments from a live stream
    • Simulcast to multiple platforms
    • Stream pre-recorded content as live
    • Record and archive live streams
    • Enable DVR and rewind for live streams
  • Live stream events
    • Webhooks in live stream
    • Live events
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Create a livestream
  • Start broadcasting with RTMP
  • Check captions in playback
  • Limitations and considerations
Edit and transform live stream

Add live captions to a stream

Enhance accessibility, and inclusivity by adding closed captions to RTMP live streams.
Was this page helpful?
Previous

Clip moments from a live stream

Learn how to generate instant video highlights from live streams by defining start and end times for real-time clipping.

Next
Built with

Closed captions make your livestreams more inclusive and accessible by displaying spoken audio as on-screen text in real time. With FastPix, you can add captions natively to your livestreams without needing extra tools or third-party integrations. This is especially valuable for events like lectures, news broadcasts, live shows, or sports - where accessibility and clarity matter just as much as low latency and playback quality.

Currently, FastPix supports closed captions only for RTMP-based livestreams, since RTMP pushes captions into the HLS manifest. Other protocols, such as SRT, use a different data path and do not support captions in this workflow.


Create a livestream

You can create a livestream with captions from either the FastPix Dashboard or the Live Streaming API.

When using the API, add the closedCaptions: true parameter inside your inputMediaSettings. This signals FastPix to insert caption tracks into the HLS manifest generated for playback.


Example request

1{
2 "playbackSettings": {
3 "accessPolicy": "public"
4 },
5 "inputMediaSettings": {
6 "maxResolution": "1080p",
7 "reconnectWindow": 60,
8 "mediaPolicy": "public",
9 "closedCaptions": true,
10 "metadata": {
11 "livestream_name": "fastpix_livestream"
12 }
13 }
14}

NOTE

If you don’t use the captions parameter, no caption track will be generated, and captions cannot be retroactively added after the stream has started.


Start broadcasting with RTMP

After the livestream is created, you’ll receive a dedicated RTMP ingest URL and stream key from FastPix.

Use your preferred encoder (for example, OBS Studio, Wirecast, vMix, ffmpeg) to publish your video to the RTMP endpoint.

Captions will automatically propagate into the HLS playback stream. There’s usually a short warm-up delay of about 20–30 seconds before captions start appearing in the player. This is normal and expected.


Check captions in playback

After you’ve gone live, you can test that captions are being properly rendered.

  1. Open the stream preview player inside the FastPix Dashboard. If captions are enabled, you’ll see a CC button in the player controls.
Using Google Drive link to upload
  1. Copy the playback URL (HLS) from the Dashboard or retrieve it through the API. Paste this into a compatible player.

Compatible players: Captions are supported in most modern players and frameworks, including Safari (native HLS support), hls.js, JWPlayer, Video.js, Shaka Player.

In each case, look for the Closed Captions (CC) button in the controls. Toggle it on to view captions and off to hide them.


Limitations and considerations

  • Protocol support: Closed captions are currently supported only on RTMP streams because captions are inserted into the HLS manifest. SRT streams do not support captions.
  • Latency: Captions appear with a slight delay (typically 20–30 seconds) as the pipeline stabilizes.
  • Playback environments: While most modern players handle captions, some custom players may need explicit caption track configuration.
  • Disabling captions: Once enabled in a livestream configuration, captions cannot be disabled mid-stream. You’d need to create a new livestream without closedCaptions: true.