Deploy AMR Media Convert
Self-hosted FFmpeg conversion API - URL in, converted file out
AgentMarginRouter
Just deployed
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.
Template Content
AgentMarginRouter
AgentMarginRouter/AgentMarginRouter