Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
lambda Update create-lambda-role.sh Jun 13, 2019
tom-thumb-task Added tom-thumb video thumbnail generator service Apr 22, 2019
LICENSE Added tom-thumb video thumbnail generator service Apr 22, 2019
README.md Update README.md Apr 23, 2019
cheat-generate-run-tom-thumb-task.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
cheat-generate-tom-thumb-task-definition.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
create-tom-thumb-cluster.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
create-tom-thumb-log-group.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
create-tom-thumb-repository.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
delete-tom-thumb-cluster.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
generate-run-tom-thumb-task.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
generate-tom-thumb-task-definition.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
push-to-ecr.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
register-tom-thumb-task-def-template.json Added tom-thumb video thumbnail generator service Apr 22, 2019
register-tom-thumb-task.sh Added tom-thumb video thumbnail generator service Apr 22, 2019
run-tom-thumb-task-template.json Added tom-thumb video thumbnail generator service Apr 22, 2019
run-tom-thumb-task.sh Added tom-thumb video thumbnail generator service Apr 22, 2019

README.md

Tom Thumb - A Video Thumbnail Generator Task

To demonstrate invoking a long-running Fargate task on demand using Lambda

Tom Thumb is a video thumbnail generator task. It is implemented following the Container-on-Demand pattern.

In a typical usage, an user uploads a video file to a S3 bucket. A trigger is set on the S3 bucket to notify a Lambda function in the event of a file upload to the video folder in the bucket. The Lambda is deployed with a Python code to extract the name of the video file from the Lambda notification event and invoke a Fargate task. The Fargate task consists of one container that uses ffmpeg application to decode the video and freeze an image at a given position in the video. The frozen image is written to a pre-configured folder in a S3 bucket.

Setup Instructions

You can’t perform that action at this time.