aws-workflow-video-on-demand
aws-workflow-video-on-demand copied to clipboard
Trigger transcoding through uploading to s3 bucket instead of using the API (CURL request)
Hi, Bravo for the good work on this article (https://medium.com/trackit/how-to-setup-a-video-on-demand-service-on-aws-b572eb06f240). I was able to follow the tutorial upto "Using the API" section. I do not want to use CURL, but instead I want to trigger processing/transcoding by uploading videos to S3 bucket via the AWS S3 console and get the transocoded video urls and their thumbnail urls as ouput. Is this possible?
Hi @bmunyoki!
Thank you for your feedback!
Unfortunately, you cannot upload a video to S3 without using cURL because when you do POST /videos, API Gateway will create an entry for your video into DynamoDB.
If you really want to avoid making this API request, you will need to modify the code in the Lambda that will be triggered once you put a file in S3 (see mediaconvert.py -> convert_video).
In this Lambda, you will have to create a new entry in DynamoDB, like what is done when you do POST /videos (see api.py -> upload_video).