[FFmpeg-devel] Which library are compiled when using gcc -lavformat, in /usr/local/lib or /usr/lib/

Michael Niedermayer michaelni at gmx.at
Wed Jan 11 04:56:58 CET 2012


On Tue, Jan 10, 2012 at 01:42:45PM +0000, forumhelp forum wrote:
[...]

> 
> I have written a program to parse media using the command to compile
> gcc -Wall -g test_AV_Coder.c -o AV_coder -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lpthread
> But I don't know which libraries and header files are incuded?
> 
> I try to parse an mp3  file, and I have a segmentaion fault when I access:
> AVFormatContext->streams[i]->codec
> Anyone has an idea why is that happening?

you should try gdb, also try ldd to make sure what libs its linking to


> also is there a way to have the most recent documentation offline, beside having (libav-doc)
> because i don't have the following in my documentation in avcodec structure
> AVCodecDefault* defaults

if you run doxygen then the doxy based docs are build and there are
also docs in in doc directory of ffmpeg

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120111/5facf6a1/attachment.asc>


More information about the ffmpeg-devel mailing list