Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is my first post so i hope its in the right area.
I have a centos 5.8 installation and have installed ffmpeg but am getting errors when trying to run it.
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
I am not sure where to go with this now. I have been browsing the web for days and tried various different how tos?
Try to find the module that it's complaining about.
Code:
find / -name 'ffmpeg.so'
If it can find it and it's not in the location specified in the error, copy it or create a symlink to that location. If find doesn't find anything, then the module isn't installed.
If that file isnt on my server can i download it from somewhere?
I think I'm piecing together everything you've done. I'm assuming you installed ffmpeg and ffmpeg-devel using yum, but didn't build the extension. The ffmpeg.so file is actually a PHP module that needs to be built. Once you build the extension you should be able to find the ffmpeg.so file and copy it or symlink it to where ever it needs to be.
Ive followed your instructions but when i get to phpize i get the error
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
regards
Tim
Sorry, I forgot a step. After you extract the tarball, you have to cd into the ffmpeg-php-0.6.0 directory. That's where the config.m4 file for ffmpeg is located.
/root/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/root/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/root/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function'zim_ffmpeg_frame_ffmpeg_frame':
/root/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
/root/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/root/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/root/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function'zim_ffmpeg_frame_ffmpeg_frame':
/root/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.