Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger transcoding through uploading to s3 bucket instead of using the API (CURL request) #5

Open
bmunyoki opened this issue Apr 24, 2020 · 1 comment

Comments

@bmunyoki
Copy link

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?

@hug33k
Copy link
Contributor

hug33k commented Apr 24, 2020

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants