Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 15 of 51
  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    91

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



    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. #2
    Member
    Join Date
    Jul 2007
    Posts
    91

    Default pls help??


    pls anyone reply

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

  3. #3
    Member
    Join Date
    Jul 2007
    Posts
    91

    Default



    I am desperate for help>>>>>>>>>>>>>>

  4. #4
    Member
    Join Date
    Jul 2007
    Posts
    91

    Thumbs down

    ·
    answer me!!!!!!111111111

  5. #5
    Member psrsathish's Avatar
    Join Date
    Jul 2006
    Location
    Madurai, TN, India.
    Posts
    20

    Smile

    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.
    Sathish Kannan S

  6. #6
    Member
    Join Date
    Jul 2007
    Posts
    91

    Wink

    thanks Satish
    its fine now

  7. #7
    Member psrsathish's Avatar
    Join Date
    Jul 2006
    Location
    Madurai, TN, India.
    Posts
    20

    Default

    You are always welcome mojamoi
    Sathish Kannan S

  8. #8
    Member
    Join Date
    Jul 2005
    Posts
    29

    Default Hi

    If i install this and later i need to remove this how could i unistall this?

  9. #9
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    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. #10
    Member
    Join Date
    Jul 2005
    Posts
    12

    Default

    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. #11
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by humba View Post
    Hello please help I can't seem to "yum install subversion"
    It says "Cannot find a package matching subversion"
    I have CentOS 3.9
    You can download subversion binary package from http://subversion.tigris.org/project_packages.html
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  12. #12
    Member
    Join Date
    Mar 2003
    Posts
    222
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Zion Ahead View Post
    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
    Try

    yum install up2date

    Then

    up2date install perl-URI

  13. #13
    Registered User
    Join Date
    Aug 2007
    Posts
    2

    Default 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. #14
    Member
    Join Date
    Mar 2006
    Location
    Brno, Czech Republic
    Posts
    510

    Default

    /tmp is mounted with nosuid/noexec. remove those flags, and it will work, then put them back on.
    Not everything that is counted counts and not everything that counts can be counted

  15. #15
    Member twhiting9275's Avatar
    Join Date
    Sep 2002
    Posts
    366
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Here's a great tutorial for installing this, and it has a workaround for the /tmp stuff too (noexec, etc).
    Linux Tech Networks: Reliable Server Administration and Monitoring since 2002

+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Similar Threads & Tags
Similar threads

  1. ffmpeg into php
    By resellerse in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-15-2006, 03:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube