Difference between revisions of "ZenCoder and Amazon S3 Integration"

(Undo revision 1872 by Patricia Schmidt (talk))
(Undo revision 1874 by Patricia Schmidt (talk))
Line 1: Line 1:
{{alert|<center><strong>NOTE!!!</strong> This page contains images from sorces that are beyond our reach. If they are not same as presented here, please refer to the original source documentation </center>|alert}}
+
{{alert|<center><strong>NOTE!!!</strong> This page contains images from sources that are outside of our scope. If they are not same as presented here, please refer to the original source documentation.</center>|alert}}
==Introduction==
+
ZenCoder makes it easy for communities that have no FFMPEG access on their server to upload and convert videos using a third party video conversion service. Recently there are some updates on Amazon AWS service that would require you to setup special 'bucket policy' to allow external service to add and retrieve files.
+
  
Upon setting up ZenCoder credentials in JomSocial Configuration, you will need to configure Amazon S3 to allow file upload and download from the S3 Bucket.
+
===Introduction===
  
===Setting it up===
+
ZenCoder makes it easy for a community that has no FFMPEG access on its server to upload and convert videos using a Third-Party video conversion service. Recently, there are some updates on Amazon's AWS service that would require you to setup a special "bucket policy" to allow an external service to add and retrieve files.
To get started, please login to the [http://aws.amazon.com/console/ Amazon AWS Console].
+
  
[[File:Amazon5.jpg]]
+
After inputting ZenCoder credentials in JomSocial Configuration, you will need to configure Amazon S3 to allow file uploading and downloading from the S3 Bucket.
  
Once you have logged in, please select the correct bucket that you will use for ZenCoder video files.
+
===Setting It Up===
  
[[File:Amazon1.jpg]]
+
# To get started, please login to the [http://aws.amazon.com/console/ Amazon AWS Console]:
 +
#;:: [[File:Amazon5.jpg]]
 +
# Once you have logged in, please select the '''correct bucket''' that you will use for ZenCoder video files:
 +
#;:: [[File:Amazon1.jpg]]
 +
# Then click '''Properties''':
 +
#;:: [[File:Amazon2.jpg]]
 +
# A bar will appear at the bottom; click '''Add bucket policy''':
 +
#;:: [[File:Amazon3.jpg]]
 +
# In the popup window, '''Copy and Paste this Policy''':
  
Then click on Properties.
 
 
[[File:Amazon2.jpg]]
 
 
A bar will appear at the bottom, and then proceed to 'Add bucket policy'.
 
 
[[File:Amazon3.jpg]]
 
 
In the popup, Copy and Paste this Policy:
 
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
 
{
 
{
Line 39: Line 35:
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
<br />
+
<br/><br/>
[[File:Amazon4.jpg]]
+
::: [[File:Amazon4.jpg]]<br/><br/>
  
You are almost ready. '''But before that, you will need to change the 'MY-BUCKET' text in the above code'''
+
You are '''''almost''''' ready, but '''first''', you will need to change the '''MY-BUCKET''' text in the above code.<br/>
  
Replace 'MY-BUCKET' with your own bucket name. Do not delete /* that appear after the bucket name. This is important to ensure all files within the bucket will have the preconfigured access privilege.
+
# Replace 'MY-BUCKET' with your own bucket name.
 +
# Do not delete the /* that appears after the bucket name. This is important to ensure that all files within the bucket will have the preconfigured access privilege.
  
Save and you are now ready to go!
+
<font color=cornflowerblue>Save and you are now ready to go!</font>
  
 
[https://app.zencoder.com/docs/guides/getting-started/working-with-s3 Reference]
 
[https://app.zencoder.com/docs/guides/getting-started/working-with-s3 Reference]

Revision as of 02:30, 12 March 2013

NOTE!!! This page contains images from sources that are outside of our scope. If they are not same as presented here, please refer to the original source documentation.

Introduction

ZenCoder makes it easy for a community that has no FFMPEG access on its server to upload and convert videos using a Third-Party video conversion service. Recently, there are some updates on Amazon's AWS service that would require you to setup a special "bucket policy" to allow an external service to add and retrieve files.

After inputting ZenCoder credentials in JomSocial Configuration, you will need to configure Amazon S3 to allow file uploading and downloading from the S3 Bucket.

Setting It Up

  1. To get started, please login to the Amazon AWS Console:
    Amazon5.jpg
  2. Once you have logged in, please select the correct bucket that you will use for ZenCoder video files:
    Amazon1.jpg
  3. Then click Properties:
    Amazon2.jpg
  4. A bar will appear at the bottom; click Add bucket policy:
    Amazon3.jpg
  5. In the popup window, Copy and Paste this Policy:
{
  "Id": "ZencoderBucketPolicy",
  "Statement": [
    {
      "Sid": "Stmt1295042087538",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::395540211253:root"
        },
      "Action": ["s3:PutObject", "s3:GetObject", "s3:PutObjectAcl", "s3:GetBucketLocation", "s3:ListBucketMultipartUploads", "s3:ListMultipartUploadParts"],
      "Resource": "arn:aws:s3:::MY-BUCKET/*"
    }
  ]
}



Amazon4.jpg

You are almost ready, but first, you will need to change the MY-BUCKET text in the above code.

  1. Replace 'MY-BUCKET' with your own bucket name.
  2. Do not delete the /* that appears after the bucket name. This is important to ensure that all files within the bucket will have the preconfigured access privilege.

Save and you are now ready to go!

Reference