Vajracast turns a broadcast MPEG-TS feed received over SRT or UDP into adaptive HLS for web and OTT delivery. Alongside the video renditions, it can read SCTE-35 cues and publish HLS ad markers, and map source audio PIDs to selectable language tracks. One contribution feed carries the programme, its languages and its ad-break signaling into the HLS workflow.

SCTE-35 to HLS ad markers

Enable ad markers on the required HLS output and select the SCTE-35 PID to observe. Vajracast parses compatible splice_insert and time_signal segmentation cues, then associates the observed events with the HLS segment timeline using EXT-X-PROGRAM-DATE-TIME.

Choose the marker family expected by the receiving player or ad-insertion system:

Marker familyHLS signaling
DATERANGEEXT-X-DATERANGE, carrying the original SCTE-35 payload in SCTE35-OUT and, when a return cue is available, SCTE35-IN
CUEEXT-X-CUE-OUT, EXT-X-CUE-OUT-CONT and EXT-X-CUE-IN for break start, continuation and return
Additional dialectsEnhanced cues with EXT-OATCLS-SCTE35, EXT-X-SPLICEPOINT-SCTE35, or combined marker families for mixed receiver requirements

Break signaling retains event identity and available duration information. DATERANGE can announce a planned duration and close with an end date and actual duration. Continuation markers keep a running break visible to a viewer joining mid-break; cancelled events are removed from the active cue set.

This provides the signaling used by compatible downstream SSAI and advertising workflows. Ad selection and replacement are performed by the receiving ad-insertion system. Marker placement needs a usable programme-date-time anchor; cues scheduled against an unavailable programme clock are not placed at their arrival time. Qualify the source cue type and marker dialect with the actual receiver.

Audio PID mapping to multiple HLS languages

A single SRT or UDP transport stream can contain several audio PIDs. Select the source audio tracks, map or reorder them in the processing chain, and preserve or assign their language metadata before HLS publication. The resulting HLS presentation offers the configured languages to the viewer, with up to four stereo audio tracks in the multilingual workflow.

Illustrative mapping from one contribution feed:

Source audio PIDProgramme trackHLS language choice
0x101French commentaryFrench
0x102English commentaryEnglish
0x103Spanish commentarySpanish

These PID values are examples; use the actual programme map from the incoming stream. Language choices come from the supplied audio tracks and their configured mapping. Check channel layout, codec, labels, default selection and audio/video synchronization in the final player. See audio matrix routing for source-channel mapping and adaptation.

Adaptive video, selectable audio and ad signaling together

Generate up to four adaptive video resolutions using hardware-accelerated transcoding, while keeping the configured audio languages available to the player and carrying the supported SCTE-35 events into the HLS playlists. This connects broadcast contribution to multilingual OTT, Web TV and linear-channel distribution from the same source.

HLS input to SRT output

An HLS input and an HLS output serve different workflows. To receive an m3u8 source and deliver it to a broadcast receiver, see the HLS to SRT conversion guide. This page explains HLS output for web delivery.

What is HLS?

HLS (HTTP Live Streaming) is an adaptive bitrate streaming protocol developed by Apple. It works by breaking a continuous video stream into short segments (typically 2-6 seconds each) and serving them over standard HTTP. A manifest file (.m3u8) tells the player which segments are available and at what quality levels. The player downloads segments sequentially, switching between quality tiers based on the viewer’s network conditions.

HLS has become the dominant protocol for video delivery to end users. It works in every modern web browser, on every mobile platform, and behind every CDN. When you watch live video on a website or mobile app, you are almost certainly watching HLS.

HLS in the Vajracast Architecture

Vajracast supports HLS as an output protocol. This means you can receive streams via SRT, RTMP, or any supported ingest protocol, and distribute them as HLS for web playback. The architecture follows the standard Vajracast three-stage flow:

  1. Ingest: receive via SRT, RTMP, RTSP, HTTP/TS, or UDP
  2. Process: optional transcoding for adaptive bitrate ladder (hardware-accelerated with NVENC/QSV/VAAPI)
  3. Redistribute: HLS output with configurable segments, served via Vajracast’s built-in HTTP server

The HLS output includes a built-in web player with a live latency indicator, so you can verify playback quality without any external tools.

Ingest MPEG-TS over UDP or SRT with up to four stereo audio tracks. Automatically generate adaptive HLS in four video resolutions using hardware-accelerated transcoding, preserving each audio track as a selectable language option. SCTE-35 cues from the incoming feed are converted into ad-break markers and inserted into the HLS playlists in real time.

Configuring HLS Output

Basic HLS Output

Adding HLS output to a Vajracast route:

  1. Create or select an existing route with an active input
  2. Add an output and select the HLS protocol
  3. Configure segment duration and playlist length
  4. The HLS endpoint becomes available immediately at the generated URL

Segment Duration

The segment duration controls the trade-off between latency and reliability:

Segment DurationLatency ImpactReliabilityUse Case
2 secondsLower (~6-8s total)More sensitive to network jitterLow-latency events
4 secondsModerate (~12-16s total)Good balanceGeneral live streaming
6 secondsHigher (~18-24s total)Most reliableUnstable networks, CDN caching

The total latency is approximately 3x the segment duration (the player typically buffers 2-3 segments before starting playback) plus any encoding and network delay.

Playlist Length

The playlist length determines how many segments are listed in the .m3u8 manifest at any time. A longer playlist gives viewers more buffer to recover from network interruptions, but uses more disk space.

  • Minimum recommended: 3 segments
  • Standard: 5-10 segments
  • DVR-style: 30+ segments (allows viewers to rewind)

HLS Output URL Structure

Vajracast generates HLS outputs accessible at:

http://your-server:port/hls/[route-id]/index.m3u8

This URL can be handed directly to any HLS-compatible player (Safari, hls.js, Video.js, VLC) or used as an origin URL for a CDN.

Adaptive Bitrate Streaming

Adaptive bitrate (ABR) is the core value proposition of HLS. Instead of serving a single quality, you encode multiple renditions of the same stream at different resolutions and bitrates. The player automatically selects the best rendition based on available bandwidth.

Building an ABR Ladder

A typical ABR ladder for live streaming:

RenditionResolutionBitrateCodecProfile
1080p1920x10806,000 kbpsH.264High
720p1280x7203,000 kbpsH.264Main
480p854x4801,500 kbpsH.264Main
360p640x360800 kbpsH.264Baseline
Audio-only—128 kbpsAACLC

Transcoding for ABR in Vajracast

Creating multiple renditions requires transcoding. Vajracast supports hardware-accelerated transcoding via NVIDIA NVENC, Intel QSV, and VAAPI, which means you can generate a full ABR ladder without saturating your CPU:

  1. Set your route input to the full-quality source (e.g., 1080p SRT ingest)
  2. Configure an adaptive HLS output with four video renditions at the required resolutions and bitrates
  3. Vajracast uses FFmpeg with hardware acceleration to generate each rendition
  4. A master playlist references all renditions, and the player selects automatically

For passthrough use cases (single quality, no transcoding), HLS output adds minimal latency and near-zero CPU usage. The stream is simply repackaged from MPEG-TS into HLS segments.

HEVC/H.265 Support

For higher efficiency, Vajracast also supports HEVC (H.265) encoding via hardware acceleration. HEVC delivers the same quality at roughly half the bitrate of H.264, reducing bandwidth costs for your CDN. However, HEVC playback support in browsers is still limited (Safari supports it natively; Chrome and Firefox require specific conditions). For maximum compatibility, use H.264 for your ABR ladder and consider HEVC only for controlled playback environments (set-top boxes, native apps).

CDN Integration

HLS is designed for CDN delivery. The segments are standard HTTP files that CDN edge servers cache and distribute efficiently.

Origin Configuration

Vajracast acts as the origin server for your HLS stream. The CDN pulls segments from Vajracast and caches them at edge locations worldwide:

Origin: http://vajracast-server:port/hls/[route-id]/index.m3u8
         |
         v
CDN Edge (cached) --> Viewer A
CDN Edge (cached) --> Viewer B
CDN Edge (cached) --> Viewer C

CDN Compatibility

Vajracast’s HLS output is compatible with all major CDNs:

  • Cloudflare Stream / R2: pull from origin, global edge caching
  • AWS CloudFront: configure origin with TTL matching segment duration
  • Akamai: standard HLS origin pull configuration
  • Fastly: real-time caching with instant purge for segment updates
  • Bunny CDN: cost-effective option for smaller deployments

Cache Configuration

For live HLS, configure your CDN cache TTL to match your segment duration. If your segments are 4 seconds, set the cache TTL to 4 seconds. This ensures the CDN always serves fresh segments while maximizing cache efficiency.

The .m3u8 manifest should have a shorter TTL (1-2 seconds) so that viewers discover new segments promptly.

Live Viewer Count

Vajracast’s HLS output includes built-in viewer counting. Since the HLS server runs inside Vajracast, it can track the number of active manifest requests and report an approximate live viewer count in the dashboard. This is useful for monitoring audience size without relying on CDN analytics (which typically have a delay).

Note that when using a CDN, the viewer count in Vajracast reflects CDN edge requests to the origin, not individual end-user viewers. For accurate end-user counts with a CDN, use the CDN’s own analytics.

Low-Latency HLS (LL-HLS)

Standard HLS has an inherent latency of 10-30 seconds due to segment buffering. Apple’s Low-Latency HLS (LL-HLS) extension reduces this to 2-5 seconds by:

  • Using partial segments (sub-second chunks pushed via HTTP/2)
  • Preloading hints that tell the player about upcoming segments
  • Blocking playlist requests until new segments are available

LL-HLS is well-suited for interactive use cases (live auctions, sports with real-time engagement). For standard broadcast where 10-15 seconds of latency is acceptable, regular HLS is simpler and more reliable.

HLS vs SRT: Different Jobs

HLS and SRT serve different roles in a streaming architecture:

SRTHLS
PurposePoint-to-point transport (contribution)One-to-many delivery (distribution)
Latency20ms - 4s6s - 30s
ViewersOne per connectionUnlimited via CDN
EncryptionAES-256 nativeHTTPS (TLS)
Error correctionARQ retransmissionPlayer rebuffering

SRT moves your stream from the source to the gateway. HLS delivers it from the gateway to your audience. Vajracast handles both ends of this pipeline.

Next Steps

Distribute live broadcast from the cloud

Managed cloud platform with dedicated servers, N+1 failover, hardware transcoding, and global delivery. Free for 30 days.

Start free trial See pricing

30 days free · No credit card · Direct access to the dev team