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.


Setting it up

To get started, please login to the Amazon AWS Console.



Once you have logged in, please select the correct bucket that you will use for ZenCoder video files.


Then click on Properties.


A bar will appear at the bottom, and then proceed to 'Add bucket policy'.


In the popup, 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/*"
    }
  ]
}




You are almost ready. But before that, you will need to change the 'MY-BUCKET' text in the above code.

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.

Save and you are now ready to go!


Reference



{
  "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/*"
    }
  ]
}

Common VIdeo Related Issues/Problems


Failed to fetch video.
First, ensure that you have CURL enabled on your site.

If you do have CURL enabled, and the problem persists, likely Youtube adds redirection on their videos page when your server tries to access it quite a number of times. Here's what you can do, edit the file JOOMLA/components/com_community/helpers/remote.php and add the following at around line 22.{code}curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);{/code}

Unlicensed copy (only applicable to 1.6.x and below)
We have recently just updated our new downloads area which is accessible at http://www.jomsocial.com/download.html. All you need to do is to provide your email address and order reference. Once logged in, you should be able to view all your licenses assigned to you. You are required to enter your domain name for the license in order to generate the video keys. Enter the license key in Jomsocial’s backend configuration.
Tips: Under tab “Media”, the field on right column, “Video Player License Key”.

My video thumbnails are not showing up

  1. Make sure you’re running on the latest version of Jomsocial.
  2. Make sure the “Videos Root Folder” in the configuration matches the location of the videos. Tips: Don’t put the full path. Just the folder name. e.g. videos.

Why is the video still in pending status after so long?

  1. If you are using shared hosting service, most probably your hosting company don’t have FFmpeg installed.
  2. Probably you did not enter FFmpeg path correctly.
  3. Schedule task/Cron is not running. Read how to setup cron. http://www.jomsocial.com/docs/Cron_Setup
  4. Incorrect folder permissions. FFmpeg couldn’t create new videos or thumbnails as result. Please turn on the Joomla FTP layer.

 

Frequently Asked Questions

How to post Videos?

  1. You can link them from popular video providers
  2. You can upload from local machine.
  3. Tried posting a youtube link in your profile wall? ;)

What happens to the video file I uploaded?
It will remain untouched before scheduled task / cron runs. Then FFmpeg will convert all pending videos into flv format. After that, the videos are ready and will get listed.

Can I skip FFmpeg by uploading FLV format videos?
Sorry, the answer is no for the sake of video size and quality consistency.

How do I administrate videos?
Logged in as admin, you will be able to edit/delete videos at the front-end. Same goes to feature and un-feature videos and also videos in groups.

Customizing FlowPlayer
If you know what you are doing, you can tweak flowplayer with this file: JOOMLA\components\com_community\templates\default\videos.flowplayer.php

Video Back End Configuration


Video-related configuration is located under JomSocial Configuration > Media tab.

  1. Enable Videos: Enable or disable the videos functionality in JomSocial.
  2. Enable guest search: Option to disallow guests from searching videos.
  3. Enable profile videos: Allow users to select a video for their profile.
  4. Enable videos upload: Enable or disable the videos uploading feature in JomSocial.
  5. Video creation limit: Set a limit to creation of videos per user.
  6. Delete original videos: If enabled, original videos are deleted once the videos are converted to the appropriate formats.
  7. Videos root folder: Set the path to where videos are stored.
  8. Maximum video upload size: Set the maximum uploaded video size allowed in Megabytes (MB)
  9. FFMPEG Path: Set the absolute path to FFMPEG binary. If the binary is not found, JomSocial will not be able to convert videos into .flv formats.
  10. FLVTool2 Path: Set the absolute path to FLVTool2 binary to enable flash video metadata injections.
  11. Video Quantizer Scale: Select the video quality from a scale of 1 (Excellent) to 31 (Worst). 5, 9 and 11 are recommended settings.
  12. Videos Size: Set the video frame size in width X height format.
  13. Custom Command: Specify additional commands for FFMPEG ( Advanced Users )
  14. Pseudo streaming: Allow users to skip to specific section of the video.

Setting up Video Categories

Image:Videos.jpg

To create new video categories, head over to JomSocial Control Panel and click on Video Categories.

Image:Videocategory.jpg

Subsequently click on 'New' button and a cWindow will appear for you to submit the new category.

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW