[MPlayer-dev-eng] [PATCH] make the mplayer binary several 100k smaller

Arpi arpi at thot.banki.hu
Sat Jun 7 12:24:06 CEST 2003


Hi,

> > > while looking at the configure I saw that the libavcodec encoders
> > > are always build wether we need them or not. So if mplayer is build
> > > without mencoder, there is no need for the encoding support in
> > > libavcodec.
> > > Only problem is, to get this to work there are some changes to
> > > libavcodec needed (some missing #ifdef's). I'm not subscribed to
> > > the ffmpeg-devel list, so maybe someone from this list, who has
> > > ffmpeg cvs access can apply the second patch (the first patch is
> > > the small change to the configure).
> > 
> > Great, so you want to break the dxr3 driver? (And maybe a couple of others)
> 
> Well we could do #if defined (HAVE_MENCODER) || defined (HAVE_DXR3) ||

not ok, as there are filters like -vf lavc, which dont depend on any
optional vo driver.

but some --disable-all-encoders option could do the job.
so embedded system makers could use it.

> ..., but I'm not sure if it's worth it. MPlayer is quite big, so 100k
> doesn't make much difference.

it can be stripped down under 1mb
i've configured avi+divx+pcm only mplayer in less than 1mb for a firm for
embeddded use. and it still contained lots of unused code.


A'rpi / Astral & ESP-team

--
Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list