Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou must be signed in to change notification settings

hasithaishere/aws-ffmpeg-lambda-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFmpeg/FFprobe AWS Lambda Layer
(Based on Amazon Linux 2)

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.

Supported AWS

  • nodejs18.x
  • nodejs16.x
  • nodejs14.x
  • python3.11
  • java17
  • go1.x

Prerequisites

Deploying to AWS as a layer

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/

How to use

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>

Author

Hasitha Gamage

License

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp