Multimedia > ClipShare_Pro_2[1].5_RC1.zip

ClipShare_Pro_2[1].5_RC1.zip


Date: 18 November 2007 | Posted by: mafiateam
ClipShare Pro Features

Upload Progress Bar

Getting bored while uploading big files? Then you need this. Live progress bar with several statistics like: Percent, File Size, Downloaded KBytes, Elapsed Time, Estimated Time Left, Estimated Speed (KB/sec).

Background Process Video Conversion

Video Conversion can now be performed in a background server process. After a successful upload, the member doesn't have to wait (loading the page) until the conversion process is finished; he is instantly redirected to a Success page, while the video is converted in the background, and will become available on the website when ready. This solves many timeout problems experienced while uploading/converting big files.

Approve Videos

The administrator(s) can now choose to Approve Videos before they appear on the website. This function can be turned on or off.

RSS Feeds

Offer several RSS feeds for categorized groups of videos (most recent, top rated, most discussed, etc).

Member Profile Picture

Members can now add their picture (avatar) to their profile.

Video Conversion Configuration

Configure different conversion related settings: video resample, resample width & height, sound quality (rate), video bitrate, delete original videos, etc.

Stats Box

Show different website stats like: total public videos, total private videos, total members, total online members, etc

Setup instruction
I. Please make sure that your server meets the following configuration.
If you are unsure, contact your hosting company / server administrator for confirmation.


1) Linux Server (some old distributions are not supported)
2) Apache Web Server
3) MySQL (version 4 or higher)
4) PHP (version 4.3 or higher)
PHP Configuration:
safe_mode = off
register_argc_argv = on
open_basedir = (no value)
output_buffering = on
upload_max_filesize = 200M (recommended maximum video upload size in MB)
post_max_size = 200M (recommended maximum video upload size in MB)
5) GD Library 2 or higher
6) FFmpeg (http://ffmpeg.mplayerhq.hu)
7) Mplayer + Mencoder (http://www.mplayerhq.hu/design7/dload.html)
8) flv2tool (http://inlet-media.de/flvtool2)
9) Libogg + Libvorbis (http://www.xiph.org/downloads)
10) LAME MP3 Encoder (http://lame.sourceforge.net)
11) CGI-BIN Access
12) Apache mod_rewrite Enabled
13) Must be able to run PHP from the command line (CLI) with exec()
14) Allowed execution of background processes with exec(„binary > /dev/null &”)

II. Installation And Setup Instructions

1) Extract the zip file containing the software.

2) Create a new MySQL database for ClipShare and import the dump file /install/clipshare.sql using PHPMyAdmin. This will create and populate all DB tables.

3) Open /include/config.php using any text editor and edit the following variables:

$config['site_name'] = "YourSiteName";
Your web site’s name. Will appear in RSS feeds.
$config['phppath'] = '/usr/local/bin/php';
This is the full path to PHP binary. No ending slash.


$config['BASE_DIR'] = '/home/yoursite/public_html/clipshare';
This is the full path to the directory where the script is installed. No ending slash.
$config['BASE_URL'] = 'http://www.yoursite.com/clipshare';
This is the URL where the script is installed. No ending slash.
$config['tmpimgpath'] = '/home/yoursite/public_html/clipshare/tmp';
This is the full path to the directory where the /tmp folder is located. No ending slash.
$config['tmpimgpath2'] = '/home/yoursite/public_html/clipshare/tmp';
This is the full path to the directory where the /tmp folder is located. No ending slash.


$config['ffmpeg'] = '/usr/local/bin/ffmpeg';
This is the full path to FFmpeg module. No ending slash.
$config['mplayer'] = '/usr/local/bin/mplayer';
This is the full path to Mplayer module. No ending slash.
$config['mencoder'] = '/usr/local/bin/mencoder';
This is the full path to Mencoder module. No ending slash.
$config['****inject'] = '/usr/local/bin/flvtool2';
This is the full path to FLVTool2 module. No ending slash.

$config['guest_limite'] = 65535;
Guest users (unregistered) daily limit (duration in seconds)
$config['approve'] = 0;
Videos have to be approved by admin before made public (1 = yes / 0 = no)

$config['del_original_video'] = 1;
Delete original uploaded videos (and temp files) after successful conversion
(1 = yes / 0 = no)

$config['photowidth'] = "150";
User profile photo (avatar) width (pixels). Original uploaded images are redimensioned

$config['vbitrate'] = 800;
Video Bitrate (kbit/sec)- Increase/Decrease quality/filesize of the converted video


$config['sbitrate'] = 22050;
Audio Sample Rate (Hz) – Recommended to leave it to this value

$config['vresize'] = 1;
Resize/Scale Converted Video (yes = 1 / no = 0)

$config['vresize_x'] = 320;
Resized Video Width

$config['vresize_y'] = 240;
Resized Video Height




4) Open /include/dbconfig.php using any text editor and edit the database variables (host, username, password and name of the database previously created and populated)


5) Open /js/myjavascriptfx.js using any text editor and edit the following variables:
var imgurl = 'http://www.yoursite.com/clipshare/images'; No ending slash.
var baseurl = 'http://www.yoursite.com/clipshare/'; Don’t forget the ending slash.

6) Open /cgi-bin/configs/uu_default_config.pm using any text editor and edit the following variables:
temp_dir => '/home/youruser/public_html/tmp/',
This is the full path to your Clipshare installation /tmp directory
upload_dir => '/home/youruser/public_html/video/',
This is the full path to your Clipshare installation /video directory
redirect_url => 'http://www.yourwebsite.com/upload.php',
Your website URL + /upload.php
path_to_upload => 'http://workzone.clipsharedemo.com/video/',
Your website URL + /video/

7) Upload all files (except /cgi-bin folder) in the root directory or a subdirectory on your server.
8) Upload all files and folders inside /cgi-bin in your cgi-bin directory (should be in your domain/subdomain root directory)

9) CHMOD the following files and directories to 777:
/images/editorimage
/templates (and all files and folders inside)
/tmp
/chimg
/flvideo
/thumb
/video
/templates_c
/photo
10) CHMOD all files and directories from /cgi-bin to 755


III. Configuration Instructions
1) Access the Administration Area:
http://www.yoursite.com/clipshare/siteadmin (Default user: admin and password: admin)

2) Open the Settings Panel and edit important miscellaneous variables. Don’t forget to change your admin password.


3) Create Channels. Create Subscription Packages (if it’s a paid service). Add Advertising. Edit the Static Pages (About, Privacy, etc.)


4) You can now access your website at:
http://www.yoursite.com/clipshare



IV. Trouble-Shooting

Q: I have uploaded a video but I can’t play it
A: Check if you have ALL required modules installed and configured on your server. Check if the paths to the module binaries are set correctly in config.php.
Check if there are any .flv or x.flv files in /flvideo folder.
You can try changing this line in convert.php:
exec("flvtool2 -Uv $config[flvdodir]/".$vid."x.flv $config[flvdodir]/".$vid.".flv");
to
exec("$config[****inject] -Uv $config[flvdodir]/".$vid."x.flv $config[flvdodir]/".$vid.".flv");
Q: I get a „Failed to find flength file” error in progress bar
A: Edit .htaccess and add the following code:


# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off


For other problems please visit our forums at: http://forums.scriptxperts.com


IV. Customer Support


If you need help installing or configuring your script, we offer professional installation service for a flat-fee of $25. We can also install the required modules and configure your server for a flat-fee of $50. Please contact us at office@clip-share.com or using the online form.

Website: http://www.clip-share.com
Support Center: http://helpdesk.scriptxperts.com
Community Forums: http://forums.scriptxperts.com
Client Area: http://client.scriptxperts.com

See full article