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
Answers
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.
You can use Amazon Elastic Transcoder or AWS Elemental MediaConvert to do this automatically, rather than processing the videos with your own code.
See: