user1765862
user1765862

Reputation: 14185

net core and video transcoding on aws lambda

I'm looking for a solution to:

  1. upload video to s3 bucket
  2. after video upload an aws lambda function will be triggered
  3. lambda function will use ffmpeg layer in order to transcode video (mainly cropping with other functionalities)
  4. save result (transcoded video into s3 bucket)

My language of choice inside lambda is c# and net core runtime.

I have found various resources for video manipulation with aws ffmpeg layer using lambda function but no examples in net core lambda.

My question is:

Can I use existing FFmpeg/FFprobe Lambda Layer for Amazon Linux such as this one with lambda function written in c# and .net core?

Another question:

Would you suggest Amazon Elastic Transcoder as a better choice with lambda function .net core integration?

Upvotes: 1

Views: 333

Answers (1)

ASUR4N
ASUR4N

Reputation: 11

Yes, you can transcode files using ffmpeg layer inside lambda. I have a code written in python which transcodes a file uploaded to s3 bucket into H.264(another bucket). Python and little bit of C++ are the only languages i know(newbie). So, i can't help with C#. If you are interested, i could share the logic or post my python code. I believe transcoding with lambda is better than AWS Media Transcoder considering the different options provided by ffmpeg , free 400000 gb/s and lambda being less costly (based on my calculations).

Upvotes: 1

Related Questions