[Ffmpeg-devel] light avcodec.dll

Colin Ward lists
Sat Dec 3 06:21:10 CET 2005


igor at borovkov.com wrote:
> 
> How to make light avcodec.dll e.g. with only h.263 support.
> 
> I try to $ ./configure --enable-small --enable-shared --enable-memalign-hack
> --disable-audio-oss --disable-v4l --disable-bktr --disable-dv1394 --disable-netw
> ork --disable-zlib --disable-vhook --disable-debug --disable-mpegaudio-hp
> --disable-strip --disable-encoders --disable-decoders --enable-codec=H.263
> 
> But avcodec.dll is more than 5 MB.  :(
> ~ 7MB by default

   Take a look at the attached handmade makefile and config.h.  You will 
have to tweak these for your codecs but you get the idea.  Using this 
makefile and a similar one for libavformat I got my executable right 
down to 1.5 MB (although with a different set of codecs to you).

   There are some problems with certain files being dependent on certain 
other files that they shouldn't be dependent upon, and with some missing 
#ifdef USE_ENCODERS in the source, but again, you get the idea.

   Sometimes there's nothing like a bit of hand optimsation, even if it 
is downright tedious to do it!

/-------------------------------------------------------------------\
[Hitman/Code HQ - 6502/z80/68000/604e/80x86/ARM coder - Amiga rulez!]
[VZ-200/VIC-20/MZ-700/c16/c64*10/c128*8/Plus-4/CPC464/CD32/500*2    ]
[600/1000/1200*2/A4000/SNES/N64/Dreamcast/Athlon 1100/AmigaOne      ]
[Assembly Language: The most fun you can have with your clothes on! ]
\-------------------------------------------------------------------/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: makefile
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20051203/15a307b3/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.h
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20051203/15a307b3/attachment.asc>



More information about the ffmpeg-devel mailing list