GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hasithaishere/aws-ffmpeg-lambda-layer: 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.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README-SAR.md
README-SAR.md
 
 
README.md
README.md
 
 
samconfig.sample.toml
samconfig.sample.toml
 
 
template.yaml
template.yaml
 
 

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

  • Unix Make environment
  • SAM CLI tool

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 uses ffmpeg-lambda-layer as the stack name. Provide a STACK_NAME variable when calling make deploy to use an alternative name.

And default region is ap-southeast-1 if you want to deploy in different region please provide AWS_REGION variable.

The ffmpeg and ffprobe 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 out https://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::Function
    Properties:
      CodeUri: media-converter/
      Handler: app.lambdaHandler
      Runtime: nodejs18.x
      Timeout: 30
      Layers:
        - arn:aws:lambda:<AWS-Region>:<AWS-Account-Id>:layer:ffmpeg-lambda-layer:<Layer-Version>

Author

Hasitha Gamage

License

  • These Repository Code: GPL v3
  • FFmpeg: GPLv2.1 http://ffmpeg.org/legal.html, John Van Sickle's static build GPL v3 https://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

amazon-linuxaudioawscustom-layerffmpegffprobelambdamedia-processingserverlessvideo

Resources

Readme
GPL-3.0 license
Activity

Stars

14 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.