---
title: "Deploy N8N (w/ FFmpeg)"
description: "n8n on Railway with FFmpeg preinstalled for video/audio automation"
category: "Automation"
url: https://railway.com/deploy/n8n-w-ffmpeg
---

# Deploy N8N (w/ FFmpeg)

n8n on Railway with FFmpeg preinstalled for video/audio automation

**[Deploy N8N (w/ FFmpeg) on Railway](https://railway.com/template/n8n-w-ffmpeg)**

- **Creator:** Medim's Projects
- **Category:** Automation
- **Total deploys:** 121

## Template content

### Redis https://img.icons8.com/color/48/redis--v1.png

- **Image:** railwayapp/redis

### Primary https://devicons.railway.app/i/n8n.svg

- **Image:** n8nio/n8n
- **Start command:** `n8n start`
- **Health check:** /healthz
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

### Worker https://devicons.railway.app/i/n8n.svg

- **Image:** n8nio/n8n
- **Start command:** `/bin/sh -c "apk update && apk add --no-cache ffmpeg && n8n worker"`

## Documentation

# Deploy and Host n8n (w/ FFmpeg) on Railway

N8N (w/ FFmpeg) is a 1‑click Railway template for media‑centric automations. It deploys n8n in queue mode with worker(s), Redis (BullMQ), and Postgres. FFmpeg and ffprobe are installed on worker startup, enabling video/audio transcoding, trimming, thumbnail generation, and metadata extraction directly inside n8n, no custom setup required.

## About Hosting n8n (w/ FFmpeg)

This template deploys n8n on Railway with a production-ready setup: a main service for the editor and API, worker service(s) that execute workflows, Redis for job queuing, and PostgreSQL for storage. Railway provisions and manages these services so you can deploy quickly without manual configuration. The only difference from the upstream template is the worker image, which includes FFmpeg, enabling media operations directly within your automations. As your workload grows, simply scale worker services to handle more concurrent executions while the main editor remains responsive.

## Common Use Cases

- Video/audio transcoding, trimming, normalization, and format conversion
- Thumbnail or GIF preview generation and waveform images
- ffprobe metadata extraction and basic quality checks
- Media preparation for publishing and distribution pipelines

## Dependencies for n8n (w/ FFmpeg) Hosting

- Postgres (storage)
- Redis (queue)

### Deployment Dependencies

- n8n docs: https://docs.n8n.io/
- Queue mode: https://docs.n8n.io/hosting/scaling/queue-mode/
- Queue env vars: https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/
- FFmpeg: https://ffmpeg.org/
- Related: N8N (w/ workers + task runner) → https://railway.com/deploy/n8n-w-workers-task-runner

## Why Deploy n8n (w/ FFmpeg) on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying n8n (w/ FFmpeg) on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — [Jul'26] WhatsApp automation platform using Evolution API, n8n & PostgreSQL
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/n8n-w-ffmpeg
