Blog Archives

FFMPEG Installation and Documentation.

Need to host a video website like www.youtube.com but do not know how to install FFMPEG? Need help installing FFMPEG on your server?  Recently we got lot’s of request from our client which need our professional system engineer to assisting on FFMPEG install, hence, we are here trying to share out the whole installation process on FFMPEG.

1. Create a directory to do our work in
mkdir ~/ffmpeg
cd ~/ffmpeg

2. Get all the source files
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/ essential-20061022.tar.bz2
wget http://rubyforge.org/frs/download.php/9225/ flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/ lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/ vorbis/libvorbis-1.1.2.tar.gz

3. Extract all the source files
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz

4. Create the codecs directory & import them
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)
yum install subversion
yum install ruby
yum install ncurses-devel

6. Get the latest FFMPEG/MPlayer from the subversion
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

7. Compile LAME
cd ~/ffmpeg/lame-3.97
./configure
make
make install

8. Compile libOGG
cd ~/ffmpeg/libogg-1.1.3
./configure
make
make install

9. Compile libVorbis
cd ~/ffmpeg/libvorbis-1.1.2
./configure
make
make install

10. Compile flvtool2
cd ~/ffmpeg/flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

11. Compile MPlayer
cd ~/ffmpeg/mplayer
./configure
make
make install

12. Compile FFMPEG
cd ~/ffmpeg/ffmpeg
./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
echo '#define HAVE_LRINTF 1' >> config.h
make
make install

13. Finalize the codec setups
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51

14. Compile FFMPEG-PHP
cd ~/ffmpeg/ ffmpeg-php-0.5.0
phpize
./configure
make
make install

15. Install FFMPEG-PHP (make sure the php.ini path is correct.)
echo 'extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.ini

16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)
service httpd restart

17. Verify if it works
php -r 'phpinfo();' | grep ffmpeg

If you get a few lines such as
ffmpeg
ffmpeg support (ffmpeg-php) => enabled
ffmpeg-php version => 0.5.0
ffmpeg.allow_persistent => 0 => 0

Then everything is installed and working. FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder & libOGG.

Once installed, all your videos in your site should be able to working fine without any issue. Please try to leave us a comment if you find any problem during your installation and we are more than happy to assist anyone of you here.

Team of eMYhost.com.

Domain Name Price War!

The Internet is about to get more expensive, without justification some believe. VeriSign, the company that manages both .com and .net domain name registration, said that the registry fees for domain names will increase starting on 1st July 2010, per its agreements with ICANN.

Due to this factor, recently we can see many of hosting provider in Malaysia is playing domain price war. Some of the hosting provider trying to lower down the price for domain .com and .net which the reason is rewards to their valuable customer, some is trying to use world cup 2010 as a promotion to selling cheap .com and .net domain name, some hosting provider even selling .com and .net domain as low as MYR 0.99, but only for first 10 domains that selling from them. Some is playing marketing gimmick to attract more visitors to their site and more query for them, this can make more opportunity for their business. Some of them are trying to grab the market share by selling the domain with lower price.

As a consumer, their concern is very clear, PRICE. This is because domain is different with service, all the quality of the domain that provided by all registrar and reseller are the same, there will not have any good or bad thing for the domain provided by each hosting provider. Therefore, no matter the price war is their marketing gimmick, or whatever strategy of the company, as long as the price is suitable for us, now will be a very very good chance for us to grab your own domain name if you don’t have any yet.

For those interesting, you can always go to http://emyhost.com/services/domainname.html for all the latest price list. However, if you feel it’s still expensive for you, you can try to contact us at Contact or via MSN at [email protected] for better offer.

The Internet is about to get more expensive, without justification some believe. VeriSign, the company that manages both .com and .net domain name registration, said Thursday that the registry fees for domain names will increase starting

Welcome to eMYhost Network

Welcome to eMYhost Network!!

eMyhost Network is a newly build up company which providing a hosting solution for all the blogger, corporate user, personal user and etc. We are a team which build by ex-staffs from few of the famous and leading webhosting companies, because of this, we are a team which having very good experience on how to build and setup a best hosting solution for our clients.

eMYhost Network is fully understand what our client needed and what will be the best for our client, hence we are able to provide the most suitable offshore shared hosting, offshore virtual private server and offshore dedicated server to our client with a cheapest price. All our packages can be customize base on your needed to ensure you will comfortable on it. You can always have a very close communication with our sales team via MSN or live chat in order to get all the answer you need. We are a young team full of energy and creative.

Beside offshore hosting packages, we do understand support is another very important criteria for our client to choose the hosting provider. eMYhost guaranteed you can get the support in touch with you when you need them because we are having a team which working for 24 hours, 7 days without any holiday for our support team. You can always contact our support via MSN for better communication in order for to resolve your problem in the shortest period.

As an experience offshore hosting provider, we are understand all our customer information are confidential which we will not reveal it to any others third party, we know what we are doing.

eMYhost Network team wish can serve all of you well and if you got any enquiries, you can always contact us at eMYhost or reach us via MSN at [email protected]

Thank You.

Regards,

SW. Boon.

CEO of eMYhost