# How a Film File Works

> Plain-English guide to every top-level setting in film.yaml — title, size, style, watermark, set, cast, action, cameras, and edits.

Every PraisonAI Film project is driven by a single plain-text file: **`film.yaml`**. You do not need to write code — each section answers one simple question about your scene.

## Anatomy of `film.yaml`

```yaml
title: Morning Coffee          # Title shown on the opening pill card
card_seconds: 2.0              # How long the title card stays visible
size: 16x9                     # 16x9 (landscape) or 9x16 (vertical Short/Reel)
style: studio_ink              # Visual style pack (6 built-in or custom)
duration: auto                 # Exact seconds, or auto (last action + tail)
tail: 1.0                      # Extra pause after the last action (seconds)
captions: true                 # Show spoken lines as bottom captions too
bubbles: true                  # Show comic speech bubbles (false hides them)
watermark: "PraisonAI Film"    # Default transparent corner marker (false hides it)

set: cafe                      # Where the scene takes place

cast:                          # Who is in the scene
  mira: {from: mira, at: [40, 20]}
  sam:  {from: sam,  at: [-20, 20], facing: mira}

action:                        # What happens, step by step
  - {who: mira, do: wave, at: 0, dur: 1.2}
  - {who: mira, do: say, after: prev, text: "Ready to film?"}

cameras:                       # Optional named camera setups
  wide: {preset: wide}

edits:                         # How shots are cut together
  cut: auto                    # Automatic director editing, or manual [[t, cam], ...]
```

## Every Top-Level Option Explained

| Key | Default | What It Controls |
|---|---|---|
| `title` | `"film"` | Film name shown on the opening title pill. |
| `card` | Uppercase `title` | Custom text for the title pill, or `false` to hide the title card completely. |
| `card_seconds` | `2.4` | Number of seconds the opening title card stays on screen. |
| `size` | `16x9` | Frame aspect ratio: **`16x9`** (1920×1080 HD / 640×360 preview) or **`9x16`** (1080×1920 vertical / 360×640 preview). |
| `style` | `studio_ink` | One of the 6 built-in styles (`studio_ink`, `realistic`, `clean_vector`, `storybook_watercolor`, `riso_print`, `blueprint_ink`), a local style folder, or an installed style plugin. |
| `watermark` | `"PraisonAI Film"` | Subtle transparent corner watermark shown on every generated film by default. Licensed commercial projects may set `watermark: false` or custom text. |
| `duration` | `auto` | Total length in seconds, or `auto` to end automatically after the final action plus `tail`. |
| `tail` | `1.0` | Seconds of breathing room added at the end when `duration: auto`. |
| `set` | *(required)* | Built-in location name (`garden`, `park`, `street_corner`, `cafe`, `kitchen`, `living_room`, `office`) or custom set definition. |
| `props` | `[]` | Extra props added on top of the set (or updates to existing props in the set). |
| `cast` | `{}` | Characters in the scene: their library preset, body kind, starting spot, outfit, and facing direction. |
| `action` | `[]` | Ordered list of steps characters and props perform. |
| `cameras` | `{}` | Optional named camera presets (`wide`, `medium`, `closeup`, `two_shot`, `over_shoulder`, `follow`, etc.). |
| `edits` | `{cut: auto}` | Named edits to render with `--edit NAME`. Use `auto` for the automatic director or list `[seconds, camera]` cuts manually. |
| `light` | `{az: 105, world: true}` | Sun angle in degrees (`az`) and whether light stays fixed to the world (`world: true`) when cameras turn. |
| `life` | `true` | Natural idle animations for all cast members: blinking, breathing, and facial moods. |
| `bubbles` | `true` | Turn comic speech bubbles on (`true`) or off (`false`). |
| `captions` | `false` | Set `true` to also show spoken dialogue as bottom captions. |
| `notes` | *(ignored)* | Free-form notes for your team — ignored by the renderer. |

## Built-In Editor Autocomplete

When you create a project with `aifilm new my-film`, it places `film.schema.json` right beside `film.yaml` and links it on line 1 (`# yaml-language-server: $schema=./film.schema.json`). In VS Code (with the YAML extension), you get live autocomplete and inline descriptions for every key, set, character, action, and camera!

## Related pages

- [Speech Bubbles, Captions & Title Cards](https://film.praison.ai/docs/features/dialogue.md)
- [Actions, Timing & Obstacle Routing](https://film.praison.ai/docs/features/actions.md)
- [Default Transparent Watermark](https://film.praison.ai/docs/features/watermark.md)
