[Libav-user] reduce dll size

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Mar 7 11:37:49 CET 2014

YIRAN LI <mrfun.china at ...> writes:

> I had a try on ffmpeg 2.0.1 with this options

Unrelated: 2.0.1 is not just old and unsupported, 
it contains known bugs (including security-relevant 
issues) that were fixed since. Please use current 
git head (or 2.2) which is still binary-compatible.

>    --disable-static
>    --enable-shared     
>    --disable-doc       

>    --disable-ffmpeg    
>    --disable-ffplay    
>    --disable-ffprobe   
>    --disable-ffserver  


>    --disable-network   
>    --disable-avfilter  
>    --disable-avdevice  
>    --enable-small 

>    --enable-memalign-hack 

Is this really needed?

>    --disable-bsfs 
>    --disable-protocol=pipe 

>    --disable-bzlib

This affects some mkv files (not many).

>    --disable-devices
>    --disable-filters
>    --disable-iconv 

>    --disable-zlib

This is not a good idea.

>    --disable-debug

Does --disable-hwaccels make no difference?

As said, you will get a massive reduction of 
the binary size by only enabling the features 
of lavc and lavf that you actually need.
(Since you disable bzlib, you obviously don't 
need all features of lavf.)

Carl Eugen

More information about the Libav-user mailing list