I have a rails app that should allow users to upload videos and stream them. I'm using carrierwave-direct to upload the video files. Carrierwave-direct utilizes fog to upload directly to an Amazon S3 bucket. I kick off a background job for the upload using Sidekiq. This all works.
I now need to transcode each video as it is uploaded. I plan on using Amazon's Elastic Transcoder to do this. How do I kick off the transcoder with Sidekiq? After the file is uploaded, how do I use the AWS-SDK gem with Sidekiq to start a transcoding job and have a file from s3 be converted? Will I need a new background worker for this job? Can I just use only one worker for this? I'm lost on this issue. I have looked everywhere and the documentation on actually using the elastic transcoder is thin.
I'm looking for a more general answer and a sample just so that I can get started. Once I know how to handle this process I think that I can manage.