{"id":19404287,"url":"https://github.com/hasithaishere/aws-ffmpeg-lambda-layer","last_synced_at":"2025-10-04T22:55:42.455Z","repository":{"id":200334292,"uuid":"704828609","full_name":"hasithaishere/aws-ffmpeg-lambda-layer","owner":"hasithaishere","description":"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.","archived":false,"fork":false,"pushed_at":"2024-06-24T02:44:32.000Z","size":649,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T22:07:31.153Z","etag":null,"topics":["amazon-linux","audio","aws","custom-layer","ffmpeg","ffprobe","lambda","media-processing","serverless","video"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hasithaishere.png","metadata":{"files":{"readme":"README-SAR.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-14T08:05:41.000Z","updated_at":"2025-07-08T08:38:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ade42eb-62eb-4739-8042-1b0a9a8ba710","html_url":"https://github.com/hasithaishere/aws-ffmpeg-lambda-layer","commit_stats":null,"previous_names":["hasithaishere/aws-ffmpeg-lambda-layer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hasithaishere/aws-ffmpeg-lambda-layer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Faws-ffmpeg-lambda-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Faws-ffmpeg-lambda-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Faws-ffmpeg-lambda-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Faws-ffmpeg-lambda-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasithaishere","download_url":"https://codeload.github.com/hasithaishere/aws-ffmpeg-lambda-layer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Faws-ffmpeg-lambda-layer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386109,"owners_count":25978113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazon-linux","audio","aws","custom-layer","ffmpeg","ffprobe","lambda","media-processing","serverless","video"],"created_at":"2024-11-10T11:33:53.232Z","updated_at":"2025-10-04T22:55:42.423Z","avatar_url":"https://github.com/hasithaishere.png","language":"Makefile","readme":"\u003cp align='center'\u003e \u003cimg src=\"https://user-images.githubusercontent.com/4580975/275339760-e9e95dcd-afd5-4ed0-9d3f-f739bd9e9a4a.jpg\"/\u003e\u003c/p\u003e\n\n\u003ch1  align='center'\u003eFFmpeg/FFprobe AWS Lambda Layer\u003cbr\u003e(Based on Amazon Linux 2)\u003c/h1\u003e\n\n\nThis 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.\n\n#### Supported AWS \n- nodejs18.x\n- nodejs16.x\n- nodejs14.x\n- python3.11\n- java17\n- go1.x\n\n## Prerequisites\n\n* Unix Make environment\n* [SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html) tool\n\n## Deploying to AWS as a layer\n\nThis layer can deployed in the AWS using following commands:\n\nFor Build the layer please use the following command:\n\n```sh\nmake build\n```\n\nFor Deploy the layer please use the following command:\n\n```sh\nmake deploy AWS_REGION=\u003cAWS_REGION\u003e STACK_NAME=\u003cSTACK_NAME\u003e \n```\n\nBy default, this uses `ffmpeg-lambda-layer` as the stack name. Provide a `STACK_NAME` variable when calling `make deploy` to use an alternative name.\n\nAnd default region is `ap-southeast-1` if you want to deploy in different region please provide `AWS_REGION` variable.\n\n\nThe `ffmpeg` and `ffprobe` binaries will be in `/opt/bin/` after linking the layer to a Lambda function.\n\n```sh\nmake deploy\n```\n\nThis 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/\n\n### How to use\n\nAfter deploy the layer, you can use the ARN of layer in your lambda function.\nIt return the latest layer ARN, please check following screenshot.\n\n```sh\narn:aws:lambda:ap-southeast-1:\u003cAWS-ACCOUNT-ID\u003e:layer:ffmpeg-lambda-layer:1  \n```\n\n\u003cp align='center'\u003e \u003cimg src=\"https://user-images.githubusercontent.com/4580975/275339769-a87fc0c9-2d72-4d7b-b341-69f051cda034.png\"/\u003e\u003c/p\u003e \u003c/p\u003e \n\nYou can use this ARN in your serverless function as following:\n\n```yaml\nResources:\n  MediaConverterFunction:\n    Type: AWS::Serverless::Function\n    Properties:\n      CodeUri: media-converter/\n      Handler: app.lambdaHandler\n      Runtime: nodejs18.x\n      Timeout: 30\n      Layers:\n        - arn:aws:lambda:\u003cAWS-Region\u003e:\u003cAWS-Account-Id\u003e:layer:ffmpeg-lambda-layer:\u003cLayer-Version\u003e\n```\n\n## Author\n\n[Hasitha Gamage](https://hasitha.xyz)\n\n## License\n\n* These Repository Code: [GPL v3](https://opensource.org/licenses/MIT)\n* FFmpeg: GPLv2.1 \u003chttp://ffmpeg.org/legal.html\u003e, John Van Sickle's static build GPL v3 \u003chttps://johnvansickle.com/ffmpeg/\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasithaishere%2Faws-ffmpeg-lambda-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasithaishere%2Faws-ffmpeg-lambda-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasithaishere%2Faws-ffmpeg-lambda-layer/lists"}