Streetlamp
Streetlamp

Reputation: 1556

Scalable video encoding?

I have around 10000-20000 PNG images that I need to combine to form a video. Using ffmpeg works well, but doesn't scale at the current stage. Each encoding process takes around five minutes and consumes 800-900 megabytes of RAM on a machine made to process web requests and everything slows down. I am looking for a cheap alternative to process these videos in bulk. Things I've considered:

Are there any other services or possibilities to generate the videos cost-effectively? Perhaps an AWD service I've overlooked?

Upvotes: 0

Views: 204

Answers (1)

siomes
siomes

Reputation: 181

Can't you split your jobs in multiple Lambda functions?

solution A Lambda Map-Reduce

If not, I think you can achieve this by mixing some of the services you mention.

S3 input buquet (PNG images zipped) --> triggers lambda functions --> puts SQS message/task --> consumed by EC2 spot intances.

solution B EC2 spot instances consuming tasks

Important point:

  • Make the EC2 jobs to be gracefully stopped if your bid price is lower than current and AWS turn off your instance.
  • Choose the appropiate EC2 instance family and the number of them you need

Upvotes: 1

Related Questions