Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ffmpeg-php installation and a few others.

Discussion in 'cPanel Developers' started by Botan, Aug 4, 2006.

Thread Status:
Not open for further replies.
  1. Botan

    Botan Registered

    Joined:
    Aug 4, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    I'm trying to setup on the fly flv conversion on my server, but have run into trouble.
    I supposedly need ffmpeg, ffmpeg-php and mplayer (lame audio codec?)

    I'm just guessing here, but this is what I have done so far: (note that i'm on a fedora server w/ cpanel)

    Code:
    yum install subversion
    chmod 775 lib
    chmod 775 bin
    svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
    mv mplayer /usr/local/
    mv ffmpeg /usr/local/
    wget ftp://ftp6.mplayerhq.hu/MPlayer/releases/codecs/all-20060611.tar.bz2
    bunzip2 all-20060611.tar.bz2
    tar xvf all-20060611.tar
    cd /usr/local/mplayer
    mkdir codecs
    cd ..
    cd ..
    cd ..
    cd all-20060611
    mv * /usr/local/mplayer/codecs
    cd ..
    rmdir all-20060611
    cd /usr/local/mplayer
    mv codecs /usr/local/lib
    cd ..
    cd ..
    cd ..
    mkdir mm
    cd mm
    wget http://rpm.livna.org/fedora/4/i386/lame-3.96.1-0.lvn.1.4.i386.rpm
    sudo rpm -Uvh lame-3.96.1-0.lvn.1.4.i386.rpm
    wget http://dag.wieers.com/packages/lame/lame-devel-3.96.1-4.fc1.rf.i386.rpm
    sudo rpm -Uvh lame-devel-3.96.1-4.fc1.rf.i386.rpm
    wget http://downloads.xvid.org/downloads/xvidcore-1.1.0.tar.bz2
    bzip2 -cd xvidcore-1.1.0.tar.bz2 | tar xvf -
    cd xvidcore-1.1.0/build/generic/
    ./configure
    make
    su -c 'make install'
    cd ..
    cd ..
    cd ..
    cd ..
    su -c 'ln -s /usr/local/lib/codecs /usr/lib/win32'
    cd /usr/local/mplayer
    ./configure --prefix=/usr --enable-largefiles --with-codecsdir=/usr/local/mplayer/codecs
    make
    su -c 'make install'
    cd ..
    cd ..
    cd /usr/local/ffmpeg
    ./configure --prefix=/usr/local/ffmpeg --enable-mp3lame --extra-cflags=-I/usr/bin/lame/include
    
    I dont know if i've done the above correctly, but assuming I have; I cant manage to install ffmpeg-php due to the fact that i'm supposed to find the php sources extensions directory.
    Despite having root access on ssh; I have been unable to pinpoint it to continue.
    Please give me some helpful guidance if you dont mind xD

    I found the extensions directory. Simply go to php.ini and find where the extensions path is located. Note that only 1 copy/version of php can be installed to continue ffmpeg-php. This is the point where I must stop for now, as the server I'm working on has multiple.

    It would be very great if someone could finish what I started, or run through how to do what I did and intended on doing, for other popular server operating systems.
     
    #1 Botan, Aug 4, 2006
    Last edited: Aug 7, 2006
Loading...
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice