Go Back   Webmaster Centre News and Discussion Forum > Web Hosting Discussion and Domain Name > Web Hosting Discussion

Web Hosting Discussion Discussion on all aspects of web hosting including past experiences (both negative and positive), choosing a host, questions and answers, and other related subjects

Reply
 
LinkBack (1) Thread Tools Display Modes
Old 05-15-2008, 07:57 AM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Junior Member
 
Default Tutorial: How to install FFMPEG (different method)

I got this tutorial from friends of mine after failed several method of installing ffmpeg on my vps centos. So I thought I'd like to share it for those who want it
Quote:
1. Create a directory to do our work in
mkdir ~/ffmpeg
cd ~/ffmpeg

2. Get all the source files
wget Index of /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 Browsing Download Server: ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget ftp.osuosl.org :: Oregon State University Open Source Lab ogg/libogg-1.1.3.tar.gz
wget ftp.osuosl.org :: Oregon State University Open Source Lab 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-libogg --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.
__________________
DediVPSHosting: Cheap VPS
DediVPS is offline   Reply With Quote
Reply

Bookmarks

Tags
ffmpeg

LinkBacks (?)
LinkBack to this Thread: http://www.webmaster-centre.com/f18/tutorial-how-install-ffmpeg-different-method-1083/
Posted By For Type Date
installation is killing me for the last 12 hours... - 24 Hour Forum - Talk About Anything and Everything all the Time! This thread Refback 06-07-2008 11:02 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: How to install ImageMagik DediVPS Web Hosting Discussion 0 05-13-2008 10:15 AM
Tutorial: How to install FFMPEG DediVPS Web Hosting Discussion 0 05-13-2008 09:27 AM
Share your tutorial site here !!! pyza Website Design 0 05-04-2008 06:03 PM
The PayPal 6 dollar money making method? Yani Merchant Accounts, Gateways, and Credit Card Processing 0 04-30-2008 08:10 AM
Java question based on method calls...? zach s Web Programming 0 04-29-2008 05:40 PM



All times are GMT +1. The time now is 02:00 PM.
Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Style Provided By: Wrestling Clique - Wrestling Forums

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44