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.

ffmpeg-php and ffmpeg help???????

Discussion in 'General Discussion' started by mojamoi, Jul 24, 2007.

  1. mojamoi

    mojamoi Well-Known Member

    Joined:
    Jul 23, 2007
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    :)

    ffmpeg-php and ffmpeg

    i get the errors
    PHP Warning: PHP Startup: Unable to load dynamic library './vld.so' - ./vld.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library './ffmpeg.so' - ./ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [

    can u help????????????
     
  2. mojamoi

    mojamoi Well-Known Member

    Joined:
    Jul 23, 2007
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    pls help??

    :confused::confused::confused:
    pls anyone reply

    does any change have to be made to apache file???
    or htaccess
     
  3. mojamoi

    mojamoi Well-Known Member

    Joined:
    Jul 23, 2007
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    :eek::eek::eek::eek:

    I am desperate for help>>>>>>>>>>>>>>
     
  4. mojamoi

    mojamoi Well-Known Member

    Joined:
    Jul 23, 2007
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    :D:eek: ·
    answer me!!!!!!111111111
     
  5. psrsathish

    psrsathish Active Member

    Joined:
    Jul 19, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India.
    Hi,

    The problem is due to ffmpeg didn't compile with php properly. So, please follow the below steps to do a fresh install.

    1. Create a directory to do our work in
    mkdir ~/ffmpeg
    cd ~/ffmpeg

    2. Get all the source files
    wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/ essential-20061022.tar.bz2
    wget http://rubyforge.org/frs/download.php/9225/ flvtool2_1.0.5_rc6.tgz
    wget http://easynews.dl.sourceforge.net/sourceforge/ lame/lame-3.97.tar.gz
    wget http://superb-west.dl.sourceforge.net/sourceforge/ ffmpeg-php/ffmpeg-php-0.5.0.tbz2
    wget http://downloads.xiph.org/releases/ ogg/libogg-1.1.3.tar.gz
    wget http://downloads.xiph.org/releases/ vorbis/libvorbis-1.1.2.tar.gz

    3. Extract all the source files
    bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
    tar zxvf flvtool2_1.0.5_rc6.tgz
    tar zxvf lame-3.97.tar.gz
    bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
    tar zxvf libogg-1.1.3.tar.gz
    tar zxvf libvorbis-1.1.2.tar.gz

    4. Create the codecs directory & import them
    mkdir /usr/local/lib/codecs/
    mv essential-20061022/* /usr/local/lib/codecs/
    chmod -R 755 /usr/local/lib/codecs/

    5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)
    yum install subversion
    yum install ruby
    yum install ncurses-devel

    6. Get the latest FFMPEG/MPlayer from the subversion
    svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

    7. Compile LAME
    cd ~/ffmpeg/lame-3.97
    ./configure
    make
    make install

    8. Compile libOGG
    cd ~/ffmpeg/libogg-1.1.3
    ./configure
    make
    make install

    9. Compile libVorbis
    cd ~/ffmpeg/libvorbis-1.1.2
    ./configure
    make
    make install

    10. Compile flvtool2
    cd ~/ffmpeg/flvtool2_1.0.5_rc6
    ruby setup.rb config
    ruby setup.rb setup
    ruby setup.rb install

    11. Compile MPlayer
    cd ~/ffmpeg/mplayer
    ./configure
    make
    make install

    12. Compile FFMPEG
    cd ~/ffmpeg/ffmpeg
    ./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
    echo '#define HAVE_LRINTF 1' >> config.h
    make
    make install

    13. Finalize the codec setups
    ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
    ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
    ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
    ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
    ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51

    14. Compile FFMPEG-PHP
    cd ~/ffmpeg/ ffmpeg-php-0.5.0
    phpize
    ./configure
    make
    make install

    15. Install FFMPEG-PHP (make sure the php.ini path is correct.)
    echo 'extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.ini

    16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)
    service httpd restart

    17. Verify if it works
    php -r 'phpinfo();' | grep ffmpeg

    If you get a few lines such as
    ffmpeg
    ffmpeg support (ffmpeg-php) => enabled
    ffmpeg-php version => 0.5.0
    ffmpeg.allow_persistent => 0 => 0

    Then everything is installed and working. FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder & libOGG.
     
  6. mojamoi

    mojamoi Well-Known Member

    Joined:
    Jul 23, 2007
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    thanks Satish:):):):):):):):):)
    its fine now:cool:
     
  7. psrsathish

    psrsathish Active Member

    Joined:
    Jul 19, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India.
    You are always welcome mojamoi
     
  8. dcpr

    dcpr Active Member

    Joined:
    Jul 6, 2005
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    If i install this and later i need to remove this how could i unistall this?
     
  9. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Getting this error on yum install subversion

    --> Processing Dependency: perl(URI) >= 1.17 for package: subversion
    --> Finished Dependency Resolution
    Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion
     
  10. humba

    humba Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hello please help I can't seem to "yum install subversion"
    It says "Cannot find a package matching subversion"
    I have CentOS 3.9

    Please advise. Thanks!
     
  11. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You can download subversion binary package from http://subversion.tigris.org/project_packages.html
     
  12. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Try

    yum install up2date

    Then

    up2date install perl-URI
     
  13. daystorm

    daystorm Registered

    Joined:
    Aug 1, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Receiving Error...

    First, Thank you for this incredible step by step explanation. This is what every software application should provide.

    I am receiving an error when trying to compile ffmpeg and am not sure how to fix it.

    [root@server ffmpeg]# ./configure --enable-libmp3lame --enable-libogg --enable-l
    ibvorbis --disable-mmx --enable-shared
    Unable to create and execute files in /tmp. Set the TMPDIR environment
    variable to another directory and make sure that /tmp is not mounted
    noexec.
    Sanity test failed.
    If you think configure made a mistake, make sure you are using the latest
    version from SVN. If the latest version fails, report the problem to the
    ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.err" produced by configure as this will help
    solving the problem.

    Thank you in advance for your help!
    Ella
     
  14. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    /tmp is mounted with nosuid/noexec. remove those flags, and it will work, then put them back on.
     
  15. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Here's a great tutorial for installing this, and it has a workaround for the /tmp stuff too (noexec, etc).
     
  16. humba

    humba Member

    Joined:
    Jul 9, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the reply. I tried installing "subversion-1.4.4-1.i386.rpm" from http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/rhel-3/i386/

    But got the following errors:
    error: Failed dependencies:
    libapr-0.so.0 is needed by subversion-1.4.4-1
    libaprutil-0.so.0 is needed by subversion-1.4.4-1
    libneon.so.24 is needed by subversion-1.4.4-1
    neon >= 0.24.7 is needed by subversion-1.4.4-1
    Suggested resolutions:
    httpd-2.0.46-67.ent.centos.i386.rpm


    Then I tried installing "httpd-2.0.46-67.ent.centos.i386.rpm" but got the following error:
    error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename failed - Is a directory

    Please advise what to do. Thank you
     
  17. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    root@server [~]# yum install up2date
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Nothing to do
    root@server [~]# yum install up2date
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Nothing to do
     
  18. Nameslot

    Nameslot Member

    Joined:
    Oct 3, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Can anyone help me because it is showing me connection timed out when I try this steps

    svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer


    I am getting a message:

    Code:
    [root@server ~]# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    svn: Can't connect to host 'svn.mplayerhq.hu': Connection timed out
    [root@server ~]#
    
     
  19. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Make sure you don't have a firewall that is prohibiting you from making outbound connections for SVN. The following ports are used for Subversion.

    svn 3690/tcp # Subversion
    svn 3690/udp # Subversion

    Mike
     
  20. Nameslot

    Nameslot Member

    Joined:
    Oct 3, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Got it. Fixed that firewall.

    But I am again in problem :( Sorry for that but don't know why it is giving me this error now.

    Code:
    [root@server ffmpeg]# ./configure --enable-libmp3lame --enable-libogg --enable-libvorbis 
    
    --disable-mmx --enable-shared
    Unable to create and execute files in /tmp.  Set the TMPDIR environment
    variable to another directory and make sure that /tmp is not mounted
    noexec.
    Sanity test failed.
    If you think configure made a mistake, make sure you are using the latest
    version from SVN.  If the latest version fails, report the problem to the
    ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.err" produced by configure as this will help
    solving the problem.
    [root@server ffmpeg]#
     
Loading...

Share This Page