Compiling lightest ActiveX control possible

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
SyRenity
Blank Cone
Blank Cone
Posts: 53
Joined: 19 Feb 2006 20:08

Compiling lightest ActiveX control possible

Postby SyRenity » 19 Feb 2006 20:17

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.

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 20 guests