

Creating the FFmpeg Lambda LayerĪ pre-made Lambda layer for FFmpeg is available from the AWS Serverless Application Repository, and deploying this is an easy option to easily get started. As a bonus, the software we’ll use (FFmpeg) has arm64 builds readily available, allowing us to take advantage of even more cost savings. Since we’re already using Lambda (which is quite capable of the task using CPU) and the cost per second of execution is so low, we might as well use its compute power for the conversion.

It’s not so much that this cost would make Elastic Transcoder unfit for experimentation so much as it seems very cost inefficient for this purpose. My initial thought was to utilize the Amazon Elastic Transcoder service to convert the FLAC files however, the limit of 20 minutes of free output per month on the free tier made me question this option, and the regular price of $0.0045 per minute of converted audio cemented my decision to seek another option. I’ll share my thoughts and a basic tutorial here. Wanting to get some practice in with S3 Event Notifications and Lambda recently, I decided to create a setup to convert files from FLAC to MP3.
