Skip to main content

How use FFmpeg from AWS Lambda

Created
Active
Viewed 101 times
4 replies
0

I want to read a .mp4 file in AWS S3 from AWS Lambda. What's the best choice, FFmpeg x AWS Lambda or S3 Batch Operation x AWS Mediaconvert? I need the cheaper solution because I have 3 million videos to transcode it.

4 replies

Sorted by:
78736314
5
  • 28k
  • 9
  • 69
  • 101

Have you read my comment or just decided to repost: https://stackoverflow.com/beta/discussions/78735457/how-use-ffmpeg-from-aws-lambda?

Moreover, you already have a question about this How use FFmpeg from AWS Lambda that needs more details. I won't handle this post and would let another moderator take a look to avoid bias, but please don't ignore the feedback you receive so you can seek help appropriately.

78741276
1
  • 93.5k
  • 11
  • 52
  • 82

Seems the OP has posted it again: FFmpeg vs Mediaconvert I almost smell foul play at this point, M--.

78738661
0

Suppose you have an EC2 machine, there you can install FFmpeg and then inside your Python code, you can call the FFmpeg utility and use it.

However, in AWS Lambda it is not feasible to install FFmpeg

But you can use docker an image and there you can install FFmpeg then you can deploy that image to AWS lambda.

Here is the documentation for it https://docs.aws.amazon.com/lambda/latest/dg/images-create.html

Here is the medium article: https://virkud-sarvesh.medium.com/building-ffmpeg-layer-for-a-lambda-function-a206f36d3edc

Stackoverflow: How to Install ffmpeg on aws lambda machine?

AWS Layer: https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:145266761615:applications~ffmpeg-lambda-layer

78739558
0

I already installed FFmpeg on Lambda Layer, and it works, but I can't find a solution to read my videos stored in the S3.