help building vlc with static ffmpeg

*nix specific usage questions
squindler
New Cone
New Cone
Posts: 2
Joined: 31 Aug 2007 05:24

help building vlc with static ffmpeg

Postby squindler » 31 Aug 2007 05:40

Hey All,

I'm attempting to build vlc against a static build of ffmpeg however ./configure keeps erroring out not being able to find libavcodec.a.

Code: Select all

FFmpeg version SVN-r10258, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-decoder=dnxhd --prefix=/opt/local/ffmpeg --enable-pp --enable-gpl
I'm trying to build 0.8.6c using:

Code: Select all

./configure --prefix=/opt/local/vlc-0.8.6c --enable-shared=no --enable-static=yes --with-ffmpeg-tree=/opt/local/ffmpeg --with-ffmpeg-config-path=/opt/local/ffmpeg/
which errors with:

Code: Select all

checking for libavcodec.a in /opt/local/ffmpeg... no configure: error: cannot find /opt/local/ffmpeg/libavcodec/libavcodec.a, make sure you compiled libavcodec in /opt/local/ffmpeg
libavcodec.a can however be found @ /opt/local/ffmpeg/lib/libavcodec.a

I tried a few other options like FFMPEG_LIBS=/opt/local/ffmpeg but that was equally un-successful.

Any help greatly appreciated.
Shane.

kmf31
Cone that earned his stripes
Cone that earned his stripes
Posts: 308
Joined: 11 Mar 2007 21:47

Re: help building vlc with static ffmpeg

Postby kmf31 » 31 Aug 2007 14:08

When you use: "--with-ffmpeg-tree=..." you should not use the installation directory of ffmpeg in your system but the source directory where you have previously compiled ffmpeg (with static libraries and not only shared libraries), for example:

./configure .... --with-ffmpeg-tree=/home/toto/ffmpeg_source/ ...

where /home/toto/ffmpeg_source/ is the source directory of ffmpeg which you should have compiled with "--enable-static" (which is actually the default anyway, simply don't use "--disable-static", that is enough).

In this way you don't even need to do the "make install" of ffmpeg because vlc will directly use the static ffmpeg-library for its plugins and will never search the dynamic versions in /opt/blabla/...

If you have a 64bit Linux version it is possible that you need also to specify "--with-pic" in the ./configure of vlc and somehow "-fPIC" as gcc-compiler option when compiling ffmpeg.

squindler
New Cone
New Cone
Posts: 2
Joined: 31 Aug 2007 05:24

Re: help building vlc with static ffmpeg

Postby squindler » 03 Sep 2007 02:13

awesome! Thankyou kmf31!! ...in hindsight I probably should have guessed that a *-tree option was referring to source and not install path, though at same time it'd be handy for configure output to make it clear too.

Now that thats working I have a problem that VLC doesn't seem to be able to use all the codecs ffmpeg can - specifically the Avid DNxHD codec. The build of ffmpeg I'm building VLC against can read the file and can convert it to jpegs for me, but VLC errors out with:

Code: Select all

[00000476] main decoder error: no suitable decoder module for fourcc `AVdn'. VLC probably does not support this sound or video format.
I had similar / same issue with xine ...though thats probably no help here.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: help building vlc with static ffmpeg

Postby Jean-Baptiste Kempf » 09 Oct 2007 19:26

@squindler: do you have samples?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests