Skip to content
learn
  1. Learn
  2. Artificial Intelligence
  3. Multimodal and Generative Media

AI AI-12.04

Video and audio generation overview

What video, music and sound generation can do, why video costs so much more than images, and how watermarks and content credentials label AI media.

Advanced 10 min Last reviewed

The big idea

A small studio wants a five-second product clip for each of 200 items, plus a short music bed and a few sound effects. A few years ago that meant a shoot and a composer. Today a model can turn a prompt or a product photo into a short clip with camera motion, and other models write music from a description or a hummed tune. The results can be striking. They are also expensive to make, uneven from one try to the next, and hard to tell apart from real footage.

That last point is why this lesson has two halves. The first is how generation works and what it costs. The second is provenanceThe recorded history of a piece of media: who or what created it, with which tools, and what edits were made since.: how a generated clip can carry a reliable label saying it was made by a model, even after it has been shared and re-encoded.

Think of a banknote. Printing a convincing one is hard work, and printing many is expensive. But the real defence is not the cost; it is the watermark and security features built in when the note is made, which anyone can check later. Generated media needs the same: marks added at creation that survive handling, plus a way to check them.

How it works

Text to video with a latent diffusion transformer Step 1: the prompt is expanded and encoded into text vectors. Step 2: random noise is laid out as a grid of spacetime patches, its size set by the clip's length and resolution. Step 3: a diffusion transformer denoises all patches together for tens of steps, attending across space and time and to the text. Step 4: a video decoder turns the clean latent back into frames, and a watermark and a signed content credential are attached before the file is delivered. cross-attention clean latent prompt or a start image text encoder vectors noise patches space x time diffusion transformer all patches attend video decoder latents to frames watermark + credential before delivery Figure 1. Video generation is image diffusion over a block of spacetime patches. Every patch attends to every other (glowing), which is where the cost goes. Step through it.
  1. Encode the prompt A text encoder turns the prompt into vectors. Some systems first rewrite a short prompt into a long, detailed caption, because they were trained on detailed captions.
  2. Lay out noise Noise fills a grid of spacetime patches. Its size is set by the length, frame rate and resolution you ask for; the same model can make a phone-shaped clip or a widescreen one.
  3. Denoise all frames together A diffusion transformer removes noise from every patch at once, attending across time as well as space, which is what keeps objects consistent from frame to frame.
  4. Decode and label A video decoder turns latents back into frames. Responsible providers then embed a watermark in the pixels and attach a signed record saying the clip was AI-generated.

From images to video

A video is a stack of images that must agree with each other. Generating frames one at a time and hoping they line up gives flicker and objects that change shape. Current models instead treat the whole clip as one block. A video autoencoder compresses it in space and in time, the compressed block is cut into spacetime patchesSmall blocks of a compressed video that span a few pixels in each direction and a few frames in time; video diffusion transformers use them as tokens., and a diffusion transformerA diffusion model whose denoising network is a transformer over patches instead of a convolutional U-Net. denoises all of them together. OpenAI's 2024 technical report on Sora describes exactly this recipe, and notes that because images are just one-frame videos, one model can be trained on both and can generate clips of different lengths, resolutions and aspect ratios.

The same machinery gives you the editing tools from Image generation , now in time: animate a still image, extend a clip forwards or backwards, or noise an existing video part way and re-denoise it in a new style (the SDEdit idea).

Audio and music

Sound has the same shape as video at a smaller scale: a long signal with structure at several time scales. Speech generation is covered in Speech: ASR and TTS . For music, research models generate from text such as "a calming violin melody backed by a distorted guitar riff", and can be conditioned on a hummed or whistled melody. Sound effects and short music clips come from text-to-audio models, including an open-weights one trained on Creative Commons audio. Cloning a real person's voice is the most sensitive case, which is why consent and labelling matter even more for audio.

What still goes wrong

The Sora report is candid about limits that remain typical: physics such as glass shattering is not modelled correctly, object state does not always change as it should, for example when food is eaten, long clips drift into incoherence, and objects can appear from nowhere. Expect to generate several takes and pick, and plan human review before anything is published.

Why video costs so much

Use the published numbers of one open model, Wan (2025). Its video autoencoder compresses time by 4 and each side by 8, and the transformer takes 2 by 2 patches of that, so the number of tokens per denoising step is:

where T + 1 is the number of frames. A 5-second clip at 16 frames per second has 81 frames, so at 1280 by 720: (1 + 80/4) x 45 x 80 = 21 x 3,600 = 75,600 tokens. One still image at that size is 3,600 tokens. The clip has 21 times the tokens, and since full attention compares every token with every other one, about 21 squared = 441 times the attention work per step, repeated for every denoising step. The Wan authors report that once sequences reach a million tokens, attention can take up to 95 percent of end-to-end training time.

Try it

This interactive needs JavaScript. The diagrams and text above cover the same idea.

  1. Start at 5 seconds, 16 frames per second, 1280 x 720. Confirm the 75,600 tokens from the worked example. How many times the attention work of one image is that?
  2. Double the length to 10 seconds. Tokens roughly double. What happens to the attention bar, and why do providers cap clip length?
  3. Go from 1280 x 720 to 1920 x 1080 at 5 seconds. Tokens grow by about 2.25 times; attention by about 5. Which is cheaper: generating at 720p and upscaling, or generating at 1080p?

Provenance in miniature: a signed record bound to the exact bytes of a file.

provenance.pyruns with python3 (standard library)
# A toy content credential: a signed record that binds claims ("made by an
# AI model") to the exact bytes of a file through a hash. Real C2PA manifests
# use X.509 certificates and public-key signatures; HMAC stands in for that here.
import hashlib, hmac, json

SIGNING_KEY = b"generator-private-key"           # stand-in for a private key

def make_credential(media: bytes, claims: dict) -> dict:
    record = {"sha256": hashlib.sha256(media).hexdigest(), **claims}
    body = json.dumps(record, sort_keys=True).encode()
    return {"record": record, "sig": hmac.new(SIGNING_KEY, body, "sha256").hexdigest()}

def verify(media: bytes, cred) -> str:
    if cred is None:
        return "no credential: unknown origin (not proof it is real)"
    body = json.dumps(cred["record"], sort_keys=True).encode()
    if not hmac.compare_digest(cred["sig"], hmac.new(SIGNING_KEY, body, "sha256").hexdigest()):
        return "credential tampered with"
    if cred["record"]["sha256"] != hashlib.sha256(media).hexdigest():
        return "file changed after signing"
    return f"valid: {cred['record']['source']}"

video = bytes(range(256)) * 40                     # stand-in for a generated clip
cred = make_credential(video, {"source": "trainedAlgorithmicMedia", "tool": "video model"})

print("1. as generated:     ", verify(video, cred))
print("2. one byte edited:  ", verify(video[:-1] + b"\x00", cred))
forged = {"record": {**cred["record"], "source": "camera"}, "sig": cred["sig"]}
print("3. claim rewritten:  ", verify(video, forged))
print("4. metadata stripped:", verify(video, None))

Output

1. as generated:      valid: trainedAlgorithmicMedia
2. one byte edited:   file changed after signing
3. claim rewritten:   credential tampered with
4. metadata stripped: no credential: unknown origin (not proof it is real)

The record proves origin only while it travels with the file. Case 4 is the weak spot: strip the metadata and nothing says the clip was generated, and a missing credential proves nothing either way. That is why credentials are paired with watermarks.

Going deeper

Watermarks: marks inside the content

An invisible watermarkA signal hidden in the content itself (pixels, audio samples or word choices) that a detector can find later, used to identify media as AI-generated. is embedded in the pixels or audio samples at generation time. Google's SynthID, for example, is described as imperceptible to people, designed to survive cropping, filters, frame-rate changes and lossy compression for images and video, and to survive added noise, MP3 compression and speed changes for audio; a verification portal launched in 2025. The limits: a mark can be read only by its own detector, a missing watermark proves nothing, and a determined attacker may degrade one. Watermarks raise the cost of passing off generated media; they do not make it impossible.

Content credentials: signed history

The C2PACoalition for Content Provenance and Authenticity: an open standard for attaching signed provenance records (content credentials) to media files. standard attaches a signed manifest, called a content credential, to a file. It holds assertions such as the creating tool, edits made and whether AI was used (through a digital source type field), bound to the file by cryptographic hashes and signed with X.509 certificates. Any change to the file or the record breaks the match. Metadata can be stripped, so the standard's "durable" credentials combine this hard binding with a soft binding, a watermark or fingerprint that lets a checker find the manifest again in a cloud store. The C2PA explainer is careful about one more limit: provenance tells you where content came from, not whether it is true.

Rules are arriving

The EU AI Act's transparency article requires providers of systems that generate synthetic audio, images, video or text to mark outputs in a machine-readable, detectable way, and requires deployers who publish deepfakes to disclose that they are artificial. It has applied since 2 August 2026. The Commission's FAQ notes one grace period: systems already on the market before that date have until 2 December 2026 to meet the marking duty. Other jurisdictions and platforms have their own labelling rules; see the AI regulation and governance lesson in the safety module.

Trade-offs

OptionWins whenLoses when
Hosted video API Best quality, no GPUs, watermarking and filters built in Per-second pricing, little control, content policies you do not set
Open-weights video model Full control, fine-tuning, no per-clip fee GPU cost, slow at high resolution, you own safety and labelling
Short clips, upscaled Far less attention work per step Upscaling cannot add true detail; long scenes need stitching
Watermark only Survives re-encoding and screenshots Vendor-specific detectors; absence proves nothing
Content credentials only Open standard, readable history of edits and tools Easily stripped from the file without a soft binding

Common mistakes

  • Estimating video cost from image cost per frame. Tokens grow with length and resolution, and attention work grows with their square.
  • Treating a missing watermark or credential as proof that media is real.
  • Expecting correct physics, stable text and consistent objects in long clips without reviewing every take.
  • Cloning a voice or likeness without documented consent, or publishing generated media without a label.
  • Stripping metadata in your own processing pipeline (resizing, transcoding) and silently losing the credentials you were given.

In the wild

OpenAI (technical report, 2024)

Video generation models as world simulators (opens in a new tab)

The report describes Sora as a diffusion transformer trained on videos and images compressed into a latent space and cut into spacetime patches, which lets one model handle different durations, resolutions and aspect ratios, up to a minute of video. It shows image-to-video, extending clips in time and video-to-video editing with SDEdit. It also lists limitations, including incorrect physics such as glass shattering and incoherence in long samples.

C2PA (specification explainer)

C2PA and Content Credentials Explainer (opens in a new tab)

The explainer defines content credentials as cryptographically bound records of an asset's provenance, signed with X.509-based credentials and bound to the asset by hashes so any change breaks the match. It acknowledges that metadata can be stripped and describes durable credentials that add watermarks or fingerprints to recover the manifest. It also states that provenance cannot tell you whether content is true.

Google DeepMind (product page)

SynthID (opens in a new tab)

SynthID embeds imperceptible watermarks in AI-generated images, video, audio and text from Google's AI products. The page says image and video marks are designed to withstand cropping, filters, frame-rate changes and lossy compression, and audio marks to withstand noise, MP3 compression and speed changes. A detector portal, launched in 2025, lets people check whether content carries the mark, including content from partners that adopted it.

Check yourself

  1. Why do video diffusion models denoise all frames together instead of one at a time?

    Show answer

    B. Attending across time keeps objects and motion consistent between frames Spacetime patches let every part of the clip attend to every other part, so a cup in frame 1 is still the same cup in frame 60. Frame-by-frame generation tends to flicker and drift.

  2. Using L = (1 + T/4) x H/16 x W/16, how many tokens is a 5-second, 16 fps clip at 640 x 360 (round 360/16 up to 23)?

    Show answer

    B. About 19,300 81 frames give 1 + 80/4 = 21 latent frames. Each has 23 x 40 = 920 tokens. 21 x 920 = 19,320.

  3. You double a clip's length at the same resolution. Roughly what happens to attention work per denoising step?

    Show answer

    C. It roughly quadruples Tokens roughly double, and full attention compares every token with every other one, so the work grows with the square: about four times.

  4. A clip you found online has no content credential and no watermark your detector recognises. What can you conclude?

    Show answer

    C. Nothing certain: credentials can be stripped and many generators use other marks or none Absence of provenance is not evidence of authenticity. Metadata is easily removed, and detectors only recognise their own marks.

  5. Why does C2PA pair hard bindings with watermarks or fingerprints for durable credentials?

    Show answer

    B. If the metadata is stripped, the soft binding lets a checker find the manifest again The hash and signature prove the record matches the file, but only while the record travels with it. A watermark or fingerprint survives re-encoding and points back to the stored manifest.

Recap

  • Video models extend latent diffusion through time: compress the clip, cut it into spacetime patches and denoise all of them together with a transformer.
  • Music, sound effects and voices come from related generators; voice and likeness cloning need consent and labels.
  • Cost grows fast: tokens scale with length and resolution, and attention work with their square, for every denoising step.
  • Watermarks hide a detectable mark in the content; content credentials attach a signed, hash-bound history; durable provenance combines both.
  • Neither proves media is real when absent, and labelling AI-generated media is becoming a legal requirement, as in the EU AI Act.

Get new lessons by email

Get new posts on backend and AI internals. No spam, unsubscribe anytime.

Your email is only used to send new posts. Privacy