Page 1 of 1

No sounds when I play vlc -- problem with libmad

Posted: 14 Dec 2004 21:59
by sherryZ2004
Hi there,

I have a problem with the sounds when I play vlc.

I downloaded the source codes of vlc and tried to run it with the command line. When I configured with the libmad disabled ( ./configure --enable-gpl --enable-pp --disable-mad --with-ffmpeg-tree=ffmpeg --with-libmpeg2-tree=libmpeg2 --disable-wxwindows --disable-skins2), I can run the vlc without sound. ( The video works well, but no audio). Then I tried to enable the libmad library for getting the sounds. I configured again with the libmad enabled (./configure --enable-gpl --enable-pp --enable-shared-pp --with-mad-tree=libmad --with-ffmpeg-tree=ffmpeg --with-libmpeg2-tree=libmpeg2 --disable-wxwindows --disable-skins2). It configures and compiles well, but when running the vlc(./vlc -vvv my.mpg), I got such an error:
./vlc: error while loading shared libraries: libmad.so.0: cannot open shared object file: No such file or directory

I think the "libmad.so.0" was made after I compiled the libmad. Maybe I am wrong.
Could anybody help me to solve this problem? Thanks very much.

Sherry

Re: No sounds when I play vlc -- problem with libmad

Posted: 31 Mar 2009 01:41
by debinc
Hi, I encoutered similar problem. Here is what I think it is happening:

Although vlc configure help says it will staticly link with libmad, however, from my observation of vlc binaty size, libmad is really dynamically linked. When vlc runs, it will look for libmad.so. Therefore, you need to copy libmad.so to your run time library directory, so that vlc can find it.

It is normal for an application to use shared library. It is just than vlc configure help should not say it is staticly linked but in reality it is dynamically linked.

I used another lib called libfaad to decode AAC audio. For this library, it is truly staticly linked. So we can not blame that vlc configure help is all wrong.

Debin