Hi Harvey,

Here's how we do it on Debian, in wiki markup. We build ffmpeg from 
source with the AMR codecs and then build php-ffmeg. Some of the 
versions may be out of date - just grab the latest in most cases.

== Install all the packages we need to build ffmpeg ==
  apt-get install faad build-essential unzip php5-dev libvorbis-dev 
liba52-0.7.4-dev libfaad-dev debhelper nasm fakeroot libgsm1-dev yasm 
git-core git-svn

== Build codecs and ffmpeg ==

=== AMR Codecs ===
  wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2
  tar -xjf amrnb-6.1.0.4.tar.bz2
  cd amrnb-6.1.0.4
  ./configure
  make && make install
  cd ..

  wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2
  tar -xjf amrwb-7.0.0.3.tar.bz2
  cd amrwb-7.0.0.3
  ./configure
  make && make install
  cd ..
  rm -rf amr*

=== mp3lame ===
  wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
  tar -xzf lame-3.97.tar.gz
  cd lame-3.97
  ./configure
  make && make install
  cd ..
  rm -rf lame*

=== libtheora ===
  wget http://downloads.xiph.org/releases/theora/libtheora-1.0beta3.tar.gz
  tar -xzf libtheora-1.0beta3.tar.gz
  cd libtheora-1.0beta3
  ./configure --prefix=/usr
  make && make install
  cd ..
  rm -rf libtheora-1.0beta3*

=== xvid ===
  wget http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz
  tar -xzf xvidcore-1.1.3.tar.gz
  cd xvidcore-1.1.3
  chmod -R 777 *
  dpkg-buildpackage
  cd ..
  dpkg -i libxvidcore4*
  rm -rf xvidcore*
  rm -rf libxvidcore4*

=== faac ===
  wget http://easynews.dl.sourceforge.net/sourceforge/faac/faac-1.26.tar.gz
  tar -xzf faac-1.26.tar.gz
  cd faac
  ./bootstrap
  ./configure --prefix=/usr
  make && make install
  cd ..
  rm -rf faac*

=== x264 ===
  git clone git://git.videolan.org/x264.git
  cd x264
  ./configure --enable-shared --prefix=/usr
  make && make install
  cd ..
  rm -rf x264

=== ffmpeg ===
  svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
  cd ffmpeg
  ./configure --enable-libmp3lame --enable-liba52 --enable-liba52bin 
--enable-libgsm --enable-libxvid --enable-libtheora --enable-libvorbis  
--enable-shared --enable-libamr-nb  --enable-libfaad --enable-gpl  
--enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads 
--disable-static --prefix=/usr
  make && make install
  cd ..
  rm -rf ffmpeg

=== ffmpeg-php ===
  svn checkout 
https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php/trunk/ffmpeg-php/ 
ffmpeg-php
  cd ffmpeg-php
  phpize
  ./configure
  make && make install
  cd ..
  rm -rf ffmpeg-php

== PHP config ==
Enable the ffmpeg extension in php
  echo extension=ffmpeg.so >/etc/php5/apache2/conf.d/ffmpeg.ini
  echo extension=ffmpeg.so >/etc/php5/cli/conf.d/ffmpeg.ini

== Restart Apache ==
  /etc/init.d/apache2 restart


- Mike


On 26/11/2008 12:32, Harvey Kane wrote:
> Hi,
>
> I'm struggling to get ffmpeg going on my server, not because it's hard,
> but because I'm a Windows user and these things don't come second nature
> to me.
>
> We need ffmpeg to convert videos between .mov and .flv format, and also
> take screencaptures at different points during the movie.
>
> Is anyone available at the moment to help me get this thing working? I'm
> looking for 'help' rather than 'doing it for me' - ie basically would be
> good to have someone I can ask questions via IM, help interpret the
> error messages I'm getting, and/or point me at a half-decent set of
> instructions (which are strangely missing from the ffmpeg site - maybe
> they just assume you know how to do it).
>
> The box is CentOS 5 running WHM/Cpanel.
>
> Happy to pay up to $100 for a bit of assistance in getting this working.
> As soon as possible would be appreciated, I'm on a pretty tight deadline
> for this site.
>
> Contact me off list if you can help, or phone using the numbers in my
> signature.
>
> Thanks,
>
> Harvey.
>
>    


-- 
Mike Cochrane
Web Team Leader

gardyneHOLT - design partners
18 Beresford Square Newton
PO Box 3340 Auckland New Zealand
p +64 9 300 3155  f +64 9 302 3349  m 021 545 565
skype gardyneholt_mikec
www.gardyneholt.co.nz


--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to