Skip to content
Appwrite Videos

Adaptive video streaming from your Storage files

Turn video and audio files into HLS, DASH, and CMAF streams with an encoding ladder, subtitles, and scrubbing thumbnails. First frame under 100 ms, by design. One API, in the same project as your Auth, Databases, and Storage.

falls.mp4
Streaming

Waterfall · Demo video by McPix22 · Pixabay Content License

falls.mp4

media · 85 MB

Appwrite player

Embed on any page

To first frame
< 100 ms
HLS, DASH, and CMAF
3 outputs
Bitrate ladder
Adaptive
Web, mobile, and native
Any player
Live experience score
Inspector

Start from any file in Storage

Create a video from a file that is already in a Storage bucket. The first encoding job probes codecs, resolution, frame rate, duration, and bitrate, so you never parse media metadata yourself.

Storage

launch.mp4

media · 84 MB

Source file

Probed metadata

From the first encode

Resolution

1920x1080

Duration

02:14

Frame rate

30 fps

Video codec

H.264

Audio codec

AAC

Bitrate

8.4 Mbps

Source stays in Storage

The original file is never replaced

Encode an adaptive bitrate ladder

Start from resolution presets or define your own encoding profiles. Renditions encode in the background and report status and progress until they are ready to stream.

Renditions

1080p1920x1080 · 5000 kbps
Ready
720p1280x720 · 2800 kbps
Ready
480p854x480 · 1400 kbps
Encoding
64%
360p640x360 · 800 kbps
Pending

Default project ladder

Add a profile for any other bitrate

Encode on CPU, or on dedicated GPUs

Every plan encodes renditions on CPU in the background. On Enterprise, dedicated GPUs get long and 4K videos ready in a fraction of the time.

Every plan

CPU encoding

Renditions encode in the background on every plan and report status and progress until each one is ready to stream.

  • Any profile, any output
  • Status and progress on every rendition
2160p4KEncoding
Enterprise

GPU encoding

Encode on dedicated GPUs to get long and 4K videos ready in a fraction of the time, with no queue behind other uploads.

  • Dedicated GPUs for your organization
  • Built for long and 4K sources
2160p4KEncoding

HLS, DASH, and CMAF from one source

Package each rendition for the players you support. Every output has a master manifest that players follow to the right rendition for each viewer and connection.

One rendition per profile and output. Encode the same profile for more than one output.
MPEG-TS

HLS

For Safari, iOS, tvOS, and hls.js on every other browser.

outputs/hls/master.m3u8

Works with

hls.js · AVPlayer · Safari

fMP4

DASH

For dash.js, Shaka Player, ExoPlayer, and smart TVs.

outputs/dash/master.mpd

Works with

dash.js · Shaka · ExoPlayer

fMP4

CMAF

Encode fMP4 segments once and serve both an HLS and a DASH master.

outputs/cmaf/master.m3u8outputs/cmaf/master.mpd

Works with

HLS + DASH

Subtitles, uploaded or extracted

Upload WebVTT or SubRip files from Storage, or use the tracks already embedded in the source. Tag each track with a language, choose a default, and players pick it up from the manifest.

Subtitles
Default

[Water rushing]

English

eng · WebVTT

DefaultReady

Hebrew

heb · SubRip

Ready

Track 3

und

EmbeddedReady

Upload or extract

Retag an embedded track without replacing the file

Scrubbing thumbnails on the timeline

Generate sprite sheets with a WebVTT index so viewers see a preview frame while they scrub.

0:10

Sprite sheet

timeline.vtt

Poster frame included

Same sprites, same index

Embed a built-in player

Copy an iframe from the Console and drop the Appwrite player on any page. Set a start time, choose captions, lock a rendition, or leave quality on Auto. The stream is designed for a first frame in under 100 ms.

Embed

<iframe src="https://appwrite.io/player/6b0ab42d477095ae3bf9?project=…&start=46&muted=1" …>

First frame under 100 ms

Embed on any page

Use any player on any platform

Prefer your own player? The same master manifest works with hls.js, Shaka Player, and Video.js on the web, AVPlayer on Apple platforms, ExoPlayer on Android, and the usual Flutter and React Native players.

Master manifest URL

videos.getHlsManifest()

player.ts
const url = videos.getHlsManifest({ videoId '<VIDEO_ID>' })

const hls = new Hls()
hls.loadSource(url)
hls.attachMedia(video)

Web

hls.js · Shaka · Video.js

Apple

AVPlayer

Android

ExoPlayer

Flutter · React Native

video_player · react-native-video

Press play, see picture in under 100 ms

No waiting on the whole file. Manifests are built from metadata held in memory, and every segment comes from the nearest of 120+ CDN PoPs, so picture lands before anyone notices.

Time to first frame

86ms

100 ms budget14 ms to spare
1.4 KB
Manifest, built from metadata in memory
120+
CDN PoPs keep every segment close to viewers
1
Segment to paint a frame

Appwrite stream

First frame86 ms

Manifests, from memory

master.m3u8

Master manifest

360p/index.m3u8

Media playlist

Segments, from the nearest PoP

360p/init.mp4

Init segment

360p/seg_0.m4s

First segment

Playback

Climbs the ladder

360p
720p
1080p

Progressive download

source.mp4

Whole file first

Still downloading, no picture yet

Inspect quality as viewers play

Pop the inspector out beside any video in the Console. Watch a live experience score for that session, then drill into buffer, bitrate, dropped frames, and diagnostics when a stream misses the sub 100 ms first frame.

Inspector
Live
94

Experience score

Excellent

Startup
100
Smoothness
100
Picture quality
91
Stability
98

First frame

86 ms

Rebuffering

0.0%

Dropped frames

0.00%

Follows the playing video

Pop out beside the player

FAQ

Any video or audio file in an Appwrite Storage bucket. Create a video from the bucket and file IDs, and the source file stays in Storage untouched. Audio-only sources stream the same way but have no timeline thumbnails.

A profile is a reusable encoding target with a resolution, video and audio bitrate, and codec. A rendition is one encode of a video against a profile, packaged for one output. Each video has at most one rendition per profile and output. Updating a profile does not re-encode existing renditions.

HLS, DASH, and CMAF. HLS uses MPEG-TS segments, DASH uses fMP4 segments, and CMAF encodes fMP4 once and exposes both an HLS and a DASH master manifest. Players request the master manifest and follow it to renditions, segments, and subtitles.

Upload a WebVTT or SubRip file to Storage and attach it to a video with a name and an ISO 639-2 language code. Uploads are converted to WebVTT and segmented for streaming. Subtitle tracks embedded in the source are extracted automatically during the first encoding job, and you can retag their language at any time.

Deleting a video removes its renditions, captions, timeline thumbnails, and transcoded segments. Deleting a profile keeps the renditions that were already encoded with it.

The pipeline is designed for that startup budget. Players load a small master manifest, pick a rendition from the ladder that the connection can fetch immediately, and request a short first segment instead of the source file. Use the inspector to watch time to first frame on a real session.

Videos follows your organization roles. The videos.read and videos.write scopes control who can view and manage videos, renditions, and captions. The project.videos.profiles.read and project.videos.profiles.write scopes cover encoding profiles.

Start streaming with Videos

Upload a file to Storage, create a video, and get an adaptive stream URL for any HLS or DASH player.