aws-samples / image-optimization

Simple, performant and cost efficient solution for optimizing images using Amazon CloudFront, Amazon S3 and AWS Lambda
MIT No Attribution
172 stars 106 forks source link

Adapting to Support Videos #23

Closed larrettgee closed 6 months ago

larrettgee commented 6 months ago

First of all, thanks so much for the construction of this repository. It made getting my image CDN and optimization off the ground pretty easy!

The web app I'm building on is aiming to support both image and video types. Is there a way to adapt this repo to handle mov, mp4, and so forth?

Thanks in advance!

achrafsouk commented 6 months ago

Hello! what is the use case?

larrettgee commented 6 months ago

I'm looking to optimize user submitted videos in the same way this repo currently optimizes photos!

achrafsouk commented 6 months ago

I think that the video workflow is different. The image one is done in the fly synchronously when an image is requested. For Video i think it makes more sense to do it asynch when the video is uploaded.

larrettgee commented 6 months ago

Thanks for the advice and makes sense! Do you have any references on where I could get some guidance on that approach?

achrafsouk commented 6 months ago

check this https://aws.amazon.com/solutions/implementations/video-on-demand-on-aws/