In this blog post we are going to see how to configure the Transloadit.com service for our 365 Tube project (http://365tube.codeplex.com/). Transloadit.com will be responsible for transcoding our uploaded video to mp4 and extract thumbnails from them. These videos are then stored directly on our Amazon S3 storage we created before. Hence, Transloadit.com has to know how to communicate with Amazon S3. Transloadit.com (http://www.transloadit.com) allows to create transcoding templates that process our videos like we want. After you created your account, go and create in the Template section a new template. Copy the contents of the code snippet below into the template section. Please change the “key” and “secret” values with the Amazon AWS authorization key and secret key we created before. Please also change the bucket destinations if you used a different bucket name than the names specified in our example. {
"steps":{
"encode480":{
"use": ":original",
"robot": "/video/encode",
"preset": "iphone"
},
"encode1024":{
"use": ":original",
"robot": "/video/encode",
"preset": "ipad"
},
"thumbs":{
"use": "encode480",
"robot": "/video/thumbs",
"count": 6
},
"export_t":{
"use": "thumbs",
"robot": "/s3/store",
"acl": "public-read",
"bucket": "podcastkitthumbs",
"key": "your_amazon_access_key",
"secret": "your_amazon_secret_key"
},
"export_v480":{
"use": "encode480",
"robot": "/s3/store",
"acl": "public-read",
"bucket": "podcastkitvideo",
"key": "your_amazon_access_key",
"secret": "your_amazon_secret_key"
},
"export_v1024":{
"use": "encode1024",
"robot": "/s3/store",
"acl": "public-read",
"bucket": "podcastkitvideo",
"key": "your_amazon_access_key",
"secret": "your_amazon_secret_key"
}
}
}
we only need the amazon access key and Amazon secret key in Transloadit.com. That means that your access key and secret keys are not exposed to end-users at all.
Please save the Template id of Transloadit.com because we are going to need it in our 365 Tube project that we are going to deploy on Office 365. Before, proceeding with the next steps, you might also want to test the template configuration directly on Transloadit.com. In that way we ensure that everything works as expected when interacting with Office 365.
Last but not least, we have to write down the Transloadit.com Auth key. Also this key is going to be used by our Office 365 solution. You can retrieve your authentication key by selecting “Account Settings” –> “API Credentials” in Transloadit.com.
Summary
In this blog post we saw how to configure Transloadit.com to upload the 365 Tube (http://365tube.codeplex.com/) videos and thumbnails in Amazon S3. Please save the Template Id and Auth Key of Transloadit.com for the next and last configuration step.
Stay tuned,
Patrick