madebyhiro / codem-transcode

Offline video transcoder written in node.js
Other
153 stars 68 forks source link

Idea: Incorporate provision for AWS Lambda #37

Closed shafqatevo closed 9 years ago

shafqatevo commented 9 years ago

Hi there,

AWS Lambda seems to be a perfect solution for indefinitely scalable processing jobs like ffmpeg transcoding. They already mention node-ffmpeg in their documentation. This will be great if there's a version of codem which runs in Lambda and acts when source videos are uploaded into S3, processes it and puts the resulting video in another bucket.

Thanks! Shafqat

tieleman commented 9 years ago

Looks interesting, I'll check AWS Lambda out some time!

tieleman commented 9 years ago

Upon further investigation (yes, a bit late, sorry), it seems that AWS Lambda is not really suited for this kind of task. In their own documentation/FAQ they mention that tasks need to finish in 60 seconds or less and that you only get 500MB of scratch space to perform your task. Also, you have no control over compute power. This will only make it suitable for very small encoding jobs and not really for general purpose transcoding. So I'm closing this suggestion for now, thanks!