System Requirement for Video Upload
Contents |
Video Feature
Video Upload
JomSocial uses FFMPEG to convert videos into proper flv format for viewing. In order to have video upload feature, you must have FFMPEG installed and accessible on your server. Most shared webhost disable this option because it consumes a lot of memory and processing power. Please consult your webhost on the availability of FFMPEG on your server. It is advisable to have at least VPS before you consider allowing video upload.
Video Linking
Linking from external sites (Youtube, Metacafe, Vimeo, Break, Blip, Myspace, etc) on the other hand does not demand such high requirement. You will only need to ensure that you have CURL enabled, and you are off to go. Still, it is advisable to consult your webhost first on the existence of CURL on your site. CURL comes standard in most php installations.
Required system binaries
- FFMPEG - Responsible for converting videos into flv format
- FLVTOOL2 (Optional) - Used for injecting flash video metadata
Required PHP Extension
- Curl library (to retrieve information from external sites)
Scheduled task / Cronjob
JomSocial relies on scheduled task / cronjob to process the video and convert it to appropriate .swf file. You must make sure that your scheduled task is working according. Read more here: http://www.jomsocial.com/docs/Cron_Setup
About FFMPEG
You need to specify the path to FFMPEG in backend. Unless you don’t want your users to upload video files, which save server disk space. Then you can disable videos file upload from backend.
Read more: http://www.ffmpeg.org/
About FLVTool2
This is entirely optional. If FLVTool2 path is detected, it’ll add metadata to the flv file during schedule task/cronjob. The purpose of doing so is purely for pseudo video streaming. Google on this if you have more questions.
Read more: http://inlet-media.de/flvtool2
cURL
cURL is used to retrieve files using URL syntax. Please consult your webhost to check whether you have CURL enabled on your site. To confirm it is running, please go to Help > System Info > PHP Information > and do a search for 'curl'. A system with curl will usually have '--with-curl', and a main CURL segment as shown below.
Read more: http://curl.haxx.se/
Large Video Uploads
php.ini Tweaks
When it comes to large photo/video uploads, there are a few inter-related php.ini configurations that you will have to tweak in order to avoid timeout errors.
Those are:
max_execution_time = 9000 ; Maximum execution time of each script, in seconds max_input_time = 9000 ; Maximum amount of time each script may spend parsing request data memory_limit = 1024M ; Maximum amount of memory a script may consume post_max_size = 1024M ; Maximum size of POST data that PHP will accept. upload_max_filesize = 1024M ; Maximum allowed size for uploaded files.
(9000 and 1024M as an example).
Disable safe mode & Openbase_dir
Some hosting providers have openbase_dir and safe mode enabled. In order for the photo upload / video conversion to work, you have to disable them. If your hosting allows you to override the Apache's configuration, you need to override the vhost configuration.
<Directory /home/yourdomain/public_html/> php_admin_flag safe_mode off php_admin_value open_basedir none </Directory>
If your webhost allows for .htaccess override, locate your .htaccess file in the root Joomla directory and add these lines into it
php_admin_flag safe_mode off php_admin_value open_basedir none


