LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-08-2012, 05:34 AM   #1
tim.bache@i-a.co.uk
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Rep: Reputation: Disabled
FFMpeg error on Centos installation


Hi

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?

Please help.

regards

Tim
 
Old 06-08-2012, 01:58 PM   #2
thehouseofho
LQ Newbie
 
Registered: Jun 2012
Distribution: Mostly Debian
Posts: 28

Rep: Reputation: Disabled
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.
 
Old 06-11-2012, 03:06 AM   #3
tim.bache@i-a.co.uk
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
HI

Can i simply copy the .so from somewhere else and put it in the location its looking for?

thanks
 
Old 06-11-2012, 04:57 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
How did you install ffmpeg? From your package mgr? Or did you compile it yourself?
Sounds like a bad install of ffmpeg perhaps.
Quote:
'/usr/lib/php/modules/ffmpeg.so'
Also don't know why it's looking there. Are you using this as part of a script?

Post the command that you are using when you get that error.
 
Old 06-12-2012, 08:37 AM   #5
tim.bache@i-a.co.uk
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I used an online how to using yum.

Cant remeber which one as there are quite a few.

I an running a cron job which converts video files.
 
Old 06-12-2012, 02:09 PM   #6
thehouseofho
LQ Newbie
 
Registered: Jun 2012
Distribution: Mostly Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by tim.bache@i-a.co.uk View Post
HI

Can i simply copy the .so from somewhere else and put it in the location its looking for?

thanks
Yes, you'll just need to find where the .so file is located.
 
Old 06-13-2012, 03:32 AM   #7
tim.bache@i-a.co.uk
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
If that file isnt on my server can i download it from somewhere?
 
Old 06-13-2012, 07:26 AM   #8
thehouseofho
LQ Newbie
 
Registered: Jun 2012
Distribution: Mostly Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by tim.bache@i-a.co.uk View Post
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.

Here's how to do it if you need the steps.

Download the tarball

Code:
wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
Go to the folder where the tarball downloaded and run the following commands:

Code:
tar -xif ffmpeg-php.0.6.0.tbz2

phpize

./configure
make
make install
You should be fine after that.
 
Old 06-13-2012, 08:04 AM   #9
tim.bache@i-a.co.uk
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-13-2012, 08:10 AM   #10
thehouseofho
LQ Newbie
 
Registered: Jun 2012
Distribution: Mostly Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by tim.bache@i-a.co.uk View Post
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.
 
Old 06-13-2012, 08:24 AM   #11
tim.bache@i-a.co.uk
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks.

I get a bit further now but when running make

i get the following error at the end.

make: *** [ffmpeg_frame.lo] Error 1

There is also a couple of these:

/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)
 
Old 06-13-2012, 08:55 AM   #12
thehouseofho
LQ Newbie
 
Registered: Jun 2012
Distribution: Mostly Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by tim.bache@i-a.co.uk View Post
Thanks.

I get a bit further now but when running make

i get the following error at the end.

make: *** [ffmpeg_frame.lo] Error 1

There is also a couple of these:

/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)
In the ffmpeg-php-0.6.0 directory, run:
Code:
replace “PIX_FMT_RGBA32″ “PIX_FMT_RGB32″ — ffmpeg_frame.c
Or you can edit the ffmpeg_frame.c file and remove the A.

FYI. You should never compile as root. You should compile as a user and then sudo on the install.
 
Old 06-13-2012, 09:01 AM   #13
tim.bache@i-a.co.uk
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I think thats got it, thanks.

No errors when running my cron job.
 
Old 06-13-2012, 09:08 AM   #14
thehouseofho
LQ Newbie
 
Registered: Jun 2012
Distribution: Mostly Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by tim.bache@i-a.co.uk View Post
I think thats got it, thanks.

No errors when running my cron job.
Great to hear!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 13.37 - ffmpeg installation error jdgr Slackware 6 03-21-2012 07:47 AM
Ffmpeg centos 5.5. Installation osmy Linux - Newbie 2 11-10-2011 08:52 AM
[SOLVED] centos installation error amartlk Linux - Newbie 3 12-11-2010 01:30 AM
[SOLVED] ffmpeg installation on CentOS linuxengineer Linux - Server 3 11-05-2010 09:43 AM
Ffmpeg installation library conflict error sachin gholap Linux - Newbie 2 04-06-2009 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration