[Ffmpeg-devel] How to reduce the ffmpeg avcodec.dll, avformat.dll size

Michel Bardiaux mbardiaux
Wed Mar 15 10:39:30 CET 2006


Michel Bardiaux wrote:
> Jimmy Zha wrote:
> 
>> Hi,
>>
>>     I compiled the FFmpeg with MinGW on Windows,and got 3 dlls: 
>> avcodec.dll, avformat.dll, avutil.dll.
>>
>>     I am do some work on Microsoft Visual Studio with the FFMpeg 
>> lib/dlls.
>>     avcodec.dll(8.31mb),avformat.dll(9.16mb) is too big to my program. 
>> How can i reduce them.
> 
> 
> After a build under MingW using a CVS as of 20060213 (I should use 
> latest but for some reason I cant update now!) I obtain:
> 
> $ ls -al */*.dll
> -rwxr-xr-x    1 michel   Administ  8222457 Mar 14 18:25 
> libavcodec/avcodec.dll
> -rwxr-xr-x    1 michel   Administ  1272016 Mar 14 18:26 
> libavformat/avformat.dll
> -rwxr-xr-x    1 michel   Administ    55106 Feb 13 16:21 
> libavutil/avutil.dll
> 
> So, I suspect you're using an even older version of the build system, in 
> which avformat *contains* avcodec. Do *you* have cvs access now?

Here is what I have using latest cvs:

  ./configure  --enable-shared --disable-static --disable-strip 
--enable-memalign-hack
...
-rwxrw----    1 michel   pkdev     8200010 Mar 15 10:33 
libavcodec/avcodec.dll
-rwxrw----    1 michel   pkdev     1307922 Mar 15 10:35 
libavformat/avformat.dll
-rwxrw----    1 michel   pkdev       58039 Mar 15 10:22 libavutil/avutil.dll

You should definitely get latest CVS and retry. *Then* you might wish to 
disable some codecs.

HaND,
-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/





More information about the ffmpeg-devel mailing list