The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help Needed on FFMPEG-PHP install

Discussion in 'cPanel Developers' started by coolvibe, Jul 25, 2006.

  1. coolvibe

    coolvibe Registered

    Joined:
    Jul 25, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello, Can someone help me? I need to know how to install ffmpeg-php on a cpanel run lnux server.
     
  2. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    Search is a friend... I found this in 5 seconds...

    from ssh
    perl -MCPAN -e shell

    at the prompt
    install FFmpeg


    but if cpanel is failing to install cpan will most likly fail as well


    install from soruce from http://cpan.org

    wget http://search.cpan.org/CPAN/authors/id/A/AL/ALLENDAY/FFmpeg-0.03.tar.gz
    tar -xzvf FFmpeg-0.03.tar.gz
    cd FFmpeg*

    This module requires these other modules and libraries:
    depenencies
    Image::Magick ?.??
    Image::Magick::Iterator 0.01
    Image::PBMlib 1.05
    Time::Piece, 1.08

    # set $FFMPEG_ROOT environmental variable to /path/to/ffmpeg/source
    perl Makefile.PL
    make
    make test
    make install
     
  3. coolvibe

    coolvibe Registered

    Joined:
    Jul 25, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    ffmpeg-php?

    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!
     
  4. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    you are correct, that is for perl.

    for php try pear & pecl.

    eg. # pear install ffmpeg
     
  5. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    duh---lol

    long days = stupid answers on my part...

    your right that was for perl...

    LOL

    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
     
  6. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    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
     
  7. orware

    orware Member

    Joined:
    Jul 27, 2005
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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.

    -Omar
     
  8. NightStorm

    NightStorm Well-Known Member

    Joined:
    Jul 28, 2003
    Messages:
    286
    Likes Received:
    4
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
  9. orware

    orware Member

    Joined:
    Jul 27, 2005
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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

    -Omar
     
  10. orware

    orware Member

    Joined:
    Jul 27, 2005
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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 :)

    -Omar
     
  11. krylon1

    krylon1 Registered

    Joined:
    Aug 9, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    You guys are telling him how to install ffmpeg.. Not ffmpeg-php which he needs help with..
     
  12. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    yes thats exactly right

    ffmpeg is easy to install but im dammned if i can figure out how to get ffmpeg-php setup
     
  13. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    the ffmpeg sourceforge page gives the install instructions:
    http://ffmpeg-php.sourceforge.net/

    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

    make install


    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.
     
    #13 freedman, Sep 15, 2006
    Last edited: Sep 16, 2006
  14. deccanbazaar

    deccanbazaar Registered

    Joined:
    Sep 22, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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??
     
  15. sznaps

    sznaps Member

    Joined:
    Jun 23, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Can't you install it as an shared extension?


    Would this work?
     
  16. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  17. sznaps

    sznaps Member

    Joined:
    Jun 23, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Okay, I'm going to try this when i get out of work.
     
  18. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    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.
     
  19. sznaps

    sznaps Member

    Joined:
    Jun 23, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  20. ebinfo

    ebinfo Active Member

    Joined:
    Oct 5, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...

Share This Page