ffmpeg issues

Slackware 12.1
linux kernel 2.6.25.7

First thing I did was installed ffmpeg-checkout-2008-06-26 snapshot: ./configure && make && make install
-no problems there
Next I tried to install moc-2.4.3: ./configure went fine. make spits out the following:

ffmpeg.c:25:29: error: ffmpeg/avformat.h: No such file or directory
ffmpeg.c:41: error: expected specifier-qualifier-list before 'AVFormatParameters'
ffmpeg.c: In function 'ffmpeg_init':
.......
ffmpeg.c:359: error: 'struct ffmpeg_data' has no member named 'error'
make[3]: *** [libffmpeg_decoder_la-ffmpeg.lo] Error 1
make[3]: Leaving directory `/root/patch/moc-2.4.3/decoder_plugins/ffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/patch/moc-2.4.3/decoder_plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/patch/moc-2.4.3'
make: *** [all] Error 2

There was a ton more than that but I figure this is a sufficient summary.
I tried to use MOC from svn instead: svn co svn://daper.net/moc/trunk
./configure && make && install

MOC will be compiled with:
Decoder plugins: mp3 vorbis flac wavpack ffmpeg
OSS: yes
ALSA: yes
JACK: no
DEBUG: yes
RCC: no
Network streams: yes
Resampling: no

.. everything went fine and support was included for ogg/mp3/flac/ffmpeg
I now run mocp and get the following each time:

Can't load plugin libffmpeg_decoder: /usr/local/lib/moc/decoder_plugins/libffmpeg_decoder.so: undefined symbol: avcodec_init

mocp runs perfectly and works great with all the ogg/mp3/flac files ive tried but apparently has no support for wma or any ffmpeg formats. These files are not being detected.
This may or may not be relevant, but I also have MPlayer-1.0rc2 installed with the essential-20071007 binary codecs pack.

Any help is appreciated and thanks for writing a great app.. this is definitely the best music player out there .. goodbye amarok bloat :)

You need to install libavformat dev package.

--
Elimar Riesebieter - Debian's moc maintainer.
The path to source is always uphill ;-)

I think you misunderstood my posting. I installed ffmpeg snapshopt fine and got past the problems installing moc .. it is installed perfectly using the svn version. The ffmpeg snapshot includes libavformat afaik. Now my problem is that I run mocp and get the following each time:

Can't load plugin libffmpeg_decoder: /usr/local/lib/moc/decoder_plugins/libffmpeg_decoder.so: undefined symbol: avcodec_init

.wma or ffmpeg supported files are not supported.

any further help? I'm running slackware.

If you read the build log carefully you must have noticed the following:

ffmpeg.c:25:29: error: ffmpeg/avformat.h: No such file or directory

avformat.h must be in /usr/local/include/ffmpeg or /usr/include/ffmpeg. If you install ffmpeg you have to make sure the headerfiles like avformat.h are installed as well.

Try
find /usr -name '*avformat.h'
to find it.

HTH
--
Elimar Riesebieter - Debian's moc maintainer.
The path to source is always uphill ;-)

I got those error msgs when trying to install the stable version of moc. So I DID NOT install the stable version. Please disregard those error messages, they are no longer relevant.

I installed ffmpeg-checkout-2008-06-26 with *no errors* during ./configure && make && make install

I then installed the SVN version of MOC also with *no errors* during ./configure && make && make install

avformat.h is installed:

[azurite@virek] ~)) find /usr -name '*avformat.h'
/usr/local/include/libavformat/avformat.h

[azurite@virek] ~)) locate ffmpeg
/usr/local/bin/ffmpeg
/usr/local/lib/moc/decoder_plugins/libffmpeg_decoder.la
/usr/local/lib/moc/decoder_plugins/libffmpeg_decoder.so

here is my problem still :

[azurite@virek] ~)) mocp
Can't load plugin libffmpeg_decoder: /usr/local/lib/moc/decoder_plugins/libffmpeg_decoder.so: undefined symbol: avcodec_init

thanks for any help

So ffmpeg/avformat.h isn't available on your System. Try to build with

make libavformat_CFLAGS=`pkg-config --cflags libavformat` libavformat_LIBS=`pkg-config --libs libavformat`

--
Elimar Riesebieter - Debian's moc maintainer.
The path to source is always uphill ;-)

I tried your make options and after installing, mocp would not run at all :

[azurite@virek] ~)) mocp
mocp: symbol lookup error: /usr/local/lib/moc/decoder_plugins/libffmpeg_decoder.so: undefined symbol: av_register_all

i then went back to standard make and reinstalled and its back to the way it was with the same error but at least it will run.

/