---
layout: article
title: Videos
description: Stream video and audio with Appwrite Videos. Turn files in Storage into adaptive HLS, DASH, and CMAF streams with encoding profiles, captions, and scrubbing thumbnails.
---

Appwrite **Videos** turns video and audio files in [Storage](/docs/products/storage) into adaptive streams. You create a video from a file that is already in a bucket, encode it into a ladder of renditions, and hand the master manifest URL to any HLS or DASH player.

The source file stays in its bucket, untouched. Each video has its own [permissions](/docs/products/videos/permissions), so who can watch a stream is separate from who can download the file.

You manage videos under **Videos** in your project, and encoding profiles under **Videos** > **Encoding profiles**.

![Video page in the Console with the player paused on a frame of the video and its English caption on screen](/images/docs/videos/video-overview.avif)

# Why stream instead of serving the file

You could put an MP4 in Storage and point a `<video>` tag at it. That works for short clips, but the viewer downloads one large file at one quality, whatever their connection. Streaming fixes this:

- **Faster start**: The player fetches a small manifest and a few seconds of video, not the whole file.
- **Fewer stalls**: The player drops to a lower quality when the connection slows, instead of pausing to buffer.
- **Better quality where possible**: On a fast connection, viewers get your sharpest rendition.
- **Less wasted bandwidth**: Viewers who stop after a minute only downloaded a minute.

Use Videos for anything longer than a short loop, or anything watched on mobile networks: courses, product demos, user uploads, recorded talks, and podcasts.

# How it works

A video is built from a few resources:

1. **Video**: Points at a source file in a Storage bucket and holds the media metadata probed from it, such as duration, resolution, and codecs. See [Videos](/docs/products/videos/videos).
2. **Profile**: A reusable encoding target with a resolution, video and audio bitrate, and codec. You create profiles once per project, before you encode. See [Encoding profiles](/docs/products/videos/profiles).
3. **Rendition**: One encode of a video against one profile, packaged for one output. Players switch between renditions as bandwidth changes. See [Renditions](/docs/products/videos/renditions).
4. **Output**: The streaming format a rendition is packaged in: **HLS**, **DASH**, or **CMAF**. Each output has a master manifest that players load first. See [Outputs](/docs/products/videos/outputs).
5. **Captions and timeline**: Text tracks listed in the manifest, and scrubbing thumbnails generated from the source. See [Captions](/docs/products/videos/captions) and [Timeline](/docs/products/videos/timeline).

```text
Storage file ──> Video ──> Renditions (profile × output) ──> Master manifest ──> Player
                   ├──> Captions
                   └──> Timeline (sprites + WebVTT)
```

# The API at a glance

Everything the Console does is available from a [server SDK](/docs/sdks#server) with an API key. Create your [encoding profiles](/docs/products/videos/profiles#create-a-profile) once per project with `project.createVideoProfile()`. After that, a typical integration makes four calls per video:

| Step | Call | Notes |
|------|------|-------|
| 1. Upload the source | `storage.createFile()` | Any bucket. The file can stay private |
| 2. Create the video | `videos.create({ videoId, bucketId, fileId, permissions })` | Set who can watch with [permissions](/docs/products/videos/permissions). Queues the timeline. Metadata fills in shortly after |
| 3. Encode | `videos.createRendition({ videoId, profileId, output })` | Once per profile. Encoding runs in the background |
| 4. Play | Master manifest URL | Build it from the video ID. See [Outputs](/docs/products/videos/outputs#master-manifest-urls) |

To run steps 2 and 3 for every upload automatically, see [Automate with Functions](/docs/products/videos/videos#automate-with-functions).

# Get started

Upload a file, encode a ladder, and play the stream in a browser.

[Quick start](/docs/products/videos/quick-start)

# Concepts

Core ideas behind videos, encoding, and delivery.

- [Videos](/docs/products/videos/videos): The source file, probed metadata, status, and what happens when you delete a video.
- [Encoding profiles](/docs/products/videos/profiles): Resolution, bitrate, and codec targets, presets, and how profile changes apply.
- [Renditions](/docs/products/videos/renditions): One rendition per profile and output, statuses, progress, and retries.
- [Outputs](/docs/products/videos/outputs): HLS, DASH, and CMAF, master manifests, and which players support each.
- [Captions](/docs/products/videos/captions): Upload WebVTT or SubRip, extract embedded tracks, and pick a default track.
- [Timeline](/docs/products/videos/timeline): Sprite sheets with a WebVTT index for scrubbing thumbnails.
- [Permissions](/docs/products/videos/permissions): Who can watch a stream, and who can manage videos in your organization.

# Guides

Step-by-step guides for playing and checking your streams.

- [Embed the video player](/docs/products/videos/player): Embed the hosted player with an iframe, and set start time, autoplay, looping, controls, and accent color.
- [Play a video in your app](/docs/products/videos/play): Load the master manifest with hls.js, Shaka Player, Video.js, AVPlayer, ExoPlayer, Flutter, or React Native.
- [Inspect playback](/docs/products/videos/inspector): Watch the experience score, buffer, bitrate, and network requests for a playback session.
