0

What I want: To add watermarks to all video files that are uploaded to the S3 bucket (mov, mp4, etc.). Then overwrite the file with it's same name with the newly transcoded file that has the watermark on it.

So, I was able to manually do this by creating a pipeline and job with elastic transcoder, but this is manual. I want this done the moment a file is uploaded to the server, overwrite the file with the new file and boom.

One, this should be a feature already but not sure why it isnt.

And two, How can I have this automatically done? Any advise? I know its possible just not sure exactly where to start here

uno
  • 1,421
  • 12
  • 38

1 Answers1

2

You need S3 bucket, a lambda along with your transcoder pipeline.

Elastic transcoder is backbone of your process. To automate transcoding, create lambda function which gets triggered by an S3 event .

More detailed explanation is here .

Aniket Chopade
  • 801
  • 5
  • 12
  • While this may answer the question; posting a link as primary information source is not the best way to answer a question. The link might become invalid after time. – Stefan Mar 13 '19 at 01:19
  • Edited with explanation – Aniket Chopade Mar 13 '19 at 01:28
  • I got as far as automating the lamdba. now i can't figure out how to specify to simply trigger on upload. it requires an input key, but i don't see how i can just do somoething like `#{}` or File.name, idk? – uno Mar 13 '19 at 04:24
  • it wants to me specify the actual name of the file, which i can't do because i wont know the name that is given and active storage randomizes everything – uno Mar 13 '19 at 04:24