Skip to content

Automate video transcoding and generate thumbnails with AWS Elemental Mediaconvert and S3 ⚡

License

Notifications You must be signed in to change notification settings

saurabh0719/automate-mediaconvert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

automate-mediaconvert

Automate video transcoding ( .m3u8 , .ts , .mp4) and generate thumbnails with AWS Elemental Mediaconvert.

This example takes an input .mp4 file and converts it into HLS format and compressed MP4 while also generating Thumbnails (specified in OutputGroups in transcode.json)

  • HLS - HTTP Live Streaming is an HTTP-based adaptive bitrate streaming communications protocol
    • MediaConvert generates the .m3u8 file and the .ts files (10s segments)

To do -

  • DASH - Dynamic Adaptive Streaming over HTTP

Process

  • Create an IAM role for Mediaconvert -

    • AmazonS3FullAccess
    • AmazonAPIGatewayInvokeFullAccess
    • Copy Role arn and put it in transcode.json (line 6)
  • Create a Queue on MediaConvert or use Default queue (transcode.json line 2) (

    • Replace 121212121212 with your Account ID
  • Set up 2 S3 buckets - one for the input file and one to store the output

    • Ensure the input bucket contains some video files to convert
  • Configure awscli with IAM Access key (or else modify convert.py to create a session)

  • Run python3 convert.py after installing requirements.txt and configuring the jobs.


Resources


About

Automate video transcoding and generate thumbnails with AWS Elemental Mediaconvert and S3 ⚡

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages