HEADERS NOT FOUND IN FFMPEG-PHP (CENTOS)

4,992 views
Skip to first unread message

Atlanta

unread,
Mar 2, 2008, 2:13:52 PM3/2/08
to ffmpeg-php
Hey all,

Getting some wierd results i compiled ffmpeg with --enabled-shared and
everything i can call ffmpeg fine but when i go to compile ffmpeg-php
i get this :

checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking for ffmpeg headers... configure: error: ffmpeg headers not
found. Make sure you've built ffmpeg as shared libs using the --enable-
shared option

Does anyone have a clue to what i have to do to get this thing
working ?? Thanks in advance for the help

ffmpe...@gmail.com

unread,
Mar 2, 2008, 2:32:59 PM3/2/08
to ffmpeg-php
try using --prefix=/usr

Atlanta

unread,
Mar 2, 2008, 3:07:59 PM3/2/08
to ffmpeg-php
Thanks ok i got passed that part now im getting this error anything i
can do for it ?

/usr/local/include/ffmpeg/avformat.h:967: error: syntax error before
'*' token
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg-php.c: In function
`zm_shutdown_ffmpeg':
/usr/local/src/ffmpeg-php-0.5.0/ffmpeg-php.c:99: warning:
`av_free_static' is deprecated (declared at /usr/local/include/ffmpeg/
avcodec.h:2905)
make: *** [ffmpeg-php.lo] Error 1
> > working ?? Thanks in advance for the help- Hide quoted text -
>
> - Show quoted text -

Atlanta

unread,
Mar 2, 2008, 3:08:55 PM3/2/08
to ffmpeg-php
Hey i thanks alot i got passed that part now im stuck here after
running make

blast4past

unread,
Mar 5, 2008, 2:25:43 PM3/5/08
to ffmpeg-php
Hey I'm also stuck on the

make: *** [ffmpeg-php.lo] Error 1

during the make step ! whats going on here ? does anyone have a
clue ?

Thanks

-blast4past

wbens

unread,
Mar 5, 2008, 4:05:56 PM3/5/08
to ffmpeg-php
Hello there:

I am installing ffmpeg on centos 5.
I just ran into that wall, but it just stunned me.
I then took it down.

In case you have not solve your problem, here is the solution to it.
I am assuming you have your ffmpeg packages at the follwing directory:

/usr/local/src/

Here is the solution:

Step1: cd /usr/local/include/ffmpeg

Check if you have the ffmpeg directory created under /usr/local/
include.
I did not have if myself, so I had to create it.
If you do not have it either, then create it and go to step 2.

Step 2:

cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/
ffmpeg
cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/
ffmpeg
cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/
ffmpeg

Step 3: configure, make, and make install your ffmpeg package. Not
your ffmpeg-php package, that one you do after you do your ffmpeg.

I hope this helps.
--Willie


blast4past

unread,
Mar 5, 2008, 5:18:23 PM3/5/08
to ffmpeg-php

I had already created the /usr/local/include/ffmpeg with the header
files copied over there previously.

But following your advice I did again make ffmpeg 1st this time and
then did ffmpeg-php with the similar error as before:

....................................................... (contd.)
/usr/local/include/ffmpeg/avformat.h:920: error: expected declaration
specifiers or '...' before 'offset_t'
/usr/local/src/ffmpeg-php-0.5.1/ffmpeg-php.c: In function
'zm_shutdown_ffmpeg':
/usr/local/src/ffmpeg-php-0.5.1/ffmpeg-php.c:114: warning:
'av_free_static' is deprecated (declared at /usr/local/include/ffmpeg/
avcodec.h:2905)
make: *** [ffmpeg-php.lo] Error 1


Maybe something silly is missing here ? something basic that we might
have looked over ? I'm currently out of ideas on how to get this
thing through.

But thanks for your help anyways. Lets just exercise our little grey
cells a little more over this. hehe :-)

-blast4past

wbens

unread,
Mar 5, 2008, 5:43:10 PM3/5/08
to ffmpeg-php
Hello blast4past:

Where did you download your ffmpeg package from?

I downloaded through the following svn repository:

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

which is located at this url:

http://www.laatedaa.com/2008/01/20/how-to-ffmpeg-ffmpeg-php-mplayer-mencoder-flv2tool-lame-mp3-encoder-libogg-libvorbis-amr-on-a-linux-based-server/

Probably you did it the same way, but it just checking.
Also what linux distro and version are u using?

I am using centos 5.

I remember that a few weeks ago I installed mplayer and ffmpeg through
yum, but
it did not work. Just in case you did the same.

blast4past

unread,
Mar 5, 2008, 6:08:37 PM3/5/08
to ffmpeg-php

I'm using Fedora Core 8 with all current updates applied. I checked my
source document which I used as a guide:

http://www.yourserverguide.com/2006/12/02/howto-install-video-hosting-requirements

svn repository is the same as I checked in the doc above. And I also
tried ffmpeg and mplayer through apt-get on ubuntu7.10 before but that
did not work(just like your case).

On FC8, I installed the following were chosen for installation during
the installation of OS itself:

Apache 2.2
PHP 5.xx
MySQL 5.xx
phpMyAdmin

Apart from the above all the other stuff was compiled from sources as
listed in the web document above, step-by-step.

Thanks man.


-blast4past




On Mar 5, 2:43 pm, wbens <williebens...@gmail.com> wrote:
> Hello blast4past:
>
> Where did you download your ffmpeg package from?
>
> I downloaded through the following svn repository:
>
> svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
>
> which is located at this url:
>
> http://www.laatedaa.com/2008/01/20/how-to-ffmpeg-ffmpeg-php-mplayer-m...

wbens

unread,
Mar 5, 2008, 6:40:08 PM3/5/08
to ffmpeg-php
I just checked the source from where you are installing your ffmpeg
packages.
It displays it about the same way than the source I used with a few
differences.

I got Fedora 8 on my laptop.
I do not know what else to tell you at the moment, the next thing I
could think
about is installing ffmpeg on my fedora distro, that is the same as
yours, and
see if I can make it through or get stuck like you.
Then post the solution if I succeed. I think I can do that tomorrow.

What do you think?

Do you have any other suggestion(s)?





On Mar 5, 6:08 pm, blast4past <Sukhbir.Gre...@gmail.com> wrote:
> I'm using Fedora Core 8 with all current updates applied. I checked my
> source document which I used as a guide:
>
> http://www.yourserverguide.com/2006/12/02/howto-install-video-hosting...
> > > -blast4past- Hide quoted text -

Todd Kirby

unread,
Mar 5, 2008, 11:44:57 PM3/5/08
to ffmpe...@googlegroups.com
You can add the dries repo to your FC8 and install ffmpeg and all it's deps from rpm.

make sure to install ffmpeg-devel as well if you plan to build ffmpeg-php.

-T-

wbens

unread,
Mar 6, 2008, 1:45:42 PM3/6/08
to ffmpeg-php
Hello blast4past:

Did you solve the ffmpeg problem?
Were you able to install fffmpeg?

Thanks.
--Willie

blast4past

unread,
Mar 6, 2008, 4:04:49 PM3/6/08
to ffmpeg-php

Hey, no luck yet ! But I'm gonna get back on it today just in a
little while from now and work things out.

I was just wondering if we just get the rpms of all the stuff -- it
looks like it won't work ! we have to install from source, to get
everything to fit in with each other.

Thanks for your help :-)

-blast4past

wbens

unread,
Mar 6, 2008, 5:13:13 PM3/6/08
to ffmpeg-php
Ok.

I am going to do the same and see if we both succeed.
I hope that at least one of us does, espcially you.
I have done this a few time on Centos 5 already, but never
on Fedora 8. However, I believe there would not be much difference.

I will follow these guidelines, with a few differences, to do my
ffmpeg-php
installation:

http://www.laatedaa.com/2008/01/20/how-to-ffmpeg-ffmpeg-php-mplayer-m...

I will post my results.

When do you need this installation by?

Thanks.
--Willie

wbens

unread,
Mar 6, 2008, 5:18:21 PM3/6/08
to ffmpeg-php
I will do everything from source but apache, php, and mysql.
If I do anything else not from source, I will let you know.

Ok.
I will begin.
--Willie

Todd Kirby

unread,
Mar 6, 2008, 5:29:41 PM3/6/08
to ffmpe...@googlegroups.com
i set up FC8 last week and the only thing that required installation from source was ffmpeg-php since there's no rpm for it in FC8 (I didn't really look very hard so there might be).

-T-

wbens

unread,
Mar 6, 2008, 5:32:34 PM3/6/08
to ffmpeg-php
Hello Tood:

By any chance, do you have the step-by-step process of how
you did it?

If so, can you post it?

I know you mentioned about editing the repository with dries repo.

Thanks.
--Willie

wbens

unread,
Mar 6, 2008, 5:34:45 PM3/6/08
to ffmpeg-php
Hello there blast4past:

Are you accessing the server remotely or is it local?
Not that it would matter, just out of curiosity.
Thanks.
--Willie

wbens

unread,
Mar 6, 2008, 5:37:20 PM3/6/08
to ffmpeg-php
Sorry I mispelled your name Todd.

Todd Kirby

unread,
Mar 6, 2008, 5:41:10 PM3/6/08
to ffmpe...@googlegroups.com
create the file

/etc/yum.repos.d/dries.repo

and add the following to it:

[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=
            http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc$releasever/$basearch/RPMS.dries/
            ftp://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc$releasever/$basearch/RPMS.dries/
            ftp://mirror.pacific.net.au/linux/freshrpms/dag/dries/fedora/fc$releasever/$basearch/RPMS.dries/
enabled=1
gpgcheck=1

Then run:

yum install ffmpeg ffmpeg-devel

This will install ffmpeg and all the dependencies as well as the headers needed to build ffmpeg-php. If you haven't already installed it, you'll also need php-devel

yum install php-devel

Cheers,
-T-

Todd Kirby

unread,
Mar 6, 2008, 5:44:19 PM3/6/08
to ffmpe...@googlegroups.com
Make sure to first delete any of your ffmpeg libs that got installed when you built from source or you'll have conflicts.

rm /usr/locallib/libav*
rm /usr/bin/libav*

Todd Kirby

unread,
Mar 6, 2008, 5:45:17 PM3/6/08
to ffmpe...@googlegroups.com
oops, second line should be

rm /usr/lib/libav*

wbens

unread,
Mar 6, 2008, 5:46:35 PM3/6/08
to ffmpeg-php
Thanks Todd.
I will give this a try before I do it my way.
I hope blast4past is around.
Thanks.
--Willie


wbens

unread,
Mar 6, 2008, 5:53:00 PM3/6/08
to ffmpeg-php
Instead of deleting them, I just moved them to my home directories.
I do not think they would interfere from there.

lib]#mv libav* /home/wbens/

My directory rm /usr/locallib/ is empty.

Todd Kirby

unread,
Mar 6, 2008, 5:55:07 PM3/6/08
to ffmpe...@googlegroups.com
sorry, another typo:

/usr/local/lib/

it might be empty but that's ok. As long as there's no libav* stuff in there to conflict.

-T-

Todd Kirby

unread,
Mar 6, 2008, 5:58:46 PM3/6/08
to ffmpe...@googlegroups.com
It will work for CentOS as well. I've installed on just about every version of CentOS from RPM.

-T-

Todd Kirby

unread,
Mar 6, 2008, 6:02:16 PM3/6/08
to ffmpe...@googlegroups.com
Ok, feel free to gChat me if you get stuck

-T-

On Thu, Mar 6, 2008 at 12:46 PM, wbens <willie...@gmail.com> wrote:

wbens

unread,
Mar 6, 2008, 6:03:20 PM3/6/08
to ffmpeg-php
Hello Todd:

I just created the dries.repo file, and when running yum update, I got
these errors:

[root@willie yum.repos.d]# yum update yum
http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc8/.../repodata/repomd.xml:
[Errno 14] HTTP Error 404: Not Found
Trying other mirror.
ftp://mirror.pacific.net.au/linux/freshrpms/dag/dries/fedora/fc%24relea.../repodata/repomd.x
ml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change
directory.
Trying other mirror.
ftp://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc8/%24.../repodata/repomd.xml:
[Errno 4] IOError: [Errno ftp error] 550 $...: No such file or
directory
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for
repository: dries. Please verify its path and try again
[root@willie yum.repos.d]# cat dries.repo
[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl= http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc$releasever/...
ftp://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc$releasever/$...
ftp://mirror.pacific.net.au/linux/freshrpms/dag/dries/fedora/fc$relea...
enabled=1
gpgcheck=1



[root@willie yum.repos.d]#


wbens

unread,
Mar 6, 2008, 6:09:49 PM3/6/08
to ffmpeg-php
I get an error when running yum update:

root@willie yum.repos.d]# yum update
ftp://mirror.pacific.net.au/linux/freshrpms/dag/dries/fedora/fc%24relea.../repodata/repomd.xml:
[Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
ftp://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc8/%24.../repodata/repomd.xml:
[Errno 4] IOError: [Errno ftp error] 550 $...: No such file or
directory
Trying other mirror.
http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc8/.../repodata/repomd.xml:
[Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for
repository: dries. Please verify its path and try again
[root@willie yum.repos.d]#

This is my dries.repos file:


cat dries.repo
[dries]
name=Extra Fedora rpms dries - $releasever - $basearch

Todd Kirby

unread,
Mar 6, 2008, 6:21:36 PM3/6/08
to ffmpe...@googlegroups.com
It's possible that gmail mangled the code I sent you for your dries.repo file:

Paste in the code as shown in the second post on this page:

http://forums.fedoraforum.org/printthread.php?t=177853

Todd Kirby

unread,
Mar 6, 2008, 6:25:10 PM3/6/08
to ffmpe...@googlegroups.com
...but change 'enabled=0' to 'enabled=1'

-T-

wbens

unread,
Mar 6, 2008, 6:53:48 PM3/6/08
to ffmpeg-php

Hello Todd:

I just made the change.
It gave me an error with enabled=0.
So far the yum update is running with no errors.
I still wonder where is blast4past. He was the one who got me into
this.
Not that I mind, but now this is a personal issue for me.
I could be doing my laundry now (at least that was my plan).

Thanks.
--Willie

wbens

unread,
Mar 6, 2008, 7:40:39 PM3/6/08
to ffmpeg-php
Hello Todd:

I did not have any luck with this method.
I wonder what is wrong.
This is what I got:

[root@willie ~]# yum -y install ffmpeg ffmpeg-devel
Setting up Install Process
Parsing package install arguments
No package ffmpeg available.
No package ffmpeg-devel available.
Nothing to do
[root@willie ~]#


This is my dries.repo:

[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=
If you see anything wrong, please let me know.
I will go home now, but tell what you thinkg.
I wil check it tomorrow.

I will also try doing it from source.
It migh just be more time consuming.

Thanks.
--Willie

Todd Kirby

unread,
Mar 6, 2008, 7:46:03 PM3/6/08
to ffmpe...@googlegroups.com
hmmm, not sure. It worked for me. Did it report that it was checking
the dries repo when you run the yum install command?

-T-

wbens

unread,
Mar 7, 2008, 9:45:43 AM3/7/08
to ffmpeg-php
Yes Todd, it reported that it was checking the dries repo.
I will try a different method. If if worked for you, then it is
supposed
to work for me. Probably I did something wrong along the way.

Thanks.
--Willie

Todd Kirby

unread,
Mar 7, 2008, 1:22:18 PM3/7/08
to ffmpe...@googlegroups.com
try setting

priority=1

on the dries repo and

priority=2

on the rest of the repos.


-T-

wbens

unread,
Mar 7, 2008, 4:34:23 PM3/7/08
to ffmpeg-php
Hello Todd:

I added priority=1 and priority=2 where you told me, but I got the
same results.
However, I would like to ask you, if we are installing ffmpeg-php.
should not we
yum install ffmpeg-php as well besides ffmpeg and ffmpeg-devel?

Thanks Todd.
--Willie

wbens

unread,
Mar 7, 2008, 5:06:01 PM3/7/08
to ffmpeg-php
Hello Todd:

I added livna.repo and I think I was able to yum install ffmpeg and
ffmpeg-devel.
However, I got the following errors:

Total download size: 3.9 M
Is this ok [y/N]: y
Downloading Packages:
ftp://ftp.applios.net/pub/fedora/linux/releases/8/Everything/i386/os/Packages/imlib2-1.4.0-3.fc8.i386.rpm:
[Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
(1/11): imlib2-1.4.0-3.fc 100% |=========================| 568 kB
00:03
(2/11): faac-1.25-4.lvn8. 100% |=========================| 82 kB
00:00
(3/11): libmp4v2-1.5.0.1- 100% |=========================| 263 kB
00:01
(4/11): ffmpeg-0.4.9-0.41 100% |=========================| 188 kB
00:01
(5/11): lame-libs-3.97-6. 100% |=========================| 327 kB
00:02
(6/11): xvidcore-1.1.3-1. 100% |=========================| 240 kB
00:01
(7/11): a52dec-0.7.4-11.l 100% |=========================| 46 kB
00:00
(8/11): x264-0-0.10.20070 100% |=========================| 245 kB
00:02
(9/11): faad2-2.0-21.2005 100% |=========================| 210 kB
00:01
(10/11): ffmpeg-devel-0.4 100% |=========================| 63 kB
00:00
(11/11): ffmpeg-libs-0.4. 100% |=========================| 1.8 MB
00:15
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID
a109b1ec


GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or
directory: '/etc/pki/rpm-gpg/RPM-GPG-KEY-livna'
[root@willie yum.repos.d]#

What do you think?

Thanks Todd.
--Willie

Todd Kirby

unread,
Mar 7, 2008, 5:47:37 PM3/7/08
to ffmpe...@googlegroups.com
not familiar with livna. You can either import the key manually or turn off GPG key checking in your livna.repo file.
Reply all
Reply to author
Forward
0 new messages