Serverless mp3 and mp4 to HLS converter using Zappa, AWS Lambda, API Gateway, S3 and FFmpeg : Deploy and test application

Deploy and test application

Let us deploy our application. Within your project directory, execute:

zappa deploy

You will see a console output like this:

Created s3:ObjectCreated:* event schedule for converter.convert_to_hls!
Your updated Zappa deployment is live!:...

Now it is time to test if the lambda function runs when we upload an mp4 or an mp3 to the input S3 bucket.  Upload an mp4 file (of size less than 300MB) to the input-bucket in S3 using the AWS console.

Execute 

zappa tail 

to see live logging from your lambda.

After lambda finishes execution, go to the output S3 bucket (hls-ready) and check that a directory with .ts and .m3u8 files is created.


course logo
Serverless mp3 and mp4 to HLS converter using Zappa, AWS Lambda, API Gateway, S3 and FFmpeg
Number of sections:
7
Content length:
Delivery formats:

Instructor

Evans Boateng Owusu
Evans is a Computer Engineer and cloud technology enthusiast. He has a Masters degree in Embedded Systems (focusing on Software design) from the Technical University of Eindhoven (The Netherlands) and a Bachelor of Science in Electronic and Computer Engineering from the Polytechnic University of Turin (Italy). In addition, he has worked for the high-tech industry in the the Netherlands and other large corporations for over seven years.... Show more
Serverless mp3 and mp4 to HLS converter using Zappa, AWS Lambda, API Gateway, S3 and FFmpeg