Topic: https://intoli.com/blog/transcoding-on-aws-lambda/
hide preview

What's next? verify your email address for reply notifications!

unverified 6y, 171d ago

Great post! Though I think you can save yourself a ton of headaches by just downloading a pre-compiled version of ffmpeg for Linux:

https://johnvansickle.com/ffmpeg/

These builds work perfectly in Lambda.

remark link
hide preview

What's next? verify your email address for reply notifications!

unverified 6y, 58d ago

Cool! For lambda should I grab the x8 or x86_64 version?

remark link parent
hide preview

What's next? verify your email address for reply notifications!

evan 6y, 57d ago

Use the x86_64 version. You can find details on the Lambda execution environment here.

hide preview

What's next? verify your email address for reply notifications!

unverified 6y, 171d ago

Looking forward to read your next tutorial on transcoding video files using AWS Lambda & AWS Fargate. :)

hide preview

What's next? verify your email address for reply notifications!

LAUipLIH 6y, 171d ago

Thanks for the article, But how do you address strict lambda duration limit of 300 seconds? Imagine this will significantly limit the length of input/output files as well.

remark link
hide preview

What's next? verify your email address for reply notifications!

unverified 6y, 140d ago

Interesting article. Exodus in particular seems to solve a lot of problems with using FFMPEG on Lamda.

One point: It could be made more efficient with a streaming approach. i.e. pipe input file from request into FFMPEG's stdin, and pipe the outputs direct to S3. That way download, transcode and upload of resulting MP3 could all happen concurrently rather than each step waiting for the previous step to complete before starting.

In practice, I don't know how much this would affect execution time - maybe the download and upload steps are so blazing fast on AWS's network connections that it's negligible. But since you're paying by the second on Lamda, obviously faster completion is a good goal.

hide preview

What's next? verify your email address for reply notifications!

unverified 6y, 80d ago

You forget to mention the biggest catch of this article or perhaps you are not aware for it. One needs to state clearly the licensing implications of using ffmpeg with GPL libraries. In short, all applications developed with this guide must be open source as well.

You could compile ffmpeg with only LGPL libraries you will lose libx264 for example and will only have limited features and performance of the ffmpeg's own h264 encoder. Not a hard road block but something to really consider before commiting to this :)

hide preview

What's next? verify your email address for reply notifications!

tnd7RLMP 5y, 191d ago

Hello, you could also download static build of ffmpeg from here: https://www.johnvansickle.com/ffmpeg instead of using exodus

remark link
hide preview

What's next? verify your email address for reply notifications!

unverified 5y, 123d ago

Man you just saved a month of my life time, thx.

hide preview

What's next? verify your email address for reply notifications!