---
title: "Deploy AMR Media Convert"
description: "Self-hosted FFmpeg conversion API - URL in, converted file out"
category: "Automation"
url: https://railway.com/deploy/amr-media-convert
---

# Deploy AMR Media Convert

Self-hosted FFmpeg conversion API - URL in, converted file out

**[Deploy AMR Media Convert on Railway](https://railway.com/template/amr-media-convert)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/amr-media-convert/manifest.json

- **Creator:** Agent Margin Router
- **Category:** Automation

## Template content

### AgentMarginRouter

- **Source:** AgentMarginRouter/AgentMarginRouter
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host AMR Media Convert on Railway

AMR Media Convert is a tiny, self-hosted FFmpeg conversion API. Send one POST request with a public source URL and a target format, and it returns a hosted URL for the converted file. It runs a FastAPI service wrapping FFmpeg, so there is no external object storage and no per-provider setup to configure.

## About Hosting AMR Media Convert

Deploying this template builds the included Dockerfile from source and runs the containerized FastAPI + FFmpeg service. Railway generates a public domain and injects PUBLIC_BASE_URL plus an auto-generated MEDIA_API_KEY. The service exposes POST /convert (Bearer-authenticated), a /health check, and GET /files/ to download results. Converted files are hosted on the same service and are ephemeral (default TTL 24h). Add a Railway Volume mounted at /data if you want outputs to persist across restarts.

## Why Deploy AMR Media Convert

You get a private media conversion backend that you fully control, with no external API keys to manage and no object storage to wire up. It is a clean building block for AI agents, automation workflows, or as the media worker behind the Agent Margin Router.

## Common Use Cases

- Transcode audio, video, and images between formats (mp3, mp4, webm, wav, png, and more).
- Named operations: extract-audio, mute, thumbnail, gif, and scale=WIDTH:HEIGHT.
- A private conversion backend for AI agents, automations, or the Agent Margin Router.

## Dependencies for AMR Media Convert Hosting

- No external services required - FFmpeg is bundled in the container image.
- Source files must be reachable at a public URL.
- Optional: a Railway Volume mounted at /data for persistent output storage.

## 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) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [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/amr-media-convert
