[FFmpeg-user] Linking ffmpeg libraries
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Nov 13 11:56:33 CET 2014
Maziar Mehrabi <maziar.mehrabi <at> gmail.com> writes:
> So far I have successfully made simple applications
> for codec conversion by simply including
> libavformat/avformat.h and libswscale/swscale.h
> libraries into my project.
avformat.h and swscale.h are headers, libavformat and
libswscale are libraries.
> The problem is that I cannot include libraries
> such as network.h into my project.
network.h is another header of libavformat but an
internal one that you should not need to include:
libavformat contains network functionality that
you should be able to use without including this
internal header.
It is a bug that ffserver includes the header, if
you want to copy the bug, you will either have to
provide a config.h header for your needs or making
your project part of the FFmpeg source structure
(like ffserver.c). Note that the second solution may
mean that you cannot distribute the resulting binary
under a different license than the LGPL (or GPL).
An alternative would be to send a patch to the
developer mailing list to make the needed
functionality public but I suspect this will not be
easy.
Carl Eugen
More information about the ffmpeg-user
mailing list