Getting Started

Installation

Install playwright-recast and its system dependencies.

Install the package

npm install playwright-recast

Or with Bun:

bun add playwright-recast

Install ffmpeg

playwright-recast uses ffmpeg and ffprobe for all video processing. Both must be available on your PATH.

macOS

brew install ffmpeg

Ubuntu / Debian

sudo apt install ffmpeg

Windows

Download from ffmpeg.org and add the bin directory to your system PATH.

Verify installation

ffmpeg -version
ffprobe -version

Both commands should print version information without errors.

TTS providers (optional)

If you plan to use voiceover, install the provider SDK and set the API key:

OpenAI

export OPENAI_API_KEY="sk-..."

ElevenLabs

export ELEVENLABS_API_KEY="..."

See the Providers section for full configuration details.

Next steps

Once installed, head to the Quick Start to generate your first video.

On this page