Could not find libavcodec or libavutil. vlc-0.9.2

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
thesimsx
New Cone
New Cone
Posts: 1
Joined: 20 Sep 2008 08:40

Could not find libavcodec or libavutil. vlc-0.9.2

Postby thesimsx » 20 Sep 2008 09:00

0.9.2 got the problem it seem like this

Linux server1.blablabla.com 2.6.18-92.1.6.el5 #1 SMP Fri Jun 20 02:36:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
OS : Redhat enterprise 5

yum ffmpeg

root@Content [/data/vlc-0.9.2]# yum list ffmpeg*
Loaded plugins: installonlyn, priorities
epel 100% |=========================| 2.1 kB 00:00
dag 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.1 kB 00:00
local 100% |=========================| 951 B 00:00
Excluding Packages in global exclude list
Finished
1020 packages excluded due to repository priority protections
Installed Packages
ffmpeg.x86_64 0.4.9-0.9.20070530.el5 installed
ffmpeg-devel.x86_64 0.4.9-0.9.20070530.el5 installed
ffmpeg-libpostproc.x86_64 0.4.9-0.9.20070530.el5 installed
Available Packages
ffmpeg.x86_64 0.4.9-0.8.20070109.el5 dag
ffmpeg.x86_64 0.4.9-0.9.20070109.el5 dag
ffmpeg.x86_64 0.4.9-0.9.20070109.rf. dag
ffmpeg-devel.x86_64 0.4.9-0.8.20070109.el5 dag
ffmpeg-devel.x86_64 0.4.9-0.9.20070109.el5 dag
ffmpeg-devel.x86_64 0.4.9-0.9.20070109.rf. dag
ffmpeg-libpostproc.x86_64 0.4.9-0.8.20070109.el5 dag
ffmpeg-libpostproc.x86_64 0.4.9-0.9.20070109.el5 dag
ffmpeg-libpostproc.x86_64 0.4.9-0.9.20070109.rf. dag

root@Content [/data/vlc-0.9.2]# yum linstall ffmpeg*

done ...

compile vlc

root@Content [/data/vlc-0.9.2]#./configure --enable-x11 --enable-xvideo --disable-gtk --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --enable-mad --enable-libdvbpsi --enable-a52 --enable-dca --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --disable-livedotcom --enable-live555 --with-live555-tree=/data/live/ --enable-caca --enable-skins --enable-skins2 --enable-alsa --disable-kde --disable-qt --disable-wxwindows --disable-ncurses --enable-release --enable-rtsp --enable-realrtsp

and then

checking mad.h presence... yes
checking for mad.h... yes
checking for mad_bit_init in -lmad... yes
checking id3tag.h usability... no
checking id3tag.h presence... no
checking for id3tag.h... no
checking for AVCODEC... no
configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.

its stop ...

i try to compile vlc-0.8.6.i its not like this

please what should i do .... thanks for help ...

randombytes
New Cone
New Cone
Posts: 1
Joined: 25 Sep 2009 18:21

Re: Could not find libavcodec or libavutil. vlc-0.9.2

Postby randombytes » 25 Sep 2009 18:54

I think the problem arrives when the pkg-config couldn't find the libavcodec and libavutils
The installed libavcodec & libavutils must be in a directory that system don't know.
possibly check the /usr/local/lib folder for existence of libavcodec & libavutils.
If it is there then first thing to do is try this command.

Code: Select all

# ld-config -v | grep av
if you get output like

Code: Select all

libavdevice.so.52 -> libavdevice.so.52.1.0 libavutil.so.49 -> libavutil.so.49.15.0 libavformat.so.52 -> libavformat.so.52.31.0 libavcodec.so.52 -> libavcodec.so.52.20.0
then at least ldconfig knows about it if not then you probabily want to add /usr/local/lib to your ld-conf paths to do so
do this with super user permissions

Code: Select all

# echo /usr/local/lib > /etc/ld.so.conf.d/avcode.conf
and after that with super user permissions do just

Code: Select all

# ldconfig
that will update the lib cache file.
But this is not enough to make pkg-config work
you probably have to export a env too before compiling vlc.
try this before doing ./configure in vlc source dir

Code: Select all

$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
But assuming your libav* files are in /usr/local/lib dir.

This is what I need to get it working.
Hope this helps.

Kapil.

rapha3l
New Cone
New Cone
Posts: 1
Joined: 02 Apr 2011 22:28

Re: Could not find libavcodec or libavutil. vlc-0.9.2

Postby rapha3l » 02 Apr 2011 22:31

In fedora 14 i juste installed
yum install *fmpeg-devel*

and work now !


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 45 guests