Separate names with a comma.
Discussion in 'cPanel Developers' started by coolvibe, Jul 25, 2006.
Hello, Can someone help me? I need to know how to install ffmpeg-php on a cpanel run lnux server.
Search is a friend... I found this in 5 seconds...
perl -MCPAN -e shell
at the prompt
but if cpanel is failing to install cpan will most likly fail as well
install from soruce from http://cpan.org
tar -xzvf FFmpeg-0.03.tar.gz
This module requires these other modules and libraries:
# set $FFMPEG_ROOT environmental variable to /path/to/ffmpeg/source
Thanks Host. But, it looks like it's just for ffmpeg. Not ffmpeg-php. But, If that is what I'm looking for, I am a happy man!
you are correct, that is for perl.
for php try pear & pecl.
eg. # pear install ffmpeg
long days = stupid answers on my part...
your right that was for perl...
my sincere apologies -
I was sitting in the Detroit Airport waiting for NWA "Never Works Airlines" to fix computer issues when I answered this...
delay after delay after delay - a 4 hour trip including layover ended up being 20+ hours
--- anyway I'm done crying...
sorry bout that
did you end up figuring out the PHP install?
ive searched and searched and cant find any specific details on how to get it onto a cpanel server
Install Perl Module
I read in one of the other threads on FFmpeg that you can go into the "Install Perl Modules" under the software heading on the lefthand side of WHM and type in FFmpeg and install the first one out of the list that you receive.
However, I tried it and I just get an error that it "seems impossible to continue" and it doesn't install.
This sucks...why is it so hard to install FFmpeg? Documentation on the net is lousy for even mediocre newbs like myself.
Could always cheat.
Find the build that is right for your system.
SSH in as root.
wget <rpm link>
rpm -Uhv <rpm you downloaded>
Which distro would you choose for...
Let's say, a CentOS 3.8 system? Haha. Thanks for the info...I have a feeling that'll help solve my problems
Still doesn't solve dependencies problem
So I went and tried installing one of the RPM on that site you provided...still no go because of the other software dependencies of FFmpeg.
When I tried going that route...I had to go through a loop-de-loop of those dependencies having their own dependencies which goes along the same lines of the other FFmpeg threads in this forum...It's the dependencies that are making the installation FFmpeg such a pain.
Any gurus willing to take some time and write a how to guide?
Thanks for your help, I know we are a little bit closer to solving this one
You guys are telling him how to install ffmpeg.. Not ffmpeg-php which he needs help with..
yes thats exactly right
ffmpeg is easy to install but im dammned if i can figure out how to get ffmpeg-php setup
the ffmpeg sourceforge page gives the install instructions:
under cpanel, you have to modify this as follows:
whenever I have to do something to my php which the easyapache doesn't allow, I first run easyapache and watch for the PHP related configure lines.
on the server, cd /home/cpapachebuild/buildapache/
cd to the PHP directory of the version in question.
this should be the "/path/to/php_sources" referred to in the ffmpeg-php installation instructions
use the configure option you copied earlier form the easyapache run, and append --with-ffmpeg=yes
the better option, IF you're allowing runtime modules in your php.ini:
follow the "Building as an Extension" instructions
I'm going to do this on a test server in about an hour and I'll report back.
EDIT: below are the results of my install:
> yum install ffmpeg-devel
#this installs ffmpeg and the devel pieces which ffmpeg-php wants to have, as well as any required dependancies. I'm using the atrpms depot
> ./configure --prefix=/usr/local
#it seemed to ignore the --prefix directive
I had to change the extensions directory in my php.ini file to get the extension loaded, then I got the following errors from the test:
Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20050922/ffmpeg.so' - /usr/lib/libavcodec.so.51: undefined symbol: av_free
so, I'm guessing it's my ffmpeg installation from atrpms... probably would be better to build ffmpeg from scratch instead of from an rpm distro... but at least the ffmpeg-php module is seen and appears to be built, so aside from my ffmpeg not working I'm guessing that process is sound.
hello i have the same problem can someone help me to know how to install ffmpeg-php the easy way from windos the server is linux but i dont know how to install it with the method given away franly i dont know how do i install it from windows pc any help please??
Can't you install it as an shared extension?
Would this work?
that worked for me, but I first had to install the ffmpeg-devel libraries.
it should be:
yum install ffmpeg-devel
if yum doesn't find it, I'd add the atrpms repo to your yum list temporarily.
Okay, I'm going to try this when i get out of work.
I just installed FFmpeg (with FAAD, FAAC, AMR, Lame, and MP3Lame) and FFmpeg-Php on a RHE v4 server, but i didn't need to install ffmpeg-devel.
Hrm, Can't seem to get this to work, Where is the Php.ini i need to edit, i keep finding multiple ones to edit. And where exactly do the ffmpeg-php files need to be?
how did you do that?
i've been trying to install that thing since this morning and it kepts complaining about not being able to install.