- Notifications
You must be signed in to change notification settings - Fork1
This repository hosts a custom AWS Lambda layer that includes static versions of FFmpeg and FFprobe utilities from the FFmpeg Linux package. These utilities are compatible with both Amazon Linux 2.x and Amazon Linux 1.x instances.
License
hasithaishere/aws-ffmpeg-lambda-layer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository hosts a custom AWS Lambda layer that includes static versions of FFmpeg and FFprobe utilities from the FFmpeg Linux package. These utilities are compatible with both Amazon Linux 2.x and Amazon Linux 1.x instances.
- nodejs18.x
- nodejs16.x
- nodejs14.x
- python3.11
- java17
- go1.x
- Unix Make environment
- SAM CLI tool
This layer can deployed in the AWS using following commands:
For Build the layer please use the following command:
make build
For Deploy the layer please use the following command:
make deploy AWS_REGION=<AWS_REGION> STACK_NAME=<STACK_NAME>
By default, this usesffmpeg-lambda-layer
as the stack name. Provide aSTACK_NAME
variable when callingmake deploy
to use an alternative name.
And default region isap-southeast-1
if you want to deploy in different region please provideAWS_REGION
variable.
Theffmpeg
andffprobe
binaries will be in/opt/bin/
after linking the layer to a Lambda function.
make deploy
This package includes FFmpeg 6.0, packaged by John Van Sickle. Please consider supporting him for maintaining statically built FFmpeg packages. For more information, check outhttps://johnvansickle.com/ffmpeg/
After deploy the layer, you can use the ARN of layer in your lambda function.It return the latest layer ARN, please check following screenshot.
arn:aws:lambda:ap-southeast-1:<AWS-ACCOUNT-ID>:layer:ffmpeg-lambda-layer:1
You can use this ARN in your serverless function as following:
Resources:MediaConverterFunction:Type:AWS::Serverless::FunctionProperties:CodeUri:media-converter/Handler:app.lambdaHandlerRuntime:nodejs18.xTimeout:30Layers: -arn:aws:lambda:<AWS-Region>:<AWS-Account-Id>:layer:ffmpeg-lambda-layer:<Layer-Version>
- These Repository Code:GPL v3
- FFmpeg: GPLv2.1http://ffmpeg.org/legal.html, John Van Sickle's static build GPL v3https://johnvansickle.com/ffmpeg/
About
This repository hosts a custom AWS Lambda layer that includes static versions of FFmpeg and FFprobe utilities from the FFmpeg Linux package. These utilities are compatible with both Amazon Linux 2.x and Amazon Linux 1.x instances.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.