[MPlayer-dev-eng] How can I reduce the size of mplayer?

Joey Parrish joey at nicewarrior.org
Wed Jan 14 14:58:02 CET 2004


On Wed, Jan 14, 2004 at 07:25:58PM +0800, Jason Geng wrote:
> Hi all,
> 
> Now I am trying to use mplayer to play mpeg4 video on an arm9 board. I hope to 
> squeeze the mplayer as small as possible. But after I disabled any possible options 
> when using configure, the generated mplayer is still exceed 5M(staticly linked). 
> Can any one give me some advice on this? Thank you very much.

Strip the binary, and if that is not good enough, then remove filters
and vo's and ao's you don't need.

For filters, for example, remove vf_example.c from Makefile, and remove
"&vf_info_example" stuff from vf.c, and IIRC this is all.
Vo's and ao's should be similar to remove.

Removing filters and vo's and ao's and such, IIRC, doesn't save you very
much space, though.  Maybe even you could try to remove codecs and libs
that you don't need.  Like libmpeg2, for example, could be hacked out in
favor of libavcodec.  You could also go into libavcodec and hack out
lots of codecs you don't need.  Or vice-versa, if your goal is mpeg4
playback only, you could remove libmpeg2 & ffmpeg and just use an
external divx library, but I wouldn't recommend that.

Also, since this is going to be for arm, make sure the codec you end up
leaving in does the hard stuff in integer math.

--Joey

-- 
All philosophy is naive.




More information about the MPlayer-dev-eng mailing list