# Video Streaming & Transcoding

> HLS streaming, multi-resolution transcoding, video merge, thumbnails, and watermarks. $0.005/minute.

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

[Start Transcoding](https://app.stack0.dev/)[View docs](https://www.stack0.dev/docs/sdk/video)

$0.005 / minute

- HLS Streaming
- Multi-Resolution
- Video Merge

TypeScriptPythonGocURL

Copy

```
// Upload and transcode to HLSconst 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 PlatformsUser-Generated ContentMarketing VideosInternal TrainingPhoto SlideshowsPodcast Video

### 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](https://app.stack0.dev/)

## Frequently asked questions

What video formats do you support for upload?

We support all common video formats including MP4, MOV, AVI, MKV, and WebM. Any format FFmpeg can decode will work.

How long does transcoding take?

Transcoding speed depends on video length and quality settings. Typically 2-3x real-time for 1080p. Use webhooks to get notified when complete.

What players work with HLS?

HLS works with HLS.js (web), Video.js, native Safari, iOS, Android, and most smart TVs. We provide code examples for HLS.js integration.

Can I add watermarks to videos?

Yes. Add image or text watermarks during transcoding with control over position, opacity, and size. 9 position options available.

Is video streaming separate from CDN?

Video streaming is integrated with Stack0 CDN. Upload to CDN, transcode for streaming—same SDK, same dashboard, same billing.

Do you support live streaming?

Currently we support on-demand video (VOD). Live streaming with RTMP ingest is on our roadmap.

## Ready to build?

Get started in minutes.

[Start Transcoding](https://app.stack0.dev/)

---

Source: https://www.stack0.dev/apis/video
llms.txt: https://www.stack0.dev/llms.txt
Sitemap: https://www.stack0.dev/sitemap.xml
Documentation: https://www.stack0.dev/docs
OpenAPI spec: https://www.stack0.dev/openapi.json
MCP server: https://api.stack0.dev/mcp
