Adding watermark to the video when its uploaded to the S3 bucket

286 Views Asked by At

I need to add watermark to videos uploaded to S3 bucket automatically. What would be the best and most scalable approach? I don't have much experience and its a bit challenging for me.

I've tried using fluent-ffmpeg on the node backend, but its time and resource consuming and not scaling at all, so i want to move processing part on the AWS

2

There are 2 best solutions below

1
erik258 On

AWS Lambda functions is what you're after. You can automatically tigger the lambda when an object is added to S3 or for more robust operation, have S3 write events to an SQS Queue and have a lambda process queue messages.

1
John Rotenstein On

You can use Amazon Elastic Transcoder or AWS Elemental MediaConvert to do this automatically, rather than processing the videos with your own code.

See: