{"id":18463083,"url":"https://github.com/balliasghar/serverlessvideotranscoder","last_synced_at":"2025-04-28T11:38:09.789Z","repository":{"id":195269814,"uuid":"692590220","full_name":"BalliAsghar/ServerlessVideoTranscoder","owner":"BalliAsghar","description":"A Serverless Video Transcoder With AWS","archived":false,"fork":false,"pushed_at":"2023-09-17T00:40:32.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T16:57:18.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BalliAsghar.png","metadata":{"files":{"readme":"README.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}},"created_at":"2023-09-17T00:30:48.000Z","updated_at":"2023-09-17T00:41:04.000Z","dependencies_parsed_at":"2023-09-17T08:36:05.079Z","dependency_job_id":null,"html_url":"https://github.com/BalliAsghar/ServerlessVideoTranscoder","commit_stats":null,"previous_names":["balliasghar/serverlessvideotranscoder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalliAsghar%2FServerlessVideoTranscoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalliAsghar%2FServerlessVideoTranscoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalliAsghar%2FServerlessVideoTranscoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalliAsghar%2FServerlessVideoTranscoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BalliAsghar","download_url":"https://codeload.github.com/BalliAsghar/ServerlessVideoTranscoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251306031,"owners_count":21568186,"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","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":[],"created_at":"2024-11-06T09:05:50.681Z","updated_at":"2025-04-28T11:38:09.756Z","avatar_url":"https://github.com/BalliAsghar.png","language":"TypeScript","readme":"# A Serverless Video Transcoder with AWS Lambda and ECS\n\nThis is a sample project to demonstrate how to build a serverless video transcoder with AWS Lambda and ECS.\n\n## Table of Contents\n\n- [Architecture](#architecture)\n- [Prerequisites](#prerequisites)\n- [Getting Started](#getting-started)\n- [How it works](#how-it-works)\n- [Folder Structure](#folder-structure)\n- [License](#license)\n\n## Architecture\n\n![Architecture](./architecture.png)\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- AWS account with necessary permissions\n- Docker installed locally for building ECS containers\n- Node.js and npm for Lambda function development\n\n## Getting Started\n\nTo get started with this project, follow these steps:\n\n1. Clone this repository to your local machine.\n2. Configure AWS CLI with your credentials and default region.\n3. Create S3 buckets for raw and transcoded videos (e.g., `RawBucket` and `TranscodedBucket`).\n4. Build and deploy the Lambda function in the `./lambda` directory.\n5. Build and deploy the ECS task using the Dockerfile and task definition in the `./ecs` directory.\n6. Configure event triggers for the Lambda function to monitor the `RawBucket`.\n\n## How it works\n\n1. Upload a video file to S3 bucket (e.g. `RawBucket`)\n2. S3 event triggers Lambda function (e.g. `TranscoderLambda`)\n3. Lambda function starts ECS task (e.g. `TranscoderTask`) with the video bucket and key as environment variable\n4. ECS downloads the video from S3 bucket (e.g. `RawBucket`) and transcodes it with [ffmpeg](https://ffmpeg.org/) to different resolutions (e.g. 1080p, 720p, 480p)\n5. ECS uploads the transcoded videos to different S3 bucket (e.g. `TranscodedBucket`)\n\n## Folder structure\n\n- `./lambda`: Lambda function source code\n- `./ecs`: ECS task definition and Dockerfile\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fballiasghar%2Fserverlessvideotranscoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fballiasghar%2Fserverlessvideotranscoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fballiasghar%2Fserverlessvideotranscoder/lists"}