<?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>ThinkSupport.net - Outsourced Web Hosting Support, Cheap Server Management, Cheap Fully Managed Dedicated Servers, Software Development, Website Designing and SEO services, Vision Helpdesk Software &#187; FFMPEG</title>
	<atom:link href="http://www.thinksupport.net/blog/category/ffmpeg/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thinksupport.net/blog</link>
	<description>Outsourced Web Hosting and Software Development</description>
	<lastBuildDate>Tue, 01 Feb 2011 12:42:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Fatal error: Call to undefined function mysqli_query() error in Rayzz script</title>
		<link>http://www.thinksupport.net/blog/fatal-error-call-to-undefined-function-mysqli_query-error-in-rayzz-script.html</link>
		<comments>http://www.thinksupport.net/blog/fatal-error-call-to-undefined-function-mysqli_query-error-in-rayzz-script.html#comments</comments>
		<pubDate>Tue, 18 Mar 2008 15:49:22 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/fatal-error-call-to-undefined-function-mysqli_query-error-in-rayzz-script.html</guid>
		<description><![CDATA[Rayzz Script Error &#8211; Fatal error: Call to undefined function mysqli_query() This can be fixed by recompiling php with mysqli support or second option is &#8211; pico common/config.inc.php Locate line &#8212; $CFG[â€™dbâ€™][â€™abstractionâ€™] = â€˜mysqliâ€™; Replace mysqli with mysql]]></description>
			<content:encoded><![CDATA[<p>Rayzz Script Error &#8211;</p>
<p><code>Fatal error: Call to undefined function mysqli_query() </code></p>
<p>This can be fixed by recompiling php with mysqli support or second option is &#8211;</p>
<p>pico common/config.inc.php</p>
<p>Locate line &#8212; </p>
<p><strong>$CFG[â€™dbâ€™][â€™abstractionâ€™] = â€˜mysqliâ€™;</strong></p>
<p>Replace mysqli with mysql</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/fatal-error-call-to-undefined-function-mysqli_query-error-in-rayzz-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSTube Installation Error.</title>
		<link>http://www.thinksupport.net/blog/ostube-installation-error.html</link>
		<comments>http://www.thinksupport.net/blog/ostube-installation-error.html#comments</comments>
		<pubDate>Sun, 09 Dec 2007 15:10:07 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/ostube-installation-error.html</guid>
		<description><![CDATA[OSTube Installation Error : The command line version of PHP could not be found. Please make sure that the cli version is installed, and that mysql.so is also activated for the cli. Solution : This error is generally caused due to &#8211; OpenBase Dir Enabled. Login to WHM >> Security Center &#8211; PHP open_basedir Tweak [...]]]></description>
			<content:encoded><![CDATA[<p><strong>OSTube Installation Error : The command line version of PHP could not be found. Please make sure that the cli version is installed, and that mysql.so is also activated for the cli.</strong></p>
<p><strong>Solution : </strong><br />
This error is generally caused due to &#8211; OpenBase Dir Enabled.</p>
<p>Login to WHM >> Security Center &#8211;<br />
PHP open_basedir Tweak >> </p>
<p>Click the check box in front of domain for which you wish to Exclude Protection.</p>
<p>Then Save it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/ostube-installation-error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPMOTION &#8211; Fatal error: phpSHIELD Loader &#8211; script loader checksum error [17] Encoded script was modified in</title>
		<link>http://www.thinksupport.net/blog/phpmotion-fatal-error-phpshield-loader-script-loader-checksum-error-17-encoded-script-was-modified-in.html</link>
		<comments>http://www.thinksupport.net/blog/phpmotion-fatal-error-phpshield-loader-script-loader-checksum-error-17-encoded-script-was-modified-in.html#comments</comments>
		<pubDate>Sun, 09 Dec 2007 10:05:24 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/phpmotion-fatal-error-phpshield-loader-script-loader-checksum-error-17-encoded-script-was-modified-in.html</guid>
		<description><![CDATA[If you are getting an error with PHPshield or you are getting a &#8220;blank screen&#8221; read below. This means you did not upload in Binary mode. The following files must be uploaded in binary 1) All files in the phpshiled folder 2) The file classes/config.php If you FTP program has a function to set transfer [...]]]></description>
			<content:encoded><![CDATA[<p>If you are getting an error with PHPshield or you are getting a &#8220;blank screen&#8221; read below.</p>
<p>This means you did not upload in Binary mode. The following files must be uploaded in binary</p>
<p>1) All files in the  phpshiled folder</p>
<p>2) The file classes/config.php</p>
<p>If you FTP program has a function to set transfer mode, you should set to &#8220;binary&#8221; when you upload the files mentioned above. The main problem is that while you ftp program may correctly know that the files in the phpshield folder must be uploaded in binary, when it comes to the config.php file, because its a php file you ftp program will most likely upload it in ascii format. While this is ok for all other php files,  config.php needs to be uploaded in binary.</p>
<p><code>Warning: dl() [function.dl]: Not supported in multithreaded Web servers</code></p>
<p>You need to turn off/disable Thread Safety this is done in your php.ini file on your server. If you dont have access to your server via SSH then ask your web host to do disable it for you.<br />
<code><br />
extension_dir does not exists /usr/lib/php/extensions/no-debug-non-zts-200343.......</code></p>
<p>Your PHP was not setup correctly. There is a folder missing on your server. All you need to do is create a folder with the same given in your error message on your server. You will need SSH access to do this, or ask your host to do it. This directory ( Extensions directory) needs to actually exist on the server.</p>
<p><code><br />
Warning: dl(): Dynamically loaded extensions aren't enabled</code><br />
You need to set the value enable_dl On (i.e.enable_dl On ) in your php.ini file on your server. You need SSH access to change this file. If you don&#8217;t have such access, ask your web host to do it for you.</p>
<p>Any other errors you get mean that you are running your PHP in safe_mode On  this needs to be set to safe_mode Off in your php.ini file</p>
<p><code>Warning: dl() has been disabled for security reasons in</code></p>
<p>The dl() function has been added to the list of disabled function on your server. You need to enable this (by removing it) in your php.ini file on the server.</p>
<p><code>BLANK SCREEN - when you load the setup or any other page</code></p>
<p>If you are getting a blank screen then you actually have any one of the problems above but your server is set to not show error notifications so you can see which error you are getting.</p>
<p>Solution:</p>
<p>The following files must be uploaded in binary</p>
<p>1) All files in the  phpshiled folder</p>
<p>2) The file classes/config.php</p>
<p><code>The phpSHIELD loader has not been installed, or is not installed correctly</code></p>
<p>If you are getting this error and you know you have all the correct files uploaded etc, then you may want to check that your domain name is not setup on your server using capital letters.</p>
<p>Example: PhPMotion.com if this is how your domain name looks like in your control panel or on your server then you will get errors. Linux is case sensitive and domain names (hosting accounts) should not be created using capital letters. So delete the hosting account and recreate it with NO CAPS  e.g. phpmotion.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/phpmotion-fatal-error-phpshield-loader-script-loader-checksum-error-17-encoded-script-was-modified-in.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clipshare &#8211; VideoCaptcha not working.</title>
		<link>http://www.thinksupport.net/blog/clipshare-videocaptcha-not-working.html</link>
		<comments>http://www.thinksupport.net/blog/clipshare-videocaptcha-not-working.html#comments</comments>
		<pubDate>Thu, 15 Nov 2007 08:47:27 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/clipshare-videocaptcha-not-working.html</guid>
		<description><![CDATA[Clipshare &#8211; VideoCaptcha not working. Solution &#8211; Compile PHP with GD and Freetype.]]></description>
			<content:encoded><![CDATA[<p>Clipshare &#8211; VideoCaptcha not working.</p>
<p>Solution &#8211; Compile PHP with GD and Freetype.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/clipshare-videocaptcha-not-working.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clipshare &#8211; Not displaying guest error message even if guest limit is reached</title>
		<link>http://www.thinksupport.net/blog/clipshare-not-displaying-guest-error-message-even-if-guest-limit-is-reached.html</link>
		<comments>http://www.thinksupport.net/blog/clipshare-not-displaying-guest-error-message-even-if-guest-limit-is-reached.html#comments</comments>
		<pubDate>Thu, 15 Nov 2007 06:41:56 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/clipshare-not-displaying-guest-error-message-even-if-guest-limit-is-reached.html</guid>
		<description><![CDATA[Sometimes Clipshare do not display the error message for guest watch limit. The error message should display like &#8211; Sorry but you have exceeded the guest video limit for today. Please sign up to watch unlimited videos. Thank you. You can add this line to .htaccess php_value register_globals On This will display the message if [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes Clipshare do not display the error message for guest watch limit.</p>
<p>The error message should display like &#8211;</p>
<p><strong>Sorry but you have exceeded the guest video limit for today. Please sign up to watch unlimited videos. Thank you.</strong></p>
<p>You can add this line to .htaccess</p>
<p>php_value register_globals On</p>
<p>This will display the message if guest limit to watch video is reached.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/clipshare-not-displaying-guest-error-message-even-if-guest-limit-is-reached.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPMOTION HOW TO</title>
		<link>http://www.thinksupport.net/blog/phpmotion-how-to.html</link>
		<comments>http://www.thinksupport.net/blog/phpmotion-how-to.html#comments</comments>
		<pubDate>Thu, 15 Nov 2007 05:07:38 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/phpmotion-how-to.html</guid>
		<description><![CDATA[Change player logo To change the player logo simply change the file /images_s/playerlogo.png You can create your own image with the same name but it must be a png file and not gif, jpeg etc recover admin password (forgot admin password) If you have forgotten your admin password 1) Unzip and upload the file attached [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Change player logo</strong></p>
<p>To change the player logo simply change the file /images_s/playerlogo.png<br />
You can create your own image with the same name but it must be a png file and not gif, jpeg etc</p>
<p><strong>recover admin password (forgot admin password)</strong></p>
<p>If you have forgotten your admin password</p>
<p>1) Unzip and upload the file attached at the end of this post, into your /siteadmin folder (via FTP)</p>
<p>2) Open it in your browser</p>
<p>e.g. www.yourdomain.com/siteadmin/recover.php</p>
<p><strong>No mysql information-error E001</strong></p>
<p>If you have followed all the steps on setting up your mysql information both on your server and also in the /classes/config.inc.php file and you get an error</p>
<p>No mysql information-error E001</p>
<p>The reason for this is that you have open_basedir restrictions on your hosting account which are preventing the contents of the file /classes/config.inc.php from being read by phpmotion</p>
<p>Solution:</p>
<p>You need to disable open_basedir restrictions on your account. If you have a Plesk server this is done in the vhost.conf file for the specific domain name. If you have any other type of control panel, check with the documentation on how to disable openbase_dir restriction</p>
<p><strong>Large video files being cut short</strong></p>
<p>there could be many reasons why this is happening ( server side issues)</p>
<p>1) For a start ensure that you dont have (Process Resource Monitor) installed on your server. This is a tool that basically monitors cpu/resource usage on your server and will disable mencoder if its using too much cpu. If you dont want to uninstall this application then ensure that you have correctly added mencoder to the exclude list.</p>
<p>2) Make sure that you have enough time set for your max_execution_time in your php.ini file ( try something like 300)</p>
<p><strong>Allow full screen on video</strong></p>
<p>open the file templates/inner+play.htm</p>
<p>FIND:</p>
<p>param name=allowFullScreen value=&#8221;false&#8221;</p>
<p> to</p>
<p>CHANGE IT TO:</p>
<p>param name=allowFullScreen value=&#8221;true&#8221;</p>
<p>This currently only works with Internet Explorer and not FireFox</p>
<p><strong>Videos or Thumbs not showing</strong></p>
<p>If you can upload videos and they are not showing then there could be a variety of reasons as to why this is the case. The list below is not a complete exhaustive one but will help debug the most common problems.</p>
<p>1) Missing Requirements</p>
<p>If you run the tester.php script and get &#8220;fail&#8221; on the first 3 items on the list then video will not convert. You should check that you have these requirements installed. If you have a dedicated server or a VPS you can check yourself by logging in as root and running</p>
<p>which ffmpeg</p>
<p>which mencoder</p>
<p>which flvtool2</p>
<p>If you get a path showing then you have the modules installed, if not then you need to set these up. Click here for help with this.</p>
<p>Ensure that the file paths that you get are the same ones as specified in your admin area.</p>
<p>2) NO CLI support</p>
<p>CLI (command line interface) is the means by which the videos are converted in the background so that users don&#8217;t have to wait while they are converted. When a video finishes uploading, CLI is used to run convertor.php in the background which goes to work converting the video.</p>
<p>You need to check that you have CLI support. to do this follow the steps below</p>
<p>a) Open convertor.php and edit the two sections below to include your own email address and remove the // (commenting)</p>
<p><code>//CHECK POINT 1\\<br />
//mail("you@yourdomain.com", "PHPmotion - Check Point 1", "Loaded OK", "From: Server <name@email.com>");</code></p>
<p>and also </p>
<p><code><br />
//CHECK POINT 6\\<br />
//mail("you@yourdomain.com", "PHPmotion - Check Point 6", "SCRIPT LOADED TO THE END", "From: Server <name@email.com>");</code></p>
<p>b) upload a video and when uploading is completed  you should get 2 emails from your server, if you get both emails it means that you have CLI support and the convertor.php was loaded correctly and as such this is not your current problem. If you dont get the emails then you don&#8217;t have CLI for PHP and you should:</p>
<p>   1) try and change the path to php in the file /classes/config.inc.php to /usr/local/bin/php</p>
<p>    2) if step (1) does not resolve the problem try this alternative solution.  http://phpmotion.com/forum/index.php?topic=954.0</p>
<p>3) Check your logs</p>
<p>You can also check your log file which is created in the folder /logs. To enable logging do the following</p>
<p>a) Edit the file classes/config.inc.php and change logging to yes as shown below</p>
<p><code>$log_encoder       = "yes";  //change to "yes" to create a log file of encoding (created in /logs)</code></p>
<p>b) upload a video and then download the log file. If you are getting errors and you decide to post a question in the forum, remember to include your log file.</p>
<p><strong>MySQL error &#8211; DEFAULT CHARSET=latin1</strong></p>
<p>If you are getting a mysql error on (DEFAULT CHARSET=latin1).</p>
<p>1) download the file attached at the end of this post and unzip it</p>
<p>2) Delete the mysql.sql file thats inside your SQL folder in you downloaded version of PHPmotion replace the one downloaded.</p>
<p>3) Upload new SQL folder to your FTP</p>
<p>4) Try and follow setup steps as normal</p>
<p><a href="http://phpmotion.com/forum/index.php?action=dlattach;topic=277.0;attach=37">mysql download</a></p>
<p>Taken from PHPMOTION FORUMS</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/phpmotion-how-to.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR: Failed to mkdir &#8220;/path/tp/templates c/: No such file or directory</title>
		<link>http://www.thinksupport.net/blog/error-failed-to-mkdir-pathtptemplates-c-no-such-file-or-directory.html</link>
		<comments>http://www.thinksupport.net/blog/error-failed-to-mkdir-pathtptemplates-c-no-such-file-or-directory.html#comments</comments>
		<pubDate>Wed, 14 Nov 2007 15:37:18 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/error-failed-to-mkdir-pathtptemplates-c-no-such-file-or-directory.html</guid>
		<description><![CDATA[Reason for this error is wrong path in cgi-bin/uu_default_config.pm Check the value of temp_dir and upload_dir.]]></description>
			<content:encoded><![CDATA[<p>Reason for this error is wrong path in cgi-bin/uu_default_config.pm</p>
<p>Check the value of temp_dir and upload_dir. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/error-failed-to-mkdir-pathtptemplates-c-no-such-file-or-directory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flength File Help &#8220;Failed To Find Flength File&#8221;</title>
		<link>http://www.thinksupport.net/blog/flength-file-help-failed-to-find-flength-file.html</link>
		<comments>http://www.thinksupport.net/blog/flength-file-help-failed-to-find-flength-file.html#comments</comments>
		<pubDate>Wed, 14 Nov 2007 15:35:50 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/flength-file-help-failed-to-find-flength-file.html</guid>
		<description><![CDATA[Flength File Help &#8220;Failed To Find Flength File&#8221; Assuming the script is set up properly, you are probably dealing with some kind of write-caching. Some servers perform write-caching which prevents writing out the flength file or the entire CGITemp file during the upload. The flength file or the CGITemp file do not actually hit the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Flength File Help &#8220;Failed To Find Flength File&#8221;</strong></p>
<p>Assuming the script is set up properly, you are probably dealing with some kind of write-caching. Some servers perform write-caching which prevents writing out the flength file or the entire CGITemp file during the upload. The flength file or the CGITemp file do not actually hit the disk until the upload is complete, making it worthless for reporting on progress during the upload. This may be fixed using a .htaccess file assuming your host supports them. Here is a link to an excellent tutorial on using .htaccess files. I strongly recommend giving it a quick read before attempting to install your own .htaccess file.</p>
<p>www.freewebmasterhelp.com/tutorials/htaccess</p>
<p><strong>1. A mod_security module for Apache.</strong></p>
<p>To fix it just create a file called .htaccess (that&#8217;s a period followed by &#8220;htaccess&#8221;) and put the following lines in that file. Upload the file into the directory where the Uber-Uploader CGI &#8220;.pl&#8221; scripts resides, or in some directory above it (like your server&#8217;s DOCUMENT_ROOT, i.e. the top-level of your webspace). htaccess files must be uploaded as ASCII mode, not BINARY. You may need to CHMOD the htaccess file to 644 or (RW-R&#8211;R&#8211;).</p>
<p><IfModule mod_security.c><br />
  # Turn off mod_security filtering.<br />
  SecFilterEngine Off  </p>
<p>  # The below probably isn&#8217;t needed,<br />
  # but better safe than sorry.<br />
  SecFilterScanPOST Off<br />
</IfModule>  </p>
<p>If the above method does not work, try putting the following lines into the file</p>
<p><IfModule mod_security.c><br />
  SetEnvIfNoCase Content-Type \<br />
  &#8220;^multipart/form-data;&#8221; &#8220;MODSEC_NOPOSTBUFFERING=Do not buffer file uploads&#8221;<br />
</IfModule>  </p>
<p><IfModule mod_gzip.c><br />
  mod_gzip_on No<br />
</IfModule>  </p>
<p><strong>2. &#8220;Performance Cache&#8221; enabled on OS X SERVER.</strong></p>
<p>If you&#8217;re running OS X Server and the progress bar isn&#8217;t working, it could be because of &#8220;performance caching.&#8221; Apparently if ANY of your hosted sites are using performance caching, then by default, all sites (domains) will attempt to. The fix then is to disable the performance cache on all hosted sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/flength-file-help-failed-to-find-flength-file.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What FFMPEG-PHP can do and how to use the most out of it</title>
		<link>http://www.thinksupport.net/blog/what-ffmpeg-php-can-do-and-how-to-use-the-most-out-of-it.html</link>
		<comments>http://www.thinksupport.net/blog/what-ffmpeg-php-can-do-and-how-to-use-the-most-out-of-it.html#comments</comments>
		<pubDate>Thu, 07 Jun 2007 11:55:57 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/?p=210</guid>
		<description><![CDATA[Youâ€™ve probably heard of ffmpeg-php and itâ€™s wide usability mostly in sites that involve with videos such as YouTube or any other similar site. Hereâ€™s a bit of an introduction to it and how to use it. First thing, youâ€™ve got to check that your web hosting provider actually has ffmpeg &#38; ffmpeg-php extension installed [...]]]></description>
			<content:encoded><![CDATA[<p> Youâ€™ve probably heard of ffmpeg-php and itâ€™s wide usability mostly in sites that involve with videos such as YouTube or any other similar site. Hereâ€™s a bit of an introduction to it and how to use it.</p>
<p>First thing, youâ€™ve got to check that your web hosting provider actually has ffmpeg &amp; ffmpeg-php extension installed on your account and then you could get started with ffmpeg. You can check if itâ€™s installed by creating a PHP script and executing the following code:</p>
<p>extension_loaded(&#8216;ffmpeg&#8217;) or die(&#8220;ffmpeg extension not loaded&#8221;);</p>
<p>If you get â€œffmpeg extension not loadedâ€ then your web hosting provider does not have ffmpeg installed, if you get nothing, then youâ€™re one the good track!</p>
<p>ffmpeg-php is very simple to learn, what it is pretty much is an interface that works with the ffmpeg software to make it easier for PHP developers to access.</p>
<p>Like any object in PHP, youâ€™ll have to start with creating a new instance of it. You can do that by using the following line:</p>
<p>$ffmpegInstance = new ffmpeg_movie(â€œ/path/to/movie/â€);</p>
<p>Now that youâ€™ve had that, you can use that instance to use the many features of ffmpeg-php which are from knowing the duration of the movie/audio in seconds to retrieving the bitrate of the movie/audio file.</p>
<p>Once here, itâ€™s pretty much like object oriented programming, ex:<br />
$ffmpegInstance-&gt;getDuration(); // Gets the duration in secs.<br />
$ffmpegInstance-&gt;getVideoCodec(); // What type of compression/codec used</p>
<p>This can be very helpful when coding anything that has to do with uploading videos because you can know a lot of information about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/what-ffmpeg-php-can-do-and-how-to-use-the-most-out-of-it.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing FFMPEG â€“ :)</title>
		<link>http://www.thinksupport.net/blog/installing-ffmpeg-%e2%80%93.html</link>
		<comments>http://www.thinksupport.net/blog/installing-ffmpeg-%e2%80%93.html#comments</comments>
		<pubDate>Thu, 07 Jun 2007 11:55:40 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[FFMPEG]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/?p=209</guid>
		<description><![CDATA[A lot of people are getting hiring people to install FFMPEG as they think itâ€™s a difficult task, but itâ€™s much easier than you think if you follow these instructions. You should have root access &#38; basic Linux knowledge to the server to follow these instructions. 1. Create a directory to do our work in [...]]]></description>
			<content:encoded><![CDATA[<p> A lot of people are getting hiring people to install FFMPEG as they think itâ€™s a difficult task, but itâ€™s much easier than you think if you follow these instructions. You should have root access &amp; basic Linux knowledge to the server to follow these instructions.</p>
<p>1. Create a directory to do our work in<br />
mkdir ~/ffmpeg<br />
cd ~/ffmpeg</p>
<p>2. Get all the source files<br />
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/ essential-20061022.tar.bz2<br />
wget http://rubyforge.org/frs/download.php/9225/ flvtool2_1.0.5_rc6.tgz<br />
wget http://easynews.dl.sourceforge.net/sourceforge/ lame/lame-3.97.tar.gz<br />
wget http://superb-west.dl.sourceforge.net/sourceforge/ ffmpeg-php/ffmpeg-php-0.5.0.tbz2<br />
wget http://downloads.xiph.org/releases/ ogg/libogg-1.1.3.tar.gz<br />
wget http://downloads.xiph.org/releases/ vorbis/libvorbis-1.1.2.tar.gz</p>
<p>3. Extract all the source files<br />
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar<br />
tar zxvf flvtool2_1.0.5_rc6.tgz<br />
tar zxvf lame-3.97.tar.gz<br />
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar<br />
tar zxvf libogg-1.1.3.tar.gz<br />
tar zxvf libvorbis-1.1.2.tar.gz</p>
<p>4. Create the codecs directory &amp; import them<br />
mkdir /usr/local/lib/codecs/<br />
mv essential-20061022/* /usr/local/lib/codecs/<br />
chmod -R 755 /usr/local/lib/codecs/</p>
<p>5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)<br />
yum install subversion<br />
yum install ruby<br />
yum install ncurses-devel</p>
<p>6. Get the latest FFMPEG/MPlayer from the subversion<br />
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</p>
<p>7. Compile LAME<br />
cd ~/ffmpeg/lame-3.97<br />
./configure<br />
make<br />
make install</p>
<p>8. Compile libOGG<br />
cd ~/ffmpeg/libogg-1.1.3<br />
./configure<br />
make<br />
make install</p>
<p>9. Compile libVorbis<br />
cd ~/ffmpeg/libvorbis-1.1.2<br />
./configure<br />
make<br />
make install</p>
<p>10. Compile flvtool2<br />
cd ~/ffmpeg/flvtool2_1.0.5_rc6<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install</p>
<p>11. Compile MPlayer<br />
cd ~/ffmpeg/mplayer<br />
./configure<br />
make<br />
make install</p>
<p>12. Compile FFMPEG<br />
cd ~/ffmpeg/ffmpeg<br />
./configure &#8211;enable-libmp3lame &#8211;enable-libogg &#8211;enable-libvorbis &#8211;disable-mmx &#8211;enable-shared<br />
echo &#8216;#define HAVE_LRINTF 1&#8242; &gt;&gt; config.h<br />
make<br />
make install</p>
<p>13. Finalize the codec setups<br />
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50<br />
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51<br />
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49<br />
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0<br />
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51</p>
<p>14. Compile FFMPEG-PHP<br />
cd ~/ffmpeg/ ffmpeg-php-0.5.0<br />
phpize<br />
./configure<br />
make<br />
make install</p>
<p>15. Install FFMPEG-PHP (make sure the php.ini path is correct.)<br />
echo &#8216;extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so&#8217; &gt;&gt; /usr/local/Zend/etc/php.ini</p>
<p>16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)<br />
service httpd restart</p>
<p>17. Verify if it works<br />
php -r &#8216;phpinfo();&#8217; | grep ffmpeg</p>
<p>If you get a few lines such as<br />
ffmpeg<br />
ffmpeg support (ffmpeg-php) =&gt; enabled<br />
ffmpeg-php version =&gt; 0.5.0<br />
ffmpeg.allow_persistent =&gt; 0 =&gt; 0</p>
<p>Then everything is installed and working. FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder &amp; libOGG.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/installing-ffmpeg-%e2%80%93.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

