Hi.
I would like to compile the most lightest, self-contained ActiveX control possible, for a following quick web distribution. The ActiveX should be able to play a video only, MPEG-4 stream. No menus, skins or controls are required.
I created the following build script, trying to disable every non-required part:
./bootstrap && \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--disable-sdl --disable-gtk --disable-mkv --disable-mad --disable-wxwidgets --disable-skins2 \
--enable-ffmpeg \
--with-ffmpeg-zlib --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--disable-sout --disable-httpd --disable-vlm --disable-gnutls --disable-dvdnav --disable-smb --disable-dvbpsi --disable-gnomevfs --disable-libcdio --disable-cdda --disable-vcd --disable-screen --disable-ogg --disable-mkv --disable-mod --disable-mpc --disable-a52 --disable-dts --disable-vorbis --disable-cmml --disable-x11 --disable-xvideo --disable-freetype --disable-fribidi --disable-libxml2 --disable-visual --disable-daap --disable-bonjour --disable-joystick \
--enable-optimizations \
--enable-release
I also strip'ed the resulting axvlc.dll. Unfortunately, the final size is still around 4.5 MB. Is this the smallest size possible, or there are any other known methods, to reduce the size further?
Btw, I'm using Cygwin to compile the VLC/ActiveX control.
Thanks.