<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ClipBucket Documentation &#187; ClipBucket</title>
	<atom:link href="http://docs.clip-bucket.com/category/clipbucket-docs/feed" rel="self" type="application/rss+xml" />
	<link>http://docs.clip-bucket.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 26 Nov 2011 23:18:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Redirect from without www. to with www</title>
		<link>http://docs.clip-bucket.com/redirect-from-without-www-to-with-www</link>
		<comments>http://docs.clip-bucket.com/redirect-from-without-www-to-with-www#comments</comments>
		<pubDate>Mon, 06 Jun 2011 11:34:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>
		<category><![CDATA[ClipBucket v2]]></category>
		<category><![CDATA[How-To's]]></category>
		<category><![CDATA[2.5]]></category>
		<category><![CDATA[baseurl]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[with www]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=171</guid>
		<description><![CDATA[I have been watching forums and found many users are trying to use website with www, so here is a little guide for how to add www. to your website. Fist open ./includes/common.php and find this code $wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches); if(count($matches)>0) { $baseurl = preg_replace('/:\/\/www\./','://',$baseurl); } replace with /*$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches); if(count($matches)>0) { $baseurl = [...]]]></description>
			<content:encoded><![CDATA[<p>I have been watching forums and found many users are trying to use website with www, so here is a little guide for how to add www. to your website.</p>
<p>Fist open ./includes/common.php</p>
<p>and find this code</p>
<pre class='code'>
	$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches);
	if(count($matches)>0)
	{
		$baseurl = preg_replace('/:\/\/www\./','://',$baseurl);
	}
</pre>
<p>replace with</p>
<pre class='code'>
	/*$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches);
	if(count($matches)>0)
	{
		$baseurl = preg_replace('/:\/\/www\./','://',$baseurl);
	}*/
</pre>
<p>Now clipbucket wont remove www from your baseurl.</p>
<p>you may have to add www. from database, if you are using phpMyAdmin , simply goto cb_configs table and edit row with name &#8216;baseurl&#8217; and add www. accordingly</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/redirect-from-without-www-to-with-www/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi Server Setup &#8211; Instructions and User Guide</title>
		<link>http://docs.clip-bucket.com/multi-server-setup-instructions-and-user-guide</link>
		<comments>http://docs.clip-bucket.com/multi-server-setup-instructions-and-user-guide#comments</comments>
		<pubDate>Sat, 11 Dec 2010 10:53:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>
		<category><![CDATA[ClipBucket v2]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=337</guid>
		<description><![CDATA[ClipBucket Multiserver let you transfer your video files and encoding process to different servers. Currently we have only 1 model. C = Conversion Server U = Uploading Server S = Streaming Server A = Application Server Note : Every Model has same application server so i will not explain how application server works. Available Models [...]]]></description>
			<content:encoded><![CDATA[<p>ClipBucket Multiserver let you transfer your video files and encoding process to different servers. Currently we have only 1 model.</p>
<p>C = Conversion Server<br />
U = Uploading Server<br />
S = Streaming Server<br />
A = Application Server</p>
<p>Note : Every Model has same application server so i will not explain how application server works.</p>
<p><span style="text-decoration: underline;">Available Models</span></p>
<p><strong>A → UCS</strong> ( In this model, additional server is used for uploading, conversion and also for streaming)</p>
<p>* Files Directly uploaded to UCS<br />
* USC then convert the files, multiple files can be converted at same time and it can be changed.<br />
* UCS , if configured properly, will also produce HQ/HD video and mobile video<br />
* Once conversion is completed, it sends back conversion status back to A server which verifies the details and update video details for streaming.</p>
<p><span style="text-decoration: underline;"><em>We are working on more models</em></span><br />
<strong>A</strong> <strong>→ U </strong><strong>→ CS </strong>(in this model, files will be uploaded to U , it will then transfer files to CS server after verifying its status, then CS will convert and stream videos)<br />
<strong>A </strong><strong>→ US </strong><strong>→ C </strong><strong>→ US </strong>(In this model , files will be uploaded to US server, which will forward files to C server , after conversion it will send back video files to US server for streaming)<br />
<strong>A </strong><strong>→ U </strong><strong>→ C </strong><strong>→ </strong>S (In this model, files will be uploaded to U server, which will forward it to C server, which forward it to S server,  S server can be CDN )</p>
<p><strong>Requirements<a name="requirements"></a></strong></p>
<p>* FFMPEG with libx264 &#8211; Read <a href="http://www.andresmontalban.com/how-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel/" target="_blank">this blog</a> for how to setup proper ffmpeg<br />
* Flvtool2 or Flvtool++ (we recommend flvtool++)<br />
* Mplayer (optional but we recommend it for thumb generation)<br />
* MP4Box (required for Mp4 hq and hd videos)<br />
* PHP 5.2 or greator with CLI and CURL support<br />
* PHPShield (ixed loaders)</p>
<p><strong>Multi Server Setup Guide</strong></p>
<p>* First you need to download multiserver package from your client area and obtain a valid license.<br />
* Extract Zip and you will have to folders &#8220;application server&#8221; and &#8220;conversion server&#8221;</p>
<p><span style="text-decoration: underline;"><em><strong>important note : You Don&#8217;t Have To Install ClipBucket On Additional Servers</strong></em></span></p>
<p><strong>Installing Plug-in on Application Server<a name="installation"></a></strong></p>
<p>* Upload files to clipbucket plugins directory<br />
* Goto admin area &gt; Plugins Manager &gt; Install ClipBucket Multiserver plugin</p>
<div id="attachment_343" class="wp-caption aligncenter" style="width: 310px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2010/12/ftp_plugin_preview.png"><img class="size-medium wp-image-343" title="Plugin Upload Directory" src="http://docs.clip-bucket.com/wp-content/uploads/2010/12/ftp_plugin_preview-300x151.png" alt="" width="300" height="151" /></a><p class="wp-caption-text">Plugin Upload Directory</p></div>
<p>* Once installation is done, goto Multi Server &gt; Configuration and Enter your license key<strong><br />
* </strong>Now your application server is ready<br />
Setting Up UCS server (Model 1)<br />
* in your html directoty, create new directory, server1 or whatever you like, upload all content of &#8216;conversion server/api&#8217; to this folder, this file should work http://yourucs.com/server1/connect.php =&gt; this should say &#8220;ERROR&#8221;</p>
<div id="attachment_351" class="wp-caption aligncenter" style="width: 310px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2010/12/server_upload_preview.png"><img class="size-medium wp-image-351" title="server_upload_preview" src="http://docs.clip-bucket.com/wp-content/uploads/2010/12/server_upload_preview-300x151.png" alt="" width="300" height="151" /></a><p class="wp-caption-text">Server Upload Preview</p></div>
<p>* Now edit config.php and edit following code accordingly</p>
<table border="0" cellspacing="2" cellpadding="2" width="500">
<tbody>
<tr>
<td width="110" valign="top">Static Variable</td>
<td width="376" valign="top">Purpose</td>
</tr>
<tr>
<td valign="top">BASEDIR</td>
<td valign="top">basedirectory of your additional server api, in my case its &#8216;/var/www/html/clipbucket/server1&#8242;</td>
</tr>
<tr>
<td valign="top">BASEURL</td>
<td valign="top">base url of your api , in my case its http://mylocalhost/clipbucket/server1</td>
</tr>
<tr>
<td valign="top">PHP_PATH</td>
<td valign="top">path to your php binaries</td>
</tr>
<tr>
<td valign="top">KEEP_MP4_AS_IS</td>
<td valign="top">if uploaded file is Mp4, convert it or not.</td>
</tr>
<tr>
<td valign="top">MP4Box_BINARY</td>
<td valign="top">path to MP4Box Binaries</td>
</tr>
<tr>
<td valign="top">FLVTool2_BINARY</td>
<td valign="top">path to flvtool2 binaries</td>
</tr>
<tr>
<td valign="top">FLVToolPP_BINARY</td>
<td valign="top">path to flvtool++ binaires, its very fast and lightweight as compare to flvtool2, if you enter its path, it will automatically override flvtool2 role, read more about it <a href="http://mirror.facebook.net/facebook/flvtool++/" target="_blank">here</a></td>
</tr>
<tr>
<td valign="top">MPLAYER_BINARY</td>
<td valign="top">path to mplayer binaries, on large scale Mplayer is highly efficient in generating thumbs, as compare to ffmpeg , generating 1 hour video thumbs can take upto 2 hours, but mplayer can do this within seconds</td>
</tr>
<tr>
<td valign="top">USE_MPLAYER</td>
<td valign="top">Use Mplayer for thumb generation or not</td>
</tr>
<tr>
<td valign="top">FFMPEG_BINARY</td>
<td valign="top">path to ffmpeg binaries</td>
</tr>
<tr>
<td valign="top">ALLOWED_SERVER</td>
<td valign="top">Ip address of your Application Server, its for securit purpose so any other server cannot link with your server</td>
</tr>
<tr>
<td valign="top">SECRET_KEY</td>
<td valign="top">Its for authentication purpose, choose a special secret key, use computer generated key.<a href="http://strongpasswordgenerator.com/" target="_blank"><strong> here is the one.<br />
</strong></a> &#8211; I used abcd1234 for demonstration purpose</td>
</tr>
<tr>
<td valign="top">CALLBACK_URL</td>
<td valign="top">callback URL of your application, where conversion server will send details to, in my case its http://applicationhost/clipbucket/plugins/cb_multi_server/api/call_back.php</td>
</tr>
</tbody>
</table>
<h3>Finally Adding A Server<a name="add_server"></a></h3>
<p>* Now goto your application server admin area, in my case its http://applicationhost/clipbucket/admin_area<br />
* Multi Servers &gt; Manage Servers &gt; Add New Server</p>
<table border="0" cellspacing="2" cellpadding="2" width="500">
<tbody>
<tr>
<td width="110" valign="top">Option</td>
<td width="376" valign="top">Purpose</td>
</tr>
<tr>
<td colspan="2" align="right" valign="top">* are required</td>
</tr>
<tr>
<td valign="top">Server Name*</td>
<td valign="top">Name your additional server, it can anything.</td>
</tr>
<tr>
<td valign="top">Server IP*</td>
<td valign="top">Ip address of your server</td>
</tr>
<tr>
<td valign="top">Server Api Path*</td>
<td valign="top">path to your server api, the same as baseurl we set in config.php , in my case http://mylocalhost/clipbucket/server1</td>
</tr>
<tr>
<td valign="top">Secret Key*</td>
<td valign="top">For Authentication Purpose, already told you before, in my case it was abcd1234</td>
</tr>
<tr>
<td valign="top">Max Usage*</td>
<td valign="top">How much space you allow to upload videos, in Gigabytes</td>
</tr>
<tr>
<td valign="top">Status</td>
<td valign="top">Set your multiserver status, set Active to make it fully functional</td>
</tr>
</tbody>
</table>
<p>ClipBucket multiserver allowed you to mass upload videos on multiservers via FTP, you need to configure it properly</p>
<table border="0" cellspacing="2" cellpadding="2" width="500">
<tbody>
<tr>
<td width="110" valign="top">Option</td>
<td width="376" valign="top">Purpose</td>
</tr>
<tr>
<td valign="top">FTP Host</td>
<td valign="top">Your ftp host for connection</td>
</tr>
<tr>
<td valign="top">FTP User</td>
<td valign="top">Your ftp username</td>
</tr>
<tr>
<td valign="top">FTP Pass</td>
<td valign="top">Your password</td>
</tr>
<tr>
<td valign="top">FTP Port</td>
<td valign="top">mostly its 21 but depends on your configurations</td>
</tr>
<tr>
<td valign="top">FTP Dir</td>
<td valign="top">path to &#8216;temp&#8217; directory of your server api, my server api is placed in /var/www/html/clipbucket/server1 and when i connect to my ftp, it takes me to /html directoty. i have set my FTP dir value to /clipbucket/server1/files/temp</td>
</tr>
</tbody>
</table>
<p>If your details are correct, your server will be added otherwise it will display error.</p>
<p>Now , i am hopeful that your server will be added, if you need more help you can contact client.clip-bucket.com.</p>
<h3>Editing Template<a name="edit_template"></a></h3>
<p>there is still 1 last step left and its simple.</p>
<p>* open global_header.html of your template , by default /styles/cbv2new/layout/global_header.html</p>
<p>find</p>
<pre class="code">flash_url : "{$js}/swfupload/swfupload.swf",
upload_url: "{$baseurl}/actions/file_uploader.php",
</pre>
<p>replace with</p>
<pre class="code">{assign var="get_api_server" value=$multi_server-&gt;get_server_api()}
{if $get_api_server}
    flash_url : "{$get_api_server.server_api_path}/js/swfupload/swfupload.swf",
    upload_url: "{$get_api_server.server_api_path}/actions/file_uploader.php",
{else}
    flash_url : "{$js}/swfupload/swfupload.swf",
    upload_url: "{$baseurl}/actions/file_uploader.php",
{/if}
</pre>
<p>Now your multiserver is ready, upload some videos and see what you get.</p>
<h2>FAQs<a name="faqs"></a></h2>
<p><strong>Q: how to limit the concurrent converting process ?</strong><br />
<strong>A : </strong>you have to do it manually by editing ffmpeg.class on conversion server , file path is &#8216;/includes/classes/conversion/ffmpeg.class.php&#8217; in this , change PROCESSESS_AT_ONCE from 4 to whatever you like</p>
<p><strong>Q: Multiserver keep using same server for uploading and conversion, whats wrong?</strong><br />
A: There is nothing wrong, clipbucket prioritize based on its space left. one with more space will be used often then the one which has low space.</p>
<p>For Troubleshooting or Assistance , Please contact http://client.clip-bucket.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/multi-server-setup-instructions-and-user-guide/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix video conversion problem</title>
		<link>http://docs.clip-bucket.com/how-to-fix-video-conversion-problem</link>
		<comments>http://docs.clip-bucket.com/how-to-fix-video-conversion-problem#comments</comments>
		<pubDate>Tue, 10 Aug 2010 04:43:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=158</guid>
		<description><![CDATA[This topic has been discussed many times so i am going to write a complete guide to track your video conversion problem and fix it. I am using ClipBucket 2.0.9, if you have not already update to latest version, please download it from http://clip-bucket.com/latest Adding some of my Forum post content, here is what we [...]]]></description>
			<content:encoded><![CDATA[<p>This topic has been discussed many times so i am going to write a complete guide to track your video conversion problem and fix it. I am using ClipBucket 2.0.9, if you have not already update to latest version, please download it from http://clip-bucket.com/latest</p>
<p>Adding some of my Forum post content, here is what we are going to track our problem.</p>
<ol>
<li>Folder permission checking</li>
<li>Uploading &amp; Conversion Settings</li>
<li>Server Modules Settings</li>
<li>Testing file upload Part 1</li>
<li>Testing file upload Part 2</li>
</ol>
<h2>Folder Permission checking<a name="folder_permission_checking"></a></h2>
<ul>
<li>Check all directories in &#8220;files&#8221; folder are chmod (permission)  to 777</li>
<li>Check there is not PHP error on any of your page</li>
<li>Check user login</li>
<li>Check Browsing issue</li>
</ul>
<p>please fix all the above issues before going to next step</p>
<h2>Uploading &amp; Conversion Settings<a name="uploading_conversion_settings"></a></h2>
<p>Goto Admin Area &gt; Website Settings &amp; Configurations &gt; Upload &amp; Conversion Settings</p>
<ul>
<li>First make sure your FFMPEG, PHP and Flvtool2 Path is correct</li>
<li>Mp4Box incase you want to get videos output in Mp4 Format (HQ only)</li>
<li>If your FFMPEG version is greater than 20000, it may requires VF option on, we will try with &#8220;Use Vf On&#8221;</li>
<li>Turn of &#8220;use crons&#8221; so we can convert videos directly</li>
</ul>
<h2>Server Modules Check<a name="server_modules_check"></a></h2>
<p>Goto Admin Area &gt; Tool Box &gt; Server Modules</p>
<ul>
<li>Make Sure all statuses are green ( a check sign)</li>
<li>if something showing (ALERT) sign, go back to step 2, change settings according to your host</li>
<li>FFMPEG version should be greater than 19000</li>
<li>FLVtool2 1.6 or greater</li>
<li>Ask your host for weather they support PHP CLI or not, 90% host support it by default</li>
</ul>
<h2>Testing File Upload Part 1<a name="testing_file_upload_1"></a></h2>
<p>now we are going to upload a small file, less than 2MB you can search for &#8220;Bill Gates Pie WMV&#8221; or something good for testing purpose only</p>
<ol>
<li>Goto Upload (Front End)</li>
<li>Fill the details and upload file and wait till you are redirected to Success Page</li>
<li>Now open up Facebook, login to your account, check your inbox and new updates, logout, close facebook</li>
<li>Goto Admin Area  &gt; Video Manager</li>
<li>Now you have one of three status &#8220;Successfull&#8221; , &#8220;Processing&#8221; , &#8220;Failed&#8221;</li>
</ol>
<h3>Successfull<a name="successfull"></a></h3>
<p>if your status is succcessful, move to next part. Congratualation for  passing this phase <img src='http://docs.clip-bucket.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Failed<a name="failed"></a></h3>
<p>Open &#8220;File Conversion Log&#8221; and check whey FFMPEG is not conversion videos, there could be one of following problems</p>
<ol>
<li>unrecognized option &#8216;-vf&#8217;<br />
Turn off &#8220;use vf&#8221; in upload &amp; conversion settings under FFMPEG PATH field</li>
<li>option &#8216;padcolor&#8217; has been removed, use  the pad filter instead<br />
Turn on &#8220;use vf&#8221; in upload &amp; conversion settings under FFMPEG PATH field</li>
<li>Check for any &#8216;libmp3lame&#8217; or &#8216;libx264&#8242; or any codec error<br />
Ask your host to re compile your FFMPEG with required codecs</li>
</ol>
<h3>Processing<a name="processing"></a></h3>
<p>Now, the most difficult part..fasten your seat belts.</p>
<ol>
<li>Goto Admin Area &gt; Tool Box &gt; Conversqion queue</li>
<li>Check if processing is started or not, if not, then your PHP Path is wrong or your PHP Does not support CLI or your <a href="http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv">register_argc_argv</a> is not enabled</li>
<li>Fix these problems and then start again from Part 4</li>
</ol>
<h2>Testing file upload Part 2<a name="testing_file_upload_2"></a></h2>
<ol>
<li>Now upload 10 MB video</li>
<li>Wait for uploading &amp; Success Page</li>
<li>Now open Youtube, search for new movies trailers, watch it (in HD) , once finished, get back to ClipBucket admin panel</li>
<li>check , what is file status, if failed, follow instructions above, if success, carry on with your ClipBucket but</li>
<li>if Processing , check weather file is uploaded in /files/temp folder</li>
</ol>
<p>Well, thats it for now, i will write more instructions &#8220;if required&#8221; later&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/how-to-fix-video-conversion-problem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLVTool2</title>
		<link>http://docs.clip-bucket.com/flvtool2</link>
		<comments>http://docs.clip-bucket.com/flvtool2#comments</comments>
		<pubDate>Tue, 19 Jan 2010 12:37:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>
		<category><![CDATA[FLVTool2]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=80</guid>
		<description><![CDATA[FLVTool2 is a manipulation tool for Macromedia Flash Video files (FLV). It can calculate a lot of meta data, insert an onMetaData tag, cut FLV files, add cue points (onCuePoint), show the FLV structure and print meta data information in XML or YAML. Overview of Cue Points: A cue point is any significant moment in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>FLVTool2</strong> is a manipulation tool for Macromedia Flash Video files (<a title="FLV" href="https://www.flashsec.org/wiki/FLV" target="_blank">FLV</a>). It can calculate a lot of meta data, insert an onMetaData tag, cut FLV files, add cue points (onCuePoint), show the FLV structure and print meta data information in XML or YAML.</p>
<p><strong>Overview of Cue Points:</strong> A cue point is any significant moment in time occurring within a video clip.   Cue points enable you to access different segments of a video clip. With Flash   Video, you can create and manage cue points in a variety of ways. This series   provides a comprehensive guide to the use of cue points in Flash Video. In   this first installment, you learn the basics of cue points and the requirements   to create cue point data.</p>
<p>So in short FLVTool2 improve the quality of video what FFMPEG produced.</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/flvtool2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How ClipBucket Video Conversion Works?</title>
		<link>http://docs.clip-bucket.com/how-clipbucket-video-conversion-works</link>
		<comments>http://docs.clip-bucket.com/how-clipbucket-video-conversion-works#comments</comments>
		<pubDate>Tue, 19 Jan 2010 10:54:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=66</guid>
		<description><![CDATA[ClipBucket video conversion architects..]]></description>
			<content:encoded><![CDATA[<p>ClipBucket video conversion architects..</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/how-clipbucket-video-conversion-works/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>ClipBucket Installation</title>
		<link>http://docs.clip-bucket.com/clipbucket-installation</link>
		<comments>http://docs.clip-bucket.com/clipbucket-installation#comments</comments>
		<pubDate>Sun, 17 Jan 2010 16:53:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=62</guid>
		<description><![CDATA[Requirements Installation After Installation Troubleshoot &#38; Support Requirements PHP 5.2.x &#38; MySql 5.x.x PHP with Background Processing and Exec Enabled GD Library For Captchas and Other Image Manuplation FFMPEG &#8211; FLVTOOL2 &#8211; MP4Box Installation New Installation Update from v2.x Upgrade from v1.x first extract downloaded file, you will find &#8220;upload&#8221; folder , LICENSE and README [...]]]></description>
			<content:encoded><![CDATA[<div id="sections">
<ul>
<li><a href="#requirements">Requirements</a></li>
<li><a href="#installation">Installation</a></li>
<li><a href="#after_installation">After Installation</a></li>
<li><a href="#trouble">Troubleshoot &amp; Support</a></li>
</ul>
</div>
<h2>Requirements <a name="requirements"></a></h2>
<ol>
<li>PHP 5.2.x &amp; MySql 5.x.x</li>
<li>PHP with Background Processing and Exec Enabled</li>
<li>GD Library For Captchas and Other Image Manuplation</li>
<li>FFMPEG &#8211; FLVTOOL2 &#8211; MP4Box</li>
</ol>
<h2>Installation<a name="installation"></a></h2>
<ul>
<li>New Installation</li>
<li>Update from v2.x</li>
<li>Upgrade from v1.x</li>
</ul>
<p>first extract downloaded file, you will find &#8220;upload&#8221; folder , LICENSE and README file</p>
<h3>New Installation</h3>
<ul>
<li>Upload all files of /upload folder to your website folder</li>
<li>Now Open your website as http://yourwebsite.com/install</li>
<li>Click on &#8220;Fresh Installation&#8221; and Follow instructions</li>
</ul>
<h3>Upgrade from v2.x</h3>
<ul>
<li>Backup your database</li>
<li>Backup your template or rename its folder if you have done any customization (only for Default Template)</li>
<li>Upload and overwrite existing files</li>
<li>Remove /files/install.loc file from your website</li>
<li>Point your websie URL to /install folder</li>
<li>Click on &#8220;Update from 2.x&#8221;</li>
<li>Follow the instructions</li>
</ul>
<h3>Upgrader from v1.x</h3>
<ul>
<li>Must Create BACKUP OF YOUR DATABASE</li>
<li>Only VIDEO &#8211; MEMBERS and VIDEO COMMENTS will be imported</li>
<li>Upload all files of /upload directory to your website clipbucket folder, overwrite existing</li>
<li>Now point your website to /install folder</li>
<li>Click on &#8220;Upgrade from v1.7&#8243;</li>
<li>Follow The instructions</li>
<li>Upgrading is done via AJAX, please keep following Instructions until you find Admin Panel <img src='http://docs.clip-bucket.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<h2>After Installation<a name="after_installation"></a></h2>
<p>now once you have done a successfull installation, you must read following instructions in order to work ClipBucket properly</p>
<ul>
<li>Setting Up Admin Panel</li>
<li>Setting Up Crons</li>
</ul>
<h3>Setting Up Admin Panel</h3>
<ul>
<li>Ask your Web Host for following modules paths
<ol>
<li>FFMPEG</li>
<li>FLVtool2</li>
<li>Mp4Box</li>
<li>PHP</li>
</ol>
</li>
<li>You can also get these patsh by clicking on &#8220;Server Modules Info&#8221; in Tool Box Menu</li>
<li>Once you Get these paths, Goto Website Configurations &gt; &#8220;Upload and Conversion&#8221; &gt; Enter Paths and Save them accordingly</li>
<li>Once you save your settings, go back to &#8220;Server Modules Info&#8221;, you will find all modules status OK in form of CHECK icon</li>
<li>Now Edit your settings accordinly</li>
</ul>
<h3>Setting Up Crons</h3>
<p>cron jobs are required to do automation jobs such as conversion, generating stats, file manipulation etc&#8230;</p>
<ul>
<li>Our cron jobs require PHP path to run</li>
<li>Please refer to following screenshote for graphical demonstration</li>
<li>A Video tutorial will be posted soon for setting cron jobs on cPanel and other Control Panels</li>
</ul>
<p>crons jobs will be set like * * * * * /path/to/php -q /path/to/file, path to php are mostly like either only &#8220;php&#8221; or &#8220;/usr/local/bin/php&#8221; or &#8220;/usr/bin/php&#8221;, please ask your host for setting up crons cause they better know their servers and paths</p>
<p>1) Every Minute, Every Hour, Every Day, Every Month, Every Weekend (or set accordingly)</p>
<pre class="code">* * * * * php -q /relative/path/to/clipbucket/actions/video_convert.php</pre>
<p>2) Every Minute, Every Hour, Every Day, Every Month, Every Weekend (or set accordingly)</p>
<pre class="code">* * * * * php -q /relative/path/to/clipbucket/actions/verify_converted_videos.php</pre>
<p>3)0 Minute of Hour, 0,12,23 Hours of a Day, Every Day, Every Month, Every Weekend</p>
<pre class="code">0 0,12,13 * * *
php -q /relative/path/to/clipbucket/actions/update_cb_stats.php</pre>
<div id="attachment_105" class="wp-caption aligncenter" style="width: 310px"><a href="http://docs.clip-bucket.com/wp-content/uploads/2010/01/cron_jobs.png"><img class="size-medium wp-image-105" title="cron_jobs" src="http://docs.clip-bucket.com/wp-content/uploads/2010/01/cron_jobs-300x86.png" alt="ClipBucket Cron Jobs Demonstration" width="300" height="86" /></a><p class="wp-caption-text">ClipBucket Cron Jobs Demonstration</p></div>
<p>thats all for now</p>
<h2>Troubleshoot &amp; Support<a name="trouble"></a></h2>
<ul>
<li><a href="http://forums.clip-bucket.com">Forums (recommended)</a></li>
<li><a href="http//docs.clip-bucket.com/">Documentation</a></li>
<li><a href="http://clip-bucket.com/contact">Contact</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/clipbucket-installation/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Files &amp; Folder Permissions</title>
		<link>http://docs.clip-bucket.com/files-folder-permissions</link>
		<comments>http://docs.clip-bucket.com/files-folder-permissions#comments</comments>
		<pubDate>Thu, 14 Jan 2010 14:41:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=53</guid>
		<description><![CDATA[Content goes here&#8230;]]></description>
			<content:encoded><![CDATA[<p>Content goes here&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/files-folder-permissions/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Video Conversion Settings</title>
		<link>http://docs.clip-bucket.com/video-conversion-settings</link>
		<comments>http://docs.clip-bucket.com/video-conversion-settings#comments</comments>
		<pubDate>Sun, 03 Jan 2010 22:50:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=51</guid>
		<description><![CDATA[Max Video Height Max Video Width Resize Type Video Codec Audio Codec Video Rate &#38; Bitrate Audio Rate &#38; Bitrate ClipBucket video conversion settings let you control the way you want to process your videos. Following modules are you used for a video conversion FFMPEG FLVTool2 Mp4Box You must set there paths properly so ClipBucket [...]]]></description>
			<content:encoded><![CDATA[<div id="sections">
<ul>
<li><a href="#max_video_height">Max Video Height</a></li>
<li><a href="#max_video_width">Max Video Width</a></li>
<li><a href="#resize_type">Resize Type</a></li>
<li><a href="#video_codec">Video Codec</a></li>
<li><a href="#audio_codec">Audio	Codec</a></li>
<li><a href="#video_rate_bitrate">Video Rate &amp; Bitrate</a></li>
<li><a href="#audio_rate_bitrate">Audio Rate &amp; Bitrate</a></li>
</ul>
</div>
<p>ClipBucket video conversion settings let you control the way you want to process your videos.</p>
<p>  Following modules are you used for a video conversion
</p>
<ol>
<li><a href="http://docs.clip-bucket.com/clipbucket-docs/ffmpeg">FFMPEG</a></li>
<li><a href="http://docs.clip-bucket.com/clipbucket-docs/flvtool2">FLVTool2</a></li>
<li><a href="http://docs.clip-bucket.com/clipbucket-docs/mp4box">Mp4Box</a></li>
</ol>
<p>You must set there paths properly so ClipBucket can send commands to these modules and process videos..</p>
<p>Following video conversion settings can be changed .</p>
<ul>
<li>Max Video Height</li>
<li>Max Video Width</li>
<li><a href="http://docs.clip-bucket.com/clipbucket-docs/resize-video-type">Resize Type</a></li>
<li>Video Codec</li>
<li>Audio Codec</li>
<li>Video Rate &amp; Bitrate</li>
<li>Audio Rate &amp; Bitrate</li>
</ul>
<p>first of all,  i wanted to tell you how ffmpeg performs a conversion command, on very start ffmpeg commands look like this</p>
<pre class="code">ffmpeg -i video.flv</pre>
<h3>Max Video Height<a name="max_video_height"></a></h3>
<p>basically it sets Video height that is going to be converted, if you want to resize your video to specific height, you can set its height in pixels</p>
<h3>Max Video Width<a name="max_video_width" id="max_video_width"></a></h3>
<p>Like height, you can also set Video width so all converted videos can be resized accordinly, please read <a href="http://docs.clip-bucket.com/clipbucket-docs/resize-video-type">resize type </a>for further details</p>
<p>when you set video heigh and width, ffmpeg command looks like this</p>
<pre class="code">ffmpeg -i video.flv -s widthxheight</pre>
<p>NOTE : Additional flags will be added such as -aspect, -padcolor becuase when ffmpeg resize the video, ClipBucket tries to tell ffmpeg to keep converted video within Standard Dimentsion</p>
<h3>Resize Type<a name="resize_type" id="resize_type"></a></h3>
<p>resize type tells ClipBucket what kin of resize you want ,<a href="http://docs.clip-bucket.com/clipbucket-docs/resize-video-type"> please click here for details</a></p>
<p>Now lets talk about reall options</p>
<h3>Video Codec<a name="video_codec" id="resize_type2"></a></h3>
<p>FFMPEG using different codecs to convert different types of videos, such as, if you need to convert your videos to AVI (xvid) , codec you will use is libxvid. Similarly, we can use codecs for FLV, why i am sayin codec<strong>s </strong>is because, we can convert FLV with different codecs with different qualities and for different features. ClipBucket can convert videos to FLV using following codecs</p>
<ul>
<li>flv</li>
<li>libx264</li>
</ul>
<p>there are many others but no need to discuss about them , FLV codec simply converts video to FLV format that is playable in any web FLV Player or desktop, but what libx264 can do is , it can produce HQ flv videos with lowest possible size using high compression technique that requires highly CPU usage and also ffmpeg complied(installed) with libx264 codec. You can check your ffmpeg codecs by clicking on &#8220;Server Modules Check&#8221; under &#8220;Tool Box&#8221; menu, weather your ffmpeg has this codec installed or not. If you are planning for big video sharing website with HTTP STREAMING, i recommend you to got with libx264 otherwise flv is best for you.<br />
One more important part of FLV video conversion is FLVTool2 ( FLV META DETA INJECTOR) , please read more about <a href="http://docs.clip-bucket.com/clipbucket-docs/how-clipbucket-video-conversion-works">ClipBucket Conversion Architect Here</a></p>
<p>ffmpeg command will look like this</p>
<pre  class="code">ffmpeg -i video.flv -s widthxheight -vcodec libx264</pre>
<h3>Audio Codec<a name="audio_codec" id="audio_codec"></a></h3>
<p>For Audio, we use audio codecs to perform conversion and get best audio, for this purpose , we can use following codecs</p>
<ol>
<li>Mp3</li>
<li>libmp3lame</li>
<li>libfaac</li>
</ol>
<p>if you dont know what audio codec to use, you can either set it as BLANK or &#8216;Mp3&#8242; , to me , it doest matter as if you want to know about core functionalities, this is not a right place to do :p, however i can tell what libmp3lame and libfaac do. As their names tell, libmp3lame encode video in Mp3 audio, yea the best you can get, but for videos, there is one more codec/format and that is libfaac, what it does is , it gives audio output in AAC format that is highlt compressed with best quality, you can expect it from here that IPod also uses the same format..</p>
<p>My recommendations, if you are using FLV as video codec, go with libmp3lame, if using libx264 , then libfaac is the best option you can get.. but make sure your ffmpeg is compiled with libfaac. otherwise it will not process your video</p>
<p>ffmpeg command</p>
<pr class="code">ffmpeg -i video.flv -s widthxheight -vcodec libx264 -acodec libfaac</pr>
<h3>Video rate and bitrate<a name="video_rate_bitrate" id="audio_codec2"></a></h3>
<p>video rate tells ffmpeg how many frame rate it should use to convert a videos, video FILE SIZE and video rate are directly proportional, hope you understand what i meant <img src='http://docs.clip-bucket.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  , i recommend from 23 ~ 30</p>
<p>Video bitrate tells the quality of Video, the higher the quality the higher the size and high compression will be required, so it is also directly proportional to video size, most high qualit videos such as AVI 512 K , ( 512000) ,  i suggest you to set it like 256 K or 512 K (256000 or 512000)</p>
<p>ffmpeg command</p>
<pre class="code">ffmpeg -i video.flv -s widthxheight -vcodec libx264 -acodec libfaac -r 30 -b 512000</pre>
<h3>Audio Rate and Bitrate<a name="audio_rate_bitrate" id="audio_codec3"></a></h3>
<p>well, audio rate (<a href="http://en.wikipedia.org/wiki/Sampling_rate">sampling rate</a>)</p>
<p>Commonly used sample rates are <em>22.05K</em>, 32K, 44.1<em>K</em> &amp; 48K , go with that best suites you, i recommend, 32 k (32000), and regarding audio bitrate, the more the best quality you get, most HQ audios are 128 K, some are 256k but i recommend you to go with 128K</p>
<p>ffmpeg command</p>
<pre class="code">ffmpeg -i video.flv -s widthxheight -vcodec libx264 -acodec libfaac -r 30 -b 512000 -ab 128000  -ar 32000</pre>
<p>Now final output can be this</p>
<pre class="code">ffmpeg -i video.flv -s widthxheight -vcodec libx264 -acodec libfaac -r 30 -b 512000 -ab 128000  -ar 32000 -f flv output.flv</pre>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/video-conversion-settings/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resize Video Type</title>
		<link>http://docs.clip-bucket.com/resize-video-type</link>
		<comments>http://docs.clip-bucket.com/resize-video-type#comments</comments>
		<pubDate>Sun, 03 Jan 2010 20:30:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=49</guid>
		<description><![CDATA[Resize video type goes here&#8230;]]></description>
			<content:encoded><![CDATA[<p>Resize video type goes here&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/resize-video-type/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP</title>
		<link>http://docs.clip-bucket.com/php</link>
		<comments>http://docs.clip-bucket.com/php#comments</comments>
		<pubDate>Sun, 03 Jan 2010 18:56:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ClipBucket]]></category>

		<guid isPermaLink="false">http://docs.clip-bucket.com/?p=45</guid>
		<description><![CDATA[PHP docs goes here&#8230;]]></description>
			<content:encoded><![CDATA[<p>PHP docs goes here&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://docs.clip-bucket.com/php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

