Video with AILesson 2 of 66

Module 1 · What the machine is actually doing

Your clip is compressed fifty times before anything happens

In this lesson

  • 10 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 2 of 10 in this chapter

This chapter’s goalTrace a prompt and a first frame through a latent video model (encoder, noise schedule, attention across time, decoder) and use that path to predict which settings change the picture, which change only the cost, why the final second degrades, and what VRAM a given model needs before you download it.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Where the 746 million numbers goPixels: 746 million numbersA five-second 1080p clip at 24 frames per second.120 frames, each 1920 by 1080, in three colourchannels. No transformer attends over this.Encoder: 8 by 8 by 4Eight times narrower, eight times shorter, fourtimes fewer frames, with channels rising from 3 to16. Lossy, and lossy in a predictable direction.Latent: 15.5 million numbers30 latent frames at 240 by 135 by 16 channels.Roughly forty-eight times smaller. Every step ofgeneration happens in here and nowhere else.Decoder: back to pixelsAnything finer than about an eight-pixel block wasnever carried, so the decoder invents a plausiblereplacement: small type, fabric weave, a thin wire,an eyelash.The squeeze is the reason the attention step is affordable at all, and it is also the reason generatedfootage has a slightly waxy surface and melting text. Neither was preserved and then damaged. Neitherwas ever in the latent.
The squeeze is the reason the attention step is affordable at all, and it is also the reason generated footage has a slightly waxy surface and melting text. Neither was preserved and then damaged. Neither was ever in the latent.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

The number that explains most of the artefacts

Take a five-second clip at 1080p and 24 frames per second. That is 120 frames, each 1920 by 1080 with three colour channels: about 746 million numbers.

No transformer attends over 746 million numbers. So the first thing a video model does is hand your frames to an autoencoder (usually called a 3D VAE or a causal video VAE) which squeezes them. A typical configuration compresses by 8× in width, 8× in height, 4× along time, and expands the channel count from 3 to 16.

Run the arithmetic, setting aside for now the extra first frame that causal encoders keep (covered below). 120 frames become 30 latent frames, or 31 counting that first frame. 1920×1080 becomes 240×135. With 16 channels that is 30 × 240 × 135 × 16 ≈ 15.5 million numbers.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Editing Video exam.

Stuck on something?Ask Chiamaka, your AI tutor

How to cite: Addaly (2026) ‘Your clip is compressed fifty times before anything happens’, in Video with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-video/latent-space-for-video (Accessed: 29 November 2026).