View Single Post
  #3  
Old 24th May 2008, 18:56
amaurib amaurib is offline
Junior Member
 
Join Date: Apr 2008
Posts: 25
Thanks: 4
Thanked 1 Time in 1 Post
Default

Thank you falko that help me understand what to do next time when i get those kind of errors...

unfortunately, ffmpeg didnt pass the test, but is installed.

am I missing something? im trying to use it for my gallery2 app.

what i did at this point was fallowing this guide that i found....

Code:
I’ll outline the basic steps here. First, you need the mp3 libraries:

apt-get install liblame-dev

Next, you need to get ready to build FFMpeg from source:

sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 \
liba52-0.7.4-dev libx264-dev libdts-dev libgsm1-dev libvorbis-dev libdc1394-13-dev \
checkinstall build-essential gcc

Get the FFMpeg source:

cd /usr/local/src
sudo apt-get source ffmpeg

cd ffmpeg-*
sudo ./configure --enable-gpl --enable-pp --enable-libvorbis --enable-libogg \
--enable-liba52 --enable-libdts --enable-dc1394 --enable-libgsm --disable-debug \
--enable-libmp3lame --enable-libfaad --enable-libfaac --enable-xvid --enable-pthreads \
--enable-x264 --enable-shared --prefix=/usr

The second-last option,—enable-shared, should allow the php5 script to find the FFMpeg shared libraries so that ffmpeg-php can compile properly.


sudo make
sudo checkinstall

When you do the checkinstall, it’ll ask you a bunch of questions so that it can build you a .deb package and install it. For most of them you can just accept the defaults. I set the package description to FFMpeg video conversion utility, and I set the version to 3:0.cvs20070308-5ubuntu4. This makes the package you’re making slightly newer than the one in the regular Ubuntu repositories, so Ubuntu won’t hassle you all the time, taunting you with a newer version of the package when you log in.

Ok, that was a big hassle, I know. But it should get you video encoding capability.

The next thing I did was download the latest release of ffmpeg-php from http://ffmpeg-php.sourceforge.net/ and extracted it on my machine. The first thing you need to do at that point is to run a utility called “phpize” in order to set up some configuration files for your machine. However, Ubuntu doesn’t include phpize in the main php package, so you’ll need to do this first:

apt-get install php5-dev

Then cd into the ffmpeg-php-0.X.X directory (maybe you extracted it on your desktop?), and run the following command to generate a config script:

phpize5

You can then do this to build the library:

./configure && make

And finally this to install it:

sudo make install

Now you’ve got ffmpeg support for PHP, and an FFMpeg binary installed that will do its stuff with sound encoding capabilities.
__________________
Our Private Family Hosting Server:
Ubuntu 7.10 Server / ISPconfig /
2.4ghz / 500GB / 640MBram / 6.4mb down -512kb up
Reply With Quote