ffmpeg problem on centos server

Discussion in 'Site & Server Administration' started by MayurGondaliya, Apr 11, 2009.

  1. #1
    I have recently installed ffmpeg on my server. But when I fire php -m I receive the following warnings

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.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 '/usr/lib/php/modules/ffmpeg.so' - /usr/lib/php/modules/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0


    Any suggestions please?
     
    MayurGondaliya, Apr 11, 2009 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    i can install you ffmpeg in $50 on your server

    50% advance

    Regards

    Alex
     
    kmap, Apr 11, 2009 IP
  3. bucasia

    bucasia Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could just install it from the rpmforge repo?

    Run the command to setup the rpmforge repo here - http://dag.wieers.com/rpm/FAQ.php#B

    and then just -

    yum install ffmpeg

    The version in the rpmforge is 0.4.9
     
    bucasia, Apr 11, 2009 IP
  4. hostsvault

    hostsvault Guest

    Messages:
    143
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well he need ffmpeg-php installed not only ffmpeg

    here is a quick way for getting it working correctly

    
    Remember to adjust phpize if you have multiple php installations.
    
    svn co https://svn.sourceforge.net/svnroot/ffmpeg-php/trunk/ffmpeg-php
    cd ffmpeg-php
    phpize
    ./configure
    make
    make install
    
    
    Now you should see something like
    
    Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20050922/
    
    
    So remember to adjust the following based on what you see as your php path may be different, for the rest of the examples we will be using the path above.
    
    
    cp /usr/local/php/lib/php/extensions/no-debug-non-zts-20050922/ffmpeg.so /usr/local/php/lib/php/extensions/ffmpeg.so
    
    
    Now open your php.ini
    
    php -i | grep ini
    
    
    Once you have the file open it with an editor, we will use nano
    
    nano /usr/local/php/lib/php.ini
    
    
    Find
    
    extension_dir =
    
    Set this to your path, using our example the line would look like
    
    extension_dir = "/usr/local/php/lib/extensions"
    
    
    Now scroll to the end of the file and add
    
    extension = ffmpeg.so
    
    
    You should now have FFmpeg installed, to verify execute
    
    php -i | grep ffmpeg
    
    
    You should see something like
    
    ffmpeg
    ffmpeg support (ffmpeg-php) => enabled
    ffmpeg-php version => 0.4.9
    ffmpeg.allow_persistent => 0 => 0
    
    
    The installation is now complete, remember to restart your webserver for the changes to take effect.
    
    Code (markup):
     
    hostsvault, Apr 11, 2009 IP