Universal Media Converter
Serverless High-Throughput Transcoder
Problem Statement & Investigation
Transcoding high-resolution audio and video files typically requires running compute-heavy GPU/CPU servers 24/7, leading to high infrastructure bills even during hours of zero user activity.
By compiling native FFmpeg/PyAV binaries into a specialized AWS Lambda layer and utilizing direct S3 presigned upload/download pipelines, we can transcode media on-demand with zero permanent servers and zero storage egress proxying.
System Runtime Flow
Client requests an S3 presigned PUT URL and uploads raw video/audio directly to S3, bypassing compute servers.
S3 upload triggers a Python 3.12 Lambda function equipped with the native PyAV FFmpeg binary layer.
PyAV streams the audio track, normalizes gain, and encodes into 192 kbps MP3 directly to an output S3 bucket.
Client receives an S3 presigned GET download URL for instant high-speed CloudFront edge delivery.
Architecture Decision Records (ADRs)
Failure-Mode & Resilience Analysis
Key Engineering Takeaways
- Bypassing API Gateway with S3 presigned URLs is the only reliable way to handle media uploads on serverless architectures.
- Allocating 1024MB memory to Lambda doubles CPU allocation on AWS, speeding up transcoding by 3x and lowering total cost per job.
Empirical Benchmarks
Technology Primitives
- frontend
- Vanilla JS Drag-and-Drop + S3 Presigned Upload
- backend
- Python 3.12 Lambda + PyAV Transcoder
- storage
- S3 Presigned Direct Upload & Download
- infra
- Terraform + API Gateway + CloudFront
Architecture Tags
Public Live Demo · Detailed Architecture & Deploy Keys Secured. Operational lifecycle commands (Deploy, Scale, Destroy) and raw cloud credentials remain sealed in the private control plane.