Prompt
What should I use to transcode uploaded videos at scale?
Latest observation
For transcoding uploaded videos at scale, the usual best answer is:
Use a queue + worker model, with FFmpeg behind it
- Upload video to object storage (S3, GCS, Azure Blob, etc.)
- Enqueue a transcode job
- Workers pull jobs and run FFmpeg
- Store outputs back in object storage/CDN
This is the most common and flexible approach.
Good options depending on your needs
1) Managed video transcoding services
Best if you want less ops and faster time to market.
- AWS Elemental MediaConvert
- Google Transcoder API
- Mux
- Cloudflare Stream
- Dolby.io
- Azure Media Services (note: historically popular, but availability/status should be checked)
Pros
- Scales automatically
- Handles many codecs/container formats
- Often includes HLS/DASH packaging, thumbnails, captions, etc.
- Less infrastructure to manage
Cons
- Can be expensive at scale
- Less control over tuning
- Vendor lock-in
2) Self-hosted FFmpeg workers
Best if you need control and cost optimization.
- Run FFmpeg in containers on:
- Kubernetes
- ECS/Fargate
- Cloud Run
- plain VMs/autoscaling groups
Use:
- SQS / PubSub / RabbitMQ / Kafka for jobs
- Redis for lightweight queues if appropriate
- Spot instances for cheaper batch processing
Pros
- Full control over encoding settings
- Usually cheaper at high volume
- Easy to customize pipelines
Cons
- You manage scaling, retries, failures, monitoring, and updates
3) Hybrid
Use managed services for the heavy lifting, but keep your own orchestration. This is often the sweet spot for teams that need both reliability and flexibility.
My practical recommendation
If you’re early-stage or want the simplest production path:
- AWS + S3 + SQS + ECS/Kubernetes + FFmpeg or
- AWS MediaConvert if you want the least ops
If you’re already on GCP:
- Cloud Storage + Pub/Sub + Transcoder API
If you want a video platform rather than infrastructure:
- Mux or Cloudflare Stream
What matters most when choosing
Look at:
- Cost per minute/hour of video
- Peak throughput
- Required output formats: H.264, H.265, AV1, HLS, DASH
- Latency: immediate vs batch
- Need for thumbnails, captions, DRM
- Operational burden
- Geographic distribution
- Hardware acceleration support
If you want a single answer
Use FFmpeg in autoscaled workers behind a queue, unless you specifically want a managed platform like AWS MediaConvert or Mux.
If you tell me your cloud provider, expected volume, and output formats, I can recommend a concrete architecture.