# Step-by-Step Setup

> Install PraisonAI Film (aifilm), FFmpeg, and Playwright Chromium on macOS or Ubuntu/Linux in under 5 minutes.

You only need to do this setup **once**. After that, PraisonAI Film renders completely offline on your computer.

> **Supported Platforms:** Verified on **macOS** (Python 3.10–3.13) and **Ubuntu / Debian Linux** (Python 3.10–3.12). **Windows is currently unverified.**

---

## Step 1: Check Python

Open your terminal and make sure you have **Python 3.10 or newer**:

```bash
python3 --version
```

Create a clean virtual environment so `aifilm` stays neatly separated from other Python packages:

```bash
python3 -m venv .venv
source .venv/bin/activate
```

---

## Step 2: Install `aifilm`

Install the stable `aifilm` package from PyPI:

```bash
python -m pip install aifilm
```

Check that the command is ready:

```bash
aifilm --version
```

---

## Step 3: Install FFmpeg and Headless Chromium (One-Time)

PraisonAI Film draws frames with Playwright's lightweight headless Chromium shell and encodes H.264 MP4 video with FFmpeg (`libx264`).

### On macOS

```bash
brew install ffmpeg
python -m playwright install --only-shell chromium
```

### On Ubuntu / Debian Linux

```bash
sudo apt update
sudo apt install -y ffmpeg libatomic1
python -m playwright install --with-deps --only-shell chromium
```

*(The headless Chromium shell download is approximately 101 MiB on macOS arm64.)*

---

## Step 4: Verify Everything with `aifilm doctor`

Run the built-in health check:

```bash
aifilm doctor
```

You should see both **FFmpeg** and **Chromium** reported cleanly:

```text
FFmpeg: /opt/homebrew/bin/ffmpeg
Chromium: 159.x.x.x
```

If either tool is missing, `aifilm doctor` prints the exact command to fix it.

---

## Next Step

Your computer is ready! Head to **[Make & Revise Your First Film](https://film.praison.ai/docs/getting-started/first-film.md)** to render `hello.mp4` and make your first edit.

## Related pages

- [Make & Revise Your First Film](https://film.praison.ai/docs/getting-started/first-film.md)
- [Create & Share Custom Style Packs](https://film.praison.ai/docs/styles-guide/custom-styles.md)
- [Troubleshooting & FAQ](https://film.praison.ai/docs/reference/troubleshooting.md)
