Skip to content

Video Streaming & Transcoding

Upload any video and get HLS streams with adaptive bitrate, thumbnails, watermarks, and global delivery.

$0.005 / minute

  • HLS Streaming
  • Multi-Resolution
  • Video Merge
// Upload and transcode to HLS
const asset = await stack0.cdn.upload({
projectSlug: 'my-project',
file: videoBuffer,
filename: 'course-video.mp4',
})
const job = await stack0.cdn.transcode({
projectSlug: 'my-project',
assetId: asset.id,
outputFormat: 'hls',
variants: [
{ quality: '720p', codec: 'h264' },
{ quality: '1080p', codec: 'h264' },
],
})
const urls = await stack0.cdn.getStreamingUrls(asset.id)
HLSMP4360p-4KH.264H.265Merge

Built for production

HLS Adaptive Streaming

Automatically switch quality based on viewer bandwidth. No buffering.

optionsaccepted
{
outputFormat: 'hls',
}

Automatically switch quality based on viewer bandwidth. No buffering.

Multi-Quality Variants

Generate 360p, 480p, 720p, 1080p, 1440p, and 4K variants.

optionsaccepted
{
variants: ['720p', '1080p', '4k'],
}

Generate 360p, 480p, 720p, 1080p, 1440p, and 4K variants.

Video Merge & Compile

Combine clips, add music, create slideshows from images.

stack0.cdncreated
await stack0.cdn.createMergeJob({
inputs,
audioTrack,
})
response286 ms
{
id: "file_qcnj6",
status: "created",
createdAt: "2026-09-02T14:03:06Z",
}

Trim & Clip

Extract segments with precise start and end times.

optionsaccepted
{
trim: { start: 10, end: 60 },
}

Extract segments with precise start and end times.

Global CDN Delivery

Stream from 400+ edge locations with low latency.

optionsaccepted
{
stack0.cdn.getStreamingUrls(assetId),
}

Stream from 400+ edge locations with low latency.

Codec Support

H.264 for compatibility, H.265 (HEVC) for 4K efficiency.

optionsaccepted
{
codec: 'h264' | 'h265',
}

H.264 for compatibility, H.265 (HEVC) for 4K efficiency.

  • HLS Streaming

    Automatic transcoding to HLS with .m3u8 playlists for adaptive streaming.

  • Multi-Resolution

    Generate 360p to 4K quality variants automatically.

  • Video Merge

    Combine videos, images, and audio into compilations.

  • Watermarks

    Add image or text overlays with 9 position options.

  • Thumbnails

    Extract frames at any timestamp for previews.

  • Audio Extraction

    Extract audio tracks to MP3, AAC, or WAV.

Built for real applications

Course Platforms

Upload lectures, transcode to HLS, deliver multiple quality levels to students worldwide.

Simple, usage-based

$20/mo includes $10 of usage. Metered beyond that, at the same rate for everyone.

Transcoding

$0.005/ minute


  • HLS & MP4 output
  • Up to 4K resolution
  • Multiple quality variants
  • Watermarking included
  • Thumbnail generation
  • Global CDN delivery
  • Webhook notifications
Get Started

Frequently asked questions

Ready to build?

Get started in minutes.

Start Transcoding